Fix:5278 【商城小程序】送礼方购买的礼包金额使用优惠券后未达到抽奖门槛,前端仍会提示好友领取后可获取抽奖码

This commit is contained in:
LinCyJang
2026-05-14 23:13:23 +08:00
parent c18030a3c3
commit 5987d9254e
+10 -5
View File
@@ -275,7 +275,8 @@ export default {
popupCover: '',
showInput: true,
isCountyLotteryGift: false,
showLotteryGiftPopup: false
showLotteryGiftPopup: false,
isEligibleForDraw: false
}
},
watch: {
@@ -510,9 +511,13 @@ export default {
this.loading = false
})
},
handleGiftPaySuccess() {
isDrawEligible(flag) {
return flag === true || flag === 1 || flag === '1' || flag === 'true'
},
handleGiftPaySuccess(isEligibleForDraw = false) {
this.isPayOk = true
if (this.isCountyLotteryGift) {
this.isEligibleForDraw = this.isDrawEligible(isEligibleForDraw)
if (this.isCountyLotteryGift && this.isEligibleForDraw) {
this.showLotteryGiftPopup = true
}
},
@@ -615,7 +620,7 @@ export default {
icon: "none",
duration: 2000
});
this.handleGiftPaySuccess();
this.handleGiftPaySuccess(data.isEligibleForDraw);
break;
case "WECHAT_H5_PAY":
// H5支付
@@ -632,7 +637,7 @@ export default {
icon: "none",
duration: 2000
});
this.handleGiftPaySuccess();
this.handleGiftPaySuccess(data.isEligibleForDraw);
}).catch(err => {
// this.makeAgain()