|
@@ -120,6 +120,10 @@ export default {
|
|
|
checkboxItemChange(name, index) {
|
|
|
const coupon = this.couponList[index];
|
|
|
if ( coupon.disabled ) {
|
|
|
+ if(!this.actualPayFee) {
|
|
|
+ Toast('当前无需追加优惠')
|
|
|
+ return;
|
|
|
+ }
|
|
|
setTimeout(() => {
|
|
|
// 根据电子券规则判断是否可选
|
|
|
this.isDisabledByRule(coupon, index);
|
|
@@ -138,6 +142,10 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
// 如果有选中项
|
|
|
+ if(!this.actualPayFee) {
|
|
|
+ Toast('当前无需追加优惠')
|
|
|
+ return;
|
|
|
+ }
|
|
|
const item = this.couponList[index];
|
|
|
this.remainPrice = this.remainPrice + this.couponList[index].discountFee
|
|
|
this.newAvailableDiscountFee = this.newAvailableDiscountFee - this.couponList[index].discountFee
|