Fix(送礼):[#6073]在页面超时后,点击付款并赠送,界面显示“订单已过期,请刷新当前界面”,需自动刷新该页面

This commit is contained in:
lifizer
2026-09-11 10:11:41 +08:00
parent 44093a5893
commit e6d8bff772
+18 -2
View File
@@ -1,5 +1,8 @@
<template>
<view class="gift-page" v-if="(goodsInfo.productInfo && goodsInfo.productInfo.storeName) || isGroupBuy">
<view
v-if="isLoad && ((goodsInfo.productInfo && goodsInfo.productInfo.storeName) || isGroupBuy)"
class="gift-page"
>
<view class="top-card" v-if="!isPayOk">
<view class="top-tab-nav-wrap">
<view
@@ -323,6 +326,7 @@ export default {
data() {
return {
webUrl: this.$VUE_APP_RESOURCES_URL,
isLoad: false,
loading: true,
// 盲盒礼包
isBlind: false,
@@ -681,6 +685,7 @@ export default {
const params = {
orderId: this.orderId,
}
this.isLoad = false
getGiftCardResend(params).then(res => {
this.isPayOk = false
const temp = res.data.giftCardTemplates.filter(e => e.isTravelGroup === 0)
@@ -832,6 +837,7 @@ export default {
// this.couponId = res.data.couponList.usable[0] && res.data.couponList.usable[0].id || ''
// }
this.computedPrice(this.goodsInfo.cartNum)
this.isLoad = true
}).finally(() => {
this.loading = false
})
@@ -990,7 +996,7 @@ export default {
});
break;
}
}) .catch(err => {
}).catch(err => {
console.log(err);
uni.hideLoading();
uni.showToast({
@@ -998,6 +1004,14 @@ export default {
icon: "none",
duration: 2000
});
// Fix bug#6073-订单超时后需自动刷新该页面
if (err.res.statusCode === 5113) {
if(this.isGroupBuy) {
this.getGroupBuyInfo()
} else {
this.getGift()
}
}
}).finally(() => {
this.isShowPayPwdPop = false;
this.$refs.payPwdPop.clear();//清空支付密码
@@ -1008,6 +1022,7 @@ export default {
const params = {
travelGroupProductId: this.cartId
}
this.isLoad = false
createGroupBuyGift(params).then(res => {
if (res.status === 200) {
this.coverList = res.data.giftCardTemplates || []
@@ -1023,6 +1038,7 @@ export default {
}
this.giftNotice = res.data.giftCardGiftNotice
this.computedTravelGroupPrice(true)
this.isLoad = true
}
})
}