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