罗世杰:商铺列表数据绑定
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<view class="list-border">
|
||||
<view class="list-container" @click="enterDetail()">
|
||||
<view class="shop-list-img" >
|
||||
<u-image width="80px" height="80px" :src="shopInfo.imageUrl" radius="8px"></u-image>
|
||||
<u-image width="80px" height="80px" :src="shopInfo.pics" radius="8px"></u-image>
|
||||
</view>
|
||||
<view class="text-area">
|
||||
<text style="font-weight: 500;">{{shopInfo.title}}</text>
|
||||
@@ -11,13 +11,13 @@
|
||||
<view>
|
||||
<u-image src="/static/shoplist/sy_icon_lbdw.png" width="12px" height="15px"></u-image>
|
||||
</view>
|
||||
<text>{{shopInfo.pos}}</text>
|
||||
<text>{{shopInfo.area1}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<view>
|
||||
<u-image src="/static/shoplist/sy_icon_lbpm.png" width="12px" height="15px"></u-image>
|
||||
</view>
|
||||
<text>{{shopInfo.sqr}}m2</text>
|
||||
<text>{{shopInfo.mianji}}m2</text>
|
||||
</view>
|
||||
</view>
|
||||
<view v-else class="pos-and-sqr pos-only" >
|
||||
@@ -25,13 +25,13 @@
|
||||
<view>
|
||||
<u-image src="/static/shoplist/dp_icon_hhhdw.png" width="12px" height="15px"></u-image>
|
||||
</view>
|
||||
<text>{{shopInfo.exactPos}}</text>
|
||||
<text>{{shopInfo.area2}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="rent-and-date">
|
||||
<text>租金:{{shopInfo.price}}元/月</text>
|
||||
<text v-if="showStyle == 0">发布日期:{{shopInfo.date}}</text>
|
||||
<text v-if="showStyle == 1">{{shopInfo.zrfText}}</text>
|
||||
<text>租金:{{shopInfo.zujin}}元/月</text>
|
||||
<text v-if="showStyle == 0">发布日期:{{shopInfo.create_time}}</text>
|
||||
<text v-if="showStyle == 1">转让费:{{shopInfo.zhuanrangfei}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -41,25 +41,25 @@
|
||||
<view>
|
||||
<u-image src="/static/shoplist/sy_icon_lbpm.png" width="12px" height="15px"></u-image>
|
||||
</view>
|
||||
<text>{{shopInfo.sqr}}m2</text>
|
||||
<text>{{shopInfo.mianji}}m2</text>
|
||||
</view>
|
||||
<view>
|
||||
<view>
|
||||
<u-image src="/static/shoplist/sy_icon_lblhy.png" width="12px" height="15px"></u-image>
|
||||
</view>
|
||||
<text>{{shopInfo.category}}</text>
|
||||
<text>{{shopInfo.trade1}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<view>
|
||||
<u-image src="/static/shoplist/sy_icon_lbxm.png" width="12px" height="15px"></u-image>
|
||||
</view>
|
||||
<text>{{shopInfo.uname}}</text>
|
||||
<text>{{shopInfo.lianxiren}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<view>
|
||||
<u-image src="/static/shoplist/sy_icon_lblxr.png" width="12px" height="15px"></u-image>
|
||||
</view>
|
||||
<text>{{shopInfo.phoneNum}}</text>
|
||||
<text>{{shopInfo.mobile}}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -78,11 +78,11 @@
|
||||
</view>
|
||||
|
||||
<view v-if="isEdit" class="del-and-edit bottom-common">
|
||||
<view class="edit" @click="handleEdit(shopInfo.shopid)">
|
||||
<view class="edit" @click="handleEdit(shopInfo.id)">
|
||||
<u-image src="/static/shoplist/dp_icon_pj.png" width="12px" height="15px"></u-image>
|
||||
<text>编辑</text>
|
||||
</view>
|
||||
<view class="del" @click="handleDel(shopInfo.shopid)">
|
||||
<view class="del" @click="handleDel(shopInfo.id)">
|
||||
<u-image src="/static/shoplist/dp_icon_sc.png" width="12px" height="15px"></u-image>
|
||||
<text>删除</text>
|
||||
</view>
|
||||
@@ -158,8 +158,14 @@
|
||||
this.$emit('delItem', shopid)
|
||||
},
|
||||
enterDetail(){
|
||||
// console.log("进入详情页面");
|
||||
const query=this.$u.queryParams({
|
||||
id: this.shopInfo.id,
|
||||
type: this.shopInfo.type
|
||||
})
|
||||
// console.log("query",query);
|
||||
uni.navigateTo({
|
||||
url: '/pages/detail/detail'
|
||||
url: '/pages/detail/detail' + `${query}`
|
||||
})
|
||||
},
|
||||
handleAD(){
|
||||
|
||||
Reference in New Issue
Block a user