|
@@ -1,18 +1,13 @@
|
|
<template>
|
|
<template>
|
|
<view class="container">
|
|
<view class="container">
|
|
<!-- 供销社列表 -->
|
|
<!-- 供销社列表 -->
|
|
- <view class="rnwdList" @tap="goDetails" v-for="(item, index) in list" :key="index">
|
|
|
|
- <view class="cooperativeImgBox">
|
|
|
|
- <image :src="loadImgSrc('/snbj.png')" class="cooperativeImg" @tap="goDetails"></image>
|
|
|
|
|
|
+ <view class="rnwdList" v-for="(item, index) in list" :key="index">
|
|
|
|
+ <view @tap="goDetails(item.id, item.type)" class="cooperativeImgBox">
|
|
|
|
+ <image :src="loadImgSrc('/snbj.png')" class="cooperativeImg"></image>
|
|
</view>
|
|
</view>
|
|
- <view class="cooperativeBox">
|
|
|
|
|
|
+ <view @tap="goDetails(item.id, item.type)" class="cooperativeBox">
|
|
<view class="list">
|
|
<view class="list">
|
|
- <span class="listTitle">{{ item.name }}</span>
|
|
|
|
- <view class="jlSj">
|
|
|
|
- <span class="jf">
|
|
|
|
- {{ item.address }}
|
|
|
|
- </span>
|
|
|
|
- </view>
|
|
|
|
|
|
+ <span class="listTitle">{{ item.titleName }}</span>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<em class="iconfont icon-xiangyoujiantou"></em>
|
|
<em class="iconfont icon-xiangyoujiantou"></em>
|
|
@@ -21,30 +16,14 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+import { listServer, getServer, delServer, addServer, updateServer } from '@/api/highFrequencyService/highFrequencyService';
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
list: [
|
|
list: [
|
|
{
|
|
{
|
|
- name:"供销社1",
|
|
|
|
- address:"供销社地址1",
|
|
|
|
- chargePeople:"负责人1",
|
|
|
|
- chargePhone:"13103215236",
|
|
|
|
- imgUrl:"/profile/upload/2024/03/01/nacos_20240301145836A002.png"
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- name:"供销社2",
|
|
|
|
- address:"供销社地址2",
|
|
|
|
- chargePeople:"负责人2",
|
|
|
|
- chargePhone:"09876543210",
|
|
|
|
- imgUrl:"/profile/upload/2024/03/01/nacos_20240301145836A002.png"
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- name:"供销社3",
|
|
|
|
- address:"供销社地址3",
|
|
|
|
- chargePeople:"负责人3",
|
|
|
|
- chargePhone:"12345678910",
|
|
|
|
- imgUrl:"/profile/upload/2024/03/01/nacos_20240301145836A002.png"
|
|
|
|
|
|
+ titleName:"-",
|
|
|
|
+ imgUrlList:"-"
|
|
}
|
|
}
|
|
],
|
|
],
|
|
};
|
|
};
|
|
@@ -53,12 +32,20 @@ export default {
|
|
* 生命周期函数--监听页面加载
|
|
* 生命周期函数--监听页面加载
|
|
*/,
|
|
*/,
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
-
|
|
|
|
|
|
+ this.getList(7);
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- goDetails() {
|
|
|
|
|
|
+ /** 查询列表 */
|
|
|
|
+ getList(type) {
|
|
|
|
+ this.loading = true;
|
|
|
|
+ listServer({type: type}).then(response => {
|
|
|
|
+ this.list = response.rows;
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ /** 查询详情 */
|
|
|
|
+ goDetails(id, type) {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
- url: '/pages/cooperative/details'
|
|
|
|
|
|
+ url: '/pages/specialService/loveAtVillage/details?id='+id+'&type='+type
|
|
});
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|