mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-17 16:13:48 +08:00
Coupon bug fixed
This commit is contained in:
@@ -277,7 +277,11 @@ export default {
|
||||
},
|
||||
wholeOrderDiscount(){
|
||||
this.discountedItemIndex = 0;
|
||||
if(this.curCoupon.minPrice && this.curCoupon.minPrice < this.sumPrice) {
|
||||
let checkResult = true;
|
||||
if(this.curCoupon.minPrice && this.curCoupon.minPrice > this.sumPrice) {
|
||||
checkResult = false;
|
||||
}
|
||||
if(checkResult) {
|
||||
if(this.curCoupon.couponAmount && this.curCoupon.couponAmount>0) {
|
||||
this.discountAmount = this.curCoupon.couponAmount;
|
||||
return this.sumPrice - this.curCoupon.couponAmount;
|
||||
|
||||
Reference in New Issue
Block a user