diff --git a/member-Recharge/rec-confirmation/rec-confirmation.vue b/member-Recharge/rec-confirmation/rec-confirmation.vue index 3b3025d..9b4ac1b 100644 --- a/member-Recharge/rec-confirmation/rec-confirmation.vue +++ b/member-Recharge/rec-confirmation/rec-confirmation.vue @@ -450,7 +450,7 @@ this.priceCaluc(this.totalprice); } else { // 否则进行选中赋值 if (item.discountType == 1) { - if (this.orderPrice > item.discountCondition) { + if (this.orderPrice >= item.discountCondition) { this.memDiscountId = item.id; //满减价格 this.deductionPrice = item.discountPrice; diff --git a/pages/order/confirmation.vue b/pages/order/confirmation.vue index a5b67e4..16489ae 100644 --- a/pages/order/confirmation.vue +++ b/pages/order/confirmation.vue @@ -498,7 +498,7 @@ this.$refs.popup.show(); }, //选择优惠券 - radioChanges(item) { + radioChanges(item) { this.paytheprice = this.orderPrice; this.rechangeload(); if (this.memDiscountId == item.id) { // 如果已经选中,则取消选中 @@ -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; @@ -525,13 +524,15 @@ }) } } - if (item.discountType == 2) { + 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) { + if (item.discountType == 3) { + this.memDiscountId = item.id; // 打折 this.deductionPrice = parseFloat(this.orderPrice - (this.orderPrice * item .discountPrice)) diff --git a/qianzhu-KFC/confirmOrder/confirmOrder.vue b/qianzhu-KFC/confirmOrder/confirmOrder.vue index b34a1b8..cb060ac 100644 --- a/qianzhu-KFC/confirmOrder/confirmOrder.vue +++ b/qianzhu-KFC/confirmOrder/confirmOrder.vue @@ -690,7 +690,7 @@ } else { // 否则进行选中赋值 if (item.discountType == 1) { - if (this.orderPrice > item.discountCondition) { + if (this.orderPrice >= item.discountCondition) { this.memDiscountId = item.id; //满减价格 this.deductionPrice = item.discountPrice; diff --git a/subPages/unionComfirmation/unionComfirmation.vue b/subPages/unionComfirmation/unionComfirmation.vue index b6161ce..0b96898 100644 --- a/subPages/unionComfirmation/unionComfirmation.vue +++ b/subPages/unionComfirmation/unionComfirmation.vue @@ -376,7 +376,6 @@ this.priceCaluc(this.saveprice); } else { // 否则进行选中赋值 - this.memDiscountId = item.id; if (item.discountType == 1) { //满减价格 if (this.orderPrice >= item.discountCondition) { @@ -393,13 +392,15 @@ }) } } - if (item.discountType == 2) { + if (item.discountType == 2) { + this.memDiscountId = item.id; //抵扣价格 this.deductionPrice = item.discountPrice; let oldprice = this.paytheprice - this.deductionPrice; this.priceCaluc(oldprice); } - if (item.discountType == 3) { + if (item.discountType == 3) { + this.memDiscountId = item.id; // 打折 this.deductionPrice = parseFloat(this.paytheprice - (this.paytheprice * item.discountPrice)) .toFixed(2);