Compare commits

..

3 Commits

Author SHA1 Message Date
赵毅
0cac04e0db 优化首页搜索框样式 2025-10-25 17:44:45 +08:00
赵毅
5a97172f36 优化易购商品详情页代码 2025-10-25 14:30:58 +08:00
赵毅
a665e924cc 修改搜索商品中页面数量不显示0个的bug 2025-10-25 14:06:28 +08:00
3 changed files with 5 additions and 3 deletions

View File

@ -18,7 +18,7 @@
</swiper>
<view class="NumDot">
{{ currentIndex }} / {{ currentGG.goods_carousel.length }}
{{ currentIndex }} / {{ currentGG.goods_carousel ? currentGG.goods_carousel.length : 0 }}
</view>
</view>
@ -40,7 +40,7 @@
</view>
</view>
<view class="GG_rigth" @click="showSizePopup">
{{ info.commodity_goods_info_list.length }}<u-icon size="26rpx" name="arrow-right"></u-icon>
{{ info.commodity_goods_info_list ? info.commodity_goods_info_list.length : 0 }}<u-icon size="26rpx" name="arrow-right"></u-icon>
</view>
</view>

View File

@ -371,6 +371,8 @@ export default {
const goods = this.goodsDetail.find(g => g.goods_id === param.id);
if (goods) {
this.$set(param, 'quantity', goods.count);
}else{
this.$set(param, 'quantity', 0);
}
});
});

View File

@ -64,7 +64,7 @@ page {
.hot-word-item {
height: 50rpx;
line-height: 50rpx;
line-height: 53rpx;
padding: 0 15rpx;
color: #666;
}