Fix:5278 【商城小程序】送礼方购买的礼包金额使用优惠券后未达到抽奖门槛,前端仍会提示好友领取后可获取抽奖码
This commit is contained in:
@@ -275,7 +275,8 @@ export default {
|
|||||||
popupCover: '',
|
popupCover: '',
|
||||||
showInput: true,
|
showInput: true,
|
||||||
isCountyLotteryGift: false,
|
isCountyLotteryGift: false,
|
||||||
showLotteryGiftPopup: false
|
showLotteryGiftPopup: false,
|
||||||
|
isEligibleForDraw: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@@ -510,9 +511,13 @@ export default {
|
|||||||
this.loading = false
|
this.loading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleGiftPaySuccess() {
|
isDrawEligible(flag) {
|
||||||
|
return flag === true || flag === 1 || flag === '1' || flag === 'true'
|
||||||
|
},
|
||||||
|
handleGiftPaySuccess(isEligibleForDraw = false) {
|
||||||
this.isPayOk = true
|
this.isPayOk = true
|
||||||
if (this.isCountyLotteryGift) {
|
this.isEligibleForDraw = this.isDrawEligible(isEligibleForDraw)
|
||||||
|
if (this.isCountyLotteryGift && this.isEligibleForDraw) {
|
||||||
this.showLotteryGiftPopup = true
|
this.showLotteryGiftPopup = true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -615,7 +620,7 @@ export default {
|
|||||||
icon: "none",
|
icon: "none",
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
this.handleGiftPaySuccess();
|
this.handleGiftPaySuccess(data.isEligibleForDraw);
|
||||||
break;
|
break;
|
||||||
case "WECHAT_H5_PAY":
|
case "WECHAT_H5_PAY":
|
||||||
// H5支付
|
// H5支付
|
||||||
@@ -632,7 +637,7 @@ export default {
|
|||||||
icon: "none",
|
icon: "none",
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
this.handleGiftPaySuccess();
|
this.handleGiftPaySuccess(data.isEligibleForDraw);
|
||||||
|
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
// this.makeAgain()
|
// this.makeAgain()
|
||||||
|
|||||||
Reference in New Issue
Block a user