恢复商品和详情页面

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
@@ -144,6 +144,12 @@ Page({
};
},
onGoodsCardTap(e) {
const { index } = e.currentTarget.dataset;
const goods = this.data.serviceRaw.rightsItem[index];
wx.navigateTo({ url: `/pages/goods/details/index?skuId=${goods.skuId}` });
},
onProofTap(e) {
if (this.data.gallery.show) {
this.setData({
@@ -89,6 +89,8 @@
wx:for-item="goods"
goods="{{goods}}"
no-top-line
bindtap="onGoodsCardTap"
data-index="{{index}}"
>
<view slot="footer" class="order-goods-card-footer">
<wr-price
@@ -210,6 +210,12 @@ Page({
: order.autoCancelTime;
},
onGoodsCardTap(e) {
const { index } = e.currentTarget.dataset;
const goods = this.data.order.orderGoods[index];
wx.navigateTo({ url: `/pages/goods/details/index?spuId=${goods.spuId}` });
},
onCountDownFinish() {
//this.setData({ countDownTime: -1 });
const { countDownTime, order } = this.data;
@@ -3,7 +3,7 @@
<view class="order-detail">
<!-- 店铺及商品 -->
<order-card order="{{_order}}">
<order-goods-card wx:for="{{_order.goodsList}}" wx:key="id" wx:for-item="goods" wx:for-index="gIndex" goods="{{goods}}" no-top-line="{{gIndex === 0}}">
<order-goods-card wx:for="{{_order.goodsList}}" wx:key="id" wx:for-item="goods" wx:for-index="gIndex" goods="{{goods}}" no-top-line="{{gIndex === 0}}" bindtap="onGoodsCardTap" data-index="{{gIndex}}">
<order-button-bar slot="append-card" class="goods-button-bar" order="{{_order}}" bindrefresh="onRefresh" goodsIndex="{{gIndex}}" />
</order-goods-card>
<view class="pay-detail">