|
@@ -39,6 +39,7 @@ export default {
|
|
|
remainCoupons: ( state ) => state.order.remainCoupons, // 仅限杭州当前剩余可选电子券上限
|
|
|
parkMallCode: ( state ) => state.order.parkMallCode, // 当前车场的数据
|
|
|
maxOneDayCoupons: ( state ) => state.order.maxOneDayCoupons,// 仅限杭州当日电子券可选上限
|
|
|
+ paperDiscountFee: ( state ) => state.order.paperDiscountFee,// 纸质券的优惠金额
|
|
|
}),
|
|
|
},
|
|
|
|
|
@@ -76,8 +77,8 @@ export default {
|
|
|
* 2、superposition 叠加使用规则 (1不可叠加,2仅同类型可叠加,3可叠加);
|
|
|
* */
|
|
|
this.couponList = [...this.coupons];
|
|
|
- this.remainPrice = this.usingTotalDiscount;
|
|
|
- if ((this.parkMallCode === 4 || this.parkMallCode === 6) && this.orderDetail?.discountInfo?.points?.[0]?.discountFee) {
|
|
|
+ this.remainPrice = this.usingTotalDiscount - this.paperDiscountFee;
|
|
|
+ if ((this.parkMallCode === 4 || this.parkMallCode === 6) && this.orderDetail?.discountInfo?.points[0]?.discountFee) {
|
|
|
this.remainPrice = this.remainPrice - this.orderDetail.discountInfo.points[0].discountFee
|
|
|
}
|
|
|
// 前海积分不参与当前电子券优惠上限
|
|
@@ -280,8 +281,8 @@ export default {
|
|
|
// 最高优先级,提示未生效的电子券
|
|
|
if (item.status === 'unavailable' || moment().isSameOrAfter(item.expirationDate)) {
|
|
|
return Toast({
|
|
|
- className: 'top300',
|
|
|
message: `当前电子券暂未生效,不可用`,
|
|
|
+ className: "white-space",
|
|
|
icon: 'none',
|
|
|
});
|
|
|
}
|
|
@@ -289,8 +290,8 @@ export default {
|
|
|
if ( this.checkedCouponList.length >= this.remainCoupons && (this.parkMallCode === 2 || this.parkMallCode === 8 || this.parkMallCode === 7 || this.parkMallCode === 9) ) {
|
|
|
if ( showMsg ) return true
|
|
|
return Toast({
|
|
|
- className: 'top300',
|
|
|
message: `电子券每天最多可使用${ this.maxOneDayCoupons }张`,
|
|
|
+ className: "white-space",
|
|
|
icon: 'none',
|
|
|
});
|
|
|
}
|
|
@@ -338,6 +339,7 @@ export default {
|
|
|
if ( showMsg ) return true
|
|
|
return Toast({
|
|
|
message: `优惠券已达当日使用上限,不可再用`,
|
|
|
+ className: "white-space",
|
|
|
icon: 'none',
|
|
|
});
|
|
|
}
|
|
@@ -347,6 +349,7 @@ export default {
|
|
|
if ( showMsg ) return true
|
|
|
return Toast({
|
|
|
message: [5, 10].indexOf(parkMallCode) > -1 ? '当日优惠已达上限,不可再用' : `每日最高可抵扣${maxOneDayDiscountFee}元`,
|
|
|
+ className: "white-space",
|
|
|
icon: 'none',
|
|
|
});
|
|
|
}
|
|
@@ -356,6 +359,7 @@ export default {
|
|
|
if ( showMsg ) return true
|
|
|
return Toast({
|
|
|
message: `超出抵扣上限,每次最高可抵扣${maxOneTimeDiscountTime}小时`,
|
|
|
+ className: "white-space",
|
|
|
icon: 'none',
|
|
|
});
|
|
|
}
|