恢复商品和详情页面

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
@@ -62,6 +62,12 @@ Page({
});
},
goodClickHandle(e) {
const { index } = e.detail;
const { spuId } = this.data.goods[index];
wx.navigateTo({ url: `/pages/goods/details/index?spuId=${spuId}` });
},
cartClickHandle() {
Toast({
context: this,
@@ -11,6 +11,7 @@
<goods-list
wr-class="goods-list-wrap"
goodsList="{{goods}}"
bind:click="goodClickHandle"
bind:addcart="cartClickHandle"
/>
</view>