From 5987d9254e2ed1532b5a02c6e5a21daf6419f940 Mon Sep 17 00:00:00 2001 From: LinCyJang Date: Thu, 14 May 2026 23:13:23 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A5278=20=E3=80=90=E5=95=86=E5=9F=8E?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E3=80=91=E9=80=81=E7=A4=BC=E6=96=B9?= =?UTF-8?q?=E8=B4=AD=E4=B9=B0=E7=9A=84=E7=A4=BC=E5=8C=85=E9=87=91=E9=A2=9D?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E4=BC=98=E6=83=A0=E5=88=B8=E5=90=8E=E6=9C=AA?= =?UTF-8?q?=E8=BE=BE=E5=88=B0=E6=8A=BD=E5=A5=96=E9=97=A8=E6=A7=9B=EF=BC=8C?= =?UTF-8?q?=E5=89=8D=E7=AB=AF=E4=BB=8D=E4=BC=9A=E6=8F=90=E7=A4=BA=E5=A5=BD?= =?UTF-8?q?=E5=8F=8B=E9=A2=86=E5=8F=96=E5=90=8E=E5=8F=AF=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E6=8A=BD=E5=A5=96=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg_user/views/gift/gift.vue | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/pkg_user/views/gift/gift.vue b/pkg_user/views/gift/gift.vue index 6988080..bf5bbd5 100644 --- a/pkg_user/views/gift/gift.vue +++ b/pkg_user/views/gift/gift.vue @@ -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()