|
|
|
@ -508,10 +508,9 @@ |
|
|
|
|
this.isDiscont = false; |
|
|
|
|
} else { // 否则进行选中赋值 |
|
|
|
|
this.isDiscont = true; |
|
|
|
|
this.memDiscountId = item.id; |
|
|
|
|
if (item.discountType == 1) { |
|
|
|
|
//满减价格 |
|
|
|
|
if (this.orderPrice > item.discountCondition) { |
|
|
|
|
if (this.orderPrice >= item.discountCondition) { |
|
|
|
|
this.memDiscountId = item.id; |
|
|
|
|
//满减价格 |
|
|
|
|
this.deductionPrice = item.discountPrice; |
|
|
|
@ -526,12 +525,14 @@ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (item.discountType == 2) { |
|
|
|
|
this.memDiscountId = item.id; |
|
|
|
|
//抵扣价格 |
|
|
|
|
this.deductionPrice = item.discountPrice; |
|
|
|
|
let oldprice = this.orderPrice - this.deductionPrice; |
|
|
|
|
this.priceCaluc(oldprice); |
|
|
|
|
} |
|
|
|
|
if (item.discountType == 3) { |
|
|
|
|
this.memDiscountId = item.id; |
|
|
|
|
// 打折 |
|
|
|
|
this.deductionPrice = parseFloat(this.orderPrice - (this.orderPrice * item |
|
|
|
|
.discountPrice)) |
|
|
|
|