Fix:收礼列表不跳转详情
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="order-details" style="padding: 30rpx;" @click="handleBody">
|
<view class="order-details" style="padding: 30rpx;" @click="handleBody">
|
||||||
<!-- 给header上与data上加on为退款订单-->
|
<!-- 给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">
|
<!-- <view class="status-img-box">
|
||||||
<image class="status-img" :src="getStatusImg(orderInfo)" mode=""></image>
|
<image class="status-img" :src="getStatusImg(orderInfo)" mode=""></image>
|
||||||
</view> -->
|
</view> -->
|
||||||
@@ -492,7 +492,8 @@ export default {
|
|||||||
payPassword: null,
|
payPassword: null,
|
||||||
webUrl: this.$VUE_APP_RESOURCES_URL,
|
webUrl: this.$VUE_APP_RESOURCES_URL,
|
||||||
pageKeyId: Object.freeze('userOrderInfo'),
|
pageKeyId: Object.freeze('userOrderInfo'),
|
||||||
logistics: {}
|
logistics: {},
|
||||||
|
isGift: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -501,6 +502,9 @@ export default {
|
|||||||
},
|
},
|
||||||
...mapGetters(["userInfo"])
|
...mapGetters(["userInfo"])
|
||||||
},
|
},
|
||||||
|
onLoad(opts) {
|
||||||
|
this.isGift = !!opts.isGift
|
||||||
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
const chooseAddress = uni.getStorageSync('chooseAddress') || {}
|
const chooseAddress = uni.getStorageSync('chooseAddress') || {}
|
||||||
const addressId = chooseAddress.id || ''
|
const addressId = chooseAddress.id || ''
|
||||||
|
|||||||
@@ -403,11 +403,14 @@ export default {
|
|||||||
this.$refs.giftTips.showTips = true
|
this.$refs.giftTips.showTips = true
|
||||||
},
|
},
|
||||||
giftItemClickHanlde(item) {
|
giftItemClickHanlde(item) {
|
||||||
if (this.cateIndex === 0) return
|
console.log(item);
|
||||||
|
|
||||||
|
// if (this.cateIndex === 0) return
|
||||||
this.$yrouter.push({
|
this.$yrouter.push({
|
||||||
path: '/pages/order/OrderDetails/index',
|
path: '/pages/order/OrderDetails/index',
|
||||||
query: {
|
query: {
|
||||||
id: item.orderId
|
id: item.orderId,
|
||||||
|
isGift: 1
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user