👍 增加地图 增加拼多多

This commit is contained in:
2023-11-24 18:58:56 +08:00
parent 7f4aecb936
commit 3a33d65d6b
26 changed files with 2330 additions and 256 deletions
+24 -2
View File
@@ -12,7 +12,7 @@
<swiper-item v-for="(goods, index) in goodsList" :key="index" class="carousel-item">
<view class="goods-list-box x-f">
<block v-for="mgoods in goods" :key="mgoods.id">
<view class="min-goods" @tap="jump('/pages/shop/GoodsCon/index',{id:mgoods.id})">
<view class="min-goods" @tap="routerGo(mgoods)">
<view class="img-box">
<view class="tag">hot</view>
<image class="img" :src="mgoods.image" mode="widthFix"></image>
@@ -20,7 +20,12 @@
<view class="price-box">
<view class="y-f">
<text class="seckill-current">{{ mgoods.price }}</text>
<text class="original">销量{{ mgoods.sales }}{{mgoods.unitName}}</text>
<text class="original" v-if="mgoods.salesTip">
销量 {{mgoods.salesTip}}
</text>
<text class="original" v-else>
销量{{ mgoods.sales }}{{mgoods.unitName}}
</text>
</view>
</view>
<view class="title">
@@ -89,6 +94,23 @@
query,
});
},
routerGo(item) {
if (item.goodSign) {
this.$yrouter.push({
path: '/pages/goods/goodDetail',
query: {
goodSign: item.goodSign
},
})
} else {
this.$yrouter.push({
path: '/pages/shop/GoodsCon/index',
query: {
id: item.id
},
})
}
},
}
}
</script>