恢复商品和详情页面
This commit is contained in:
@@ -33,6 +33,12 @@ Page({
|
||||
);
|
||||
},
|
||||
|
||||
goodClickHandle(e) {
|
||||
const { index } = e.detail;
|
||||
const { spuId } = this.data.list[index];
|
||||
wx.navigateTo({ url: `/pages/goods/details/index?spuId=${spuId}` });
|
||||
},
|
||||
|
||||
cardClickHandle() {
|
||||
Toast({
|
||||
context: this,
|
||||
|
||||
@@ -66,6 +66,7 @@
|
||||
<goods-list
|
||||
wr-class="goods-list-container"
|
||||
goodsList="{{list}}"
|
||||
bind:click="goodClickHandle"
|
||||
bind:addcart="cardClickHandle"
|
||||
/>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user