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; } }