恢复商品和详情页面

This commit is contained in:
Dev
2026-10-22 15:41:39 +08:00
parent 0ef4ac4cea
commit b9122fd6c8
37 changed files with 2489 additions and 2 deletions
+7
View File
@@ -236,6 +236,13 @@ Page({
});
},
goGoodsDetail(e) {
const { spuId, storeId } = e.detail.goods;
wx.navigateTo({
url: `/pages/goods/details/index?spuId=${spuId}&storeId=${storeId}`,
});
},
clearInvalidGoods() {
// 实际场景时应该调用接口清空失效商品
this.clearInvalidGoodsService().then(() => this.refreshData());
+1
View File
@@ -7,6 +7,7 @@
bindselectstore="onStoreSelect"
bindchangequantity="onQuantityChange"
bindgocollect="goCollect"
bindgoodsclick="goGoodsDetail"
bindclearinvalidgoods="clearInvalidGoods"
binddelete="onGoodsDelete"
/>