Fix:收礼列表不跳转详情

This commit is contained in:
linxi
2025-06-30 15:40:24 +08:00
parent 19d247c41c
commit a7c320d406
2 changed files with 11 additions and 4 deletions
+6 -2
View File
@@ -1,7 +1,7 @@
<template>
<view class="order-details" style="padding: 30rpx;" @click="handleBody">
<!-- 给header上与data上加on为退款订单-->
<view class=" v12-pa-3 v12-white" :class="refundOrder ? 'on' : ''" style="border-radius: 20rpx;">
<view class=" v12-pa-3 v12-white" :class="refundOrder ? 'on' : ''" style="border-radius: 20rpx;" v-if="!isGift">
<!-- <view class="status-img-box">
<image class="status-img" :src="getStatusImg(orderInfo)" mode=""></image>
</view> -->
@@ -492,7 +492,8 @@ export default {
payPassword: null,
webUrl: this.$VUE_APP_RESOURCES_URL,
pageKeyId: Object.freeze('userOrderInfo'),
logistics: {}
logistics: {},
isGift: false
};
},
computed: {
@@ -501,6 +502,9 @@ export default {
},
...mapGetters(["userInfo"])
},
onLoad(opts) {
this.isGift = !!opts.isGift
},
onShow() {
const chooseAddress = uni.getStorageSync('chooseAddress') || {}
const addressId = chooseAddress.id || ''
+5 -2
View File
@@ -403,11 +403,14 @@ export default {
this.$refs.giftTips.showTips = true
},
giftItemClickHanlde(item) {
if (this.cateIndex === 0) return
console.log(item);
// if (this.cateIndex === 0) return
this.$yrouter.push({
path: '/pages/order/OrderDetails/index',
query: {
id: item.orderId
id: item.orderId,
isGift: 1
}
})
}