From 3523ce559916e54cc3a3c01481f8da91b8fcda53 Mon Sep 17 00:00:00 2001 From: lifizer <913626195@qq.com> Date: Wed, 9 Sep 2026 11:42:47 +0800 Subject: [PATCH] =?UTF-8?q?Feat(=E9=80=81=E7=A4=BC):=E6=94=AF=E6=8C=81AI?= =?UTF-8?q?=E7=9A=84=E6=96=87=E7=94=9F=E5=9B=BE-3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg_user/views/gift/gift.vue | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/pkg_user/views/gift/gift.vue b/pkg_user/views/gift/gift.vue index eeaa940..f49f14b 100644 --- a/pkg_user/views/gift/gift.vue +++ b/pkg_user/views/gift/gift.vue @@ -829,9 +829,13 @@ export default { isDrawEligible(flag) { return flag === true || flag === 1 || flag === '1' || flag === 'true' }, - handleGiftPaySuccess(isEligibleForDraw = false) { + handleGiftPaySuccess(data) { + if (data.giftCard) { + this.selectedCover = data.giftCard.cover || this.selectedCover + this.giftImage = data.giftCard.giftCardImage || this.giftImage + } this.isPayOk = true - this.isEligibleForDraw = this.isDrawEligible(isEligibleForDraw) + this.isEligibleForDraw = this.isDrawEligible(data.isEligibleForDraw) if (this.isCountyLotteryGift && this.isEligibleForDraw) { this.showLotteryGiftPopup = true } @@ -938,7 +942,7 @@ export default { icon: "none", duration: 2000 }); - this.handleGiftPaySuccess(data.isEligibleForDraw); + this.handleGiftPaySuccess(data); break; case "WECHAT_H5_PAY": // H5支付 @@ -955,7 +959,7 @@ export default { icon: "none", duration: 2000 }); - this.handleGiftPaySuccess(data.isEligibleForDraw); + this.handleGiftPaySuccess(data); }).catch(err => { // this.makeAgain() @@ -1321,8 +1325,8 @@ export default { align-items: center; .loading-img { display: block; - width: 48rpx; - height: 48rpx; + width: 58rpx; + height: 58rpx; margin-left: 20rpx; } }