瀏覽代碼

供销社列表 详情 图片

wangzhe 1 年之前
父節點
當前提交
c835166f20
共有 2 個文件被更改,包括 4 次插入1 次删除
  1. 1 0
      pages/cooperative/cooperative.vue
  2. 3 1
      pages/cooperative/details.vue

+ 1 - 0
pages/cooperative/cooperative.vue

@@ -4,6 +4,7 @@
         <view class="rnwdList" v-for="(item, index) in list" :key="index">
         <view class="rnwdList" v-for="(item, index) in list" :key="index">
             <view @tap="goDetails(item.id)" class="cooperativeImgBox">
             <view @tap="goDetails(item.id)" class="cooperativeImgBox">
                 <image :src="loadImgSrc('/snbj.png')" class="cooperativeImg"></image>
                 <image :src="loadImgSrc('/snbj.png')" class="cooperativeImg"></image>
+                <!--<image :src="loadImgSrc(item.imgUrl)" class="cooperativeImg"></image>-->
             </view>
             </view>
             <view @tap="goDetails(item.id)" class="cooperativeBox">
             <view @tap="goDetails(item.id)" class="cooperativeBox">
                 <view class="list">
                 <view class="list">

+ 3 - 1
pages/cooperative/details.vue

@@ -3,6 +3,7 @@
         <!-- 供销社详情 -->
         <!-- 供销社详情 -->
         <view class="cooperativeImgBox">
         <view class="cooperativeImgBox">
             <image :src="loadImgSrc('/snbj.png')" class="cooperativeImg"></image>
             <image :src="loadImgSrc('/snbj.png')" class="cooperativeImg"></image>
+            <!--<image :src="loadImgSrc(imgUrl)" class="cooperativeImg"></image>-->
         </view>
         </view>
         <view class="itemBox" v-for="(item, index) in list" :key="index">
         <view class="itemBox" v-for="(item, index) in list" :key="index">
             <view class="item">
             <view class="item">
@@ -22,6 +23,7 @@
     export default {
     export default {
     data() {
     data() {
         return {
         return {
+            imgUrl:'-',
             list: [
             list: [
                 {
                 {
                     title: "名称",
                     title: "名称",
@@ -60,13 +62,13 @@
         getDetails(id) {
         getDetails(id) {
             getDetails(id).then(response => {
             getDetails(id).then(response => {
                 let details = response.data;
                 let details = response.data;
-                console.log(response.data)
                 let list = [];
                 let list = [];
                 list.push({ title:"名称", content:details.name });
                 list.push({ title:"名称", content:details.name });
                 list.push({ title:"地址", content:details.address });
                 list.push({ title:"地址", content:details.address });
                 list.push({ title:"负责人", content:details.chargePeople });
                 list.push({ title:"负责人", content:details.chargePeople });
                 list.push({ title:"负责人电话", content:details.chargePhone });
                 list.push({ title:"负责人电话", content:details.chargePhone });
                 this.list = list;
                 this.list = list;
+                this.imgUrl = details.imgUrl;
             });
             });
         },
         },
     }
     }