Coupon bug fixed

This commit is contained in:
Vion 2022-01-24 22:35:13 +08:00
parent d19c462775
commit 178b29601b

View File

@ -281,6 +281,9 @@ export default {
if(this.curCoupon.minPrice && this.curCoupon.minPrice > this.sumPrice) {
checkResult = false;
}
if(this.curCoupon.couponAmount && this.curCoupon.couponAmount > this.sumPrice) {
checkResult = false;
}
if(checkResult) {
if(this.curCoupon.couponAmount && this.curCoupon.couponAmount>0) {
this.discountAmount = this.curCoupon.couponAmount;