Feat(送礼):支持AI的文生图-3

This commit is contained in:
lifizer
2026-09-09 11:42:47 +08:00
parent 41d9da4c7e
commit 3523ce5599
+10 -6
View File
@@ -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;
}
}