Feat(送礼):支持AI的文生图-3
This commit is contained in:
@@ -829,9 +829,13 @@ export default {
|
|||||||
isDrawEligible(flag) {
|
isDrawEligible(flag) {
|
||||||
return flag === true || flag === 1 || flag === '1' || flag === 'true'
|
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.isPayOk = true
|
||||||
this.isEligibleForDraw = this.isDrawEligible(isEligibleForDraw)
|
this.isEligibleForDraw = this.isDrawEligible(data.isEligibleForDraw)
|
||||||
if (this.isCountyLotteryGift && this.isEligibleForDraw) {
|
if (this.isCountyLotteryGift && this.isEligibleForDraw) {
|
||||||
this.showLotteryGiftPopup = true
|
this.showLotteryGiftPopup = true
|
||||||
}
|
}
|
||||||
@@ -938,7 +942,7 @@ export default {
|
|||||||
icon: "none",
|
icon: "none",
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
this.handleGiftPaySuccess(data.isEligibleForDraw);
|
this.handleGiftPaySuccess(data);
|
||||||
break;
|
break;
|
||||||
case "WECHAT_H5_PAY":
|
case "WECHAT_H5_PAY":
|
||||||
// H5支付
|
// H5支付
|
||||||
@@ -955,7 +959,7 @@ export default {
|
|||||||
icon: "none",
|
icon: "none",
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
this.handleGiftPaySuccess(data.isEligibleForDraw);
|
this.handleGiftPaySuccess(data);
|
||||||
|
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
// this.makeAgain()
|
// this.makeAgain()
|
||||||
@@ -1321,8 +1325,8 @@ export default {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
.loading-img {
|
.loading-img {
|
||||||
display: block;
|
display: block;
|
||||||
width: 48rpx;
|
width: 58rpx;
|
||||||
height: 48rpx;
|
height: 58rpx;
|
||||||
margin-left: 20rpx;
|
margin-left: 20rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user