罗世杰:店铺列表字段绑定
This commit is contained in:
@@ -71,66 +71,11 @@
|
|||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
shopInfoList: {
|
|
||||||
type: Array,
|
},
|
||||||
default() {
|
data() {
|
||||||
return [
|
return {
|
||||||
{
|
shopInfoList: []
|
||||||
id: 1,
|
|
||||||
type: 1,
|
|
||||||
shopid: 1,
|
|
||||||
imageUrl: 'https://alifei01.cfp.cn/creative/vcg/800/new/VCG41175510742.jpg',
|
|
||||||
title: '琴行铺面转让',
|
|
||||||
promotionNum: 23,
|
|
||||||
price: 5000,
|
|
||||||
date: '2023-11-02',
|
|
||||||
pos: '锦江区',
|
|
||||||
exactPos: '锦江区-汇源南路366号',
|
|
||||||
sqr: 100,
|
|
||||||
zrfText: "转让费:20000万",
|
|
||||||
category: '餐饮美食',
|
|
||||||
uname: "张先生",
|
|
||||||
phoneNum: 13348946108,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "1",
|
|
||||||
"pic": "3",
|
|
||||||
"tt": "333",
|
|
||||||
"type": "0",
|
|
||||||
"adress": "",
|
|
||||||
"trade1": "啊",
|
|
||||||
"trade2": "餐馆",
|
|
||||||
"btype1": "",
|
|
||||||
"btype2": "",
|
|
||||||
"area1": "青羊区",
|
|
||||||
"area2": "",
|
|
||||||
"mianji": "33",
|
|
||||||
"zhuanrangfei": "44",
|
|
||||||
"zujin": "44",
|
|
||||||
"hits": "0",
|
|
||||||
"58url": "",
|
|
||||||
"personurl": "",
|
|
||||||
"kw": "",
|
|
||||||
"remark": "",
|
|
||||||
"content": "44vv",
|
|
||||||
"pics": "",
|
|
||||||
"user_level_id": "1",
|
|
||||||
"lianxiren": "3333",
|
|
||||||
"mobile": "44444",
|
|
||||||
"status": "1",
|
|
||||||
"shangpulx": "1",
|
|
||||||
"zhuangtai": "1",
|
|
||||||
"lng": "2222.00000000",
|
|
||||||
"lat": "3333.00000000",
|
|
||||||
"pub_time": "0",
|
|
||||||
"create_time": "1699973131",
|
|
||||||
"update_time": "1699973131",
|
|
||||||
"delete_time": "0",
|
|
||||||
"userid": "1",
|
|
||||||
"success": "2"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -149,7 +94,12 @@
|
|||||||
})
|
})
|
||||||
this.$api.getShopList(query).then(res => {
|
this.$api.getShopList(query).then(res => {
|
||||||
console.log("shoplist",res.data.data);
|
console.log("shoplist",res.data.data);
|
||||||
|
this.shopInfoList = res.data.data
|
||||||
|
this.shopInfoList.forEach(item=>{
|
||||||
|
item.pics =this.$api.imgUrl + item.pics
|
||||||
|
});
|
||||||
|
console.log("shoplist",res.data.data);
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<u-image width="80px" height="80px" :src="shopInfo.pics" radius="8px"></u-image>
|
<u-image width="80px" height="80px" :src="shopInfo.pics" radius="8px"></u-image>
|
||||||
</view>
|
</view>
|
||||||
<view class="text-area">
|
<view class="text-area">
|
||||||
<text style="font-weight: 500;">{{shopInfo.title}}</text>
|
<text style="font-weight: 500;">{{shopInfo.tt}}</text>
|
||||||
<view v-if="showStyle == 0" class="pos-and-sqr" >
|
<view v-if="showStyle == 0" class="pos-and-sqr" >
|
||||||
<view>
|
<view>
|
||||||
<view>
|
<view>
|
||||||
@@ -30,8 +30,9 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="rent-and-date">
|
<view class="rent-and-date">
|
||||||
<text>租金:{{shopInfo.zujin}}元/月</text>
|
<text>租金:{{shopInfo.zujin}}元/月</text>
|
||||||
<text v-if="showStyle == 0">发布日期:{{shopInfo.create_time}}</text>
|
<text v-if="showStyle == 0">发布日期:{{$u.timeFormat(shopInfo.create_time,'yyyy-mm-dd')}}</text>
|
||||||
<text v-if="showStyle == 1">转让费:{{shopInfo.zhuanrangfei}}</text>
|
<text v-if="showStyle == 1">转让费:{{shopInfo.zhuanrangfei}}</text>
|
||||||
|
<!-- 有 bug -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -163,7 +164,7 @@
|
|||||||
id: this.shopInfo.id,
|
id: this.shopInfo.id,
|
||||||
type: this.shopInfo.type
|
type: this.shopInfo.type
|
||||||
})
|
})
|
||||||
// console.log("query",query);
|
console.log("query",query);
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/detail/detail' + `${query}`
|
url: '/pages/detail/detail' + `${query}`
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user