完善功能

This commit is contained in:
2025-05-06 17:33:45 +08:00
parent 889f2b8fca
commit 6b5c475dd1
283 changed files with 6420 additions and 3694 deletions

View File

@ -21,7 +21,7 @@
<view class="u-p-t-32 bold-600">{{cateName}}</view>
<view class="u-p-t-32">
<navigator hover-class="none" class="bg-white br16 row u-col-top u-m-b-24" v-for="(item, index) in goodsList" :key="index" @click="toShop()">
<navigator :url="`/pages/shop/shop?id=${item.id}`" hover-class="none" class="bg-white br16 row u-col-top u-m-b-24" v-for="(item, index) in goodsList" :key="index" >
<view>
<u-image :src="item.image" width="136" height="136" border-radius="16"></u-image>
</view>
@ -34,7 +34,7 @@
<price-format :price="item.price" :subscriptSize="22" :firstSize="34" :secondSize="26"></price-format>
</view>
<view class="u-m-l-8">
<price-format :price="item.market_price" :lineThrough="true" color="#C0C0C0" :subscriptSize="22" :firstSize="22" :secondSize="22"></price-format>
<price-format :price="item.market_price" :lineThrough="true" color="#C0C0C0" :subscriptSize="22" :firstSize="22" :secondSize="22"></price-format>
</view>
</view>
</view>
@ -57,7 +57,7 @@
</view>
</view>
<view class="buy mx40 px40 br60 row-between">
<view class="row">
<view class="row" @tap="showCart = true">
<view class="u-relative">
<u-image :src="cloudPath + 'img/icon_cart.png'" width="80" height="80"></u-image>
<view class="u-absolute top-0 right-0 text-fff number u-text-center xxs" v-if="buyNumber">
@ -191,9 +191,10 @@
},
// 跳转商品详情页
toShop() {
toShop(id) {
console.log(id)
uni.navigateTo({
url: '/pages/shop/shop'
url: `/pages/shop/shop?id=${id}`
})
}
},
@ -274,7 +275,6 @@
position: relative;
padding: 0 20rpx;
.goods {
// padding-bottom: 200rpx;
.info {
width: 100%;
display: flex;