1.优化下单无法使用优惠券

master
杨杰 1 year ago
parent 9ad6909d34
commit a07d1a827b
  1. 2
      member-Recharge/rec-confirmation/rec-confirmation.vue
  2. 5
      pages/order/confirmation.vue
  3. 2
      qianzhu-KFC/confirmOrder/confirmOrder.vue
  4. 3
      subPages/unionComfirmation/unionComfirmation.vue

@ -450,7 +450,7 @@
this.priceCaluc(this.totalprice); this.priceCaluc(this.totalprice);
} else { // } else { //
if (item.discountType == 1) { if (item.discountType == 1) {
if (this.orderPrice > item.discountCondition) { if (this.orderPrice >= item.discountCondition) {
this.memDiscountId = item.id; this.memDiscountId = item.id;
// //
this.deductionPrice = item.discountPrice; this.deductionPrice = item.discountPrice;

@ -508,10 +508,9 @@
this.isDiscont = false; this.isDiscont = false;
} else { // } else { //
this.isDiscont = true; this.isDiscont = true;
this.memDiscountId = item.id;
if (item.discountType == 1) { if (item.discountType == 1) {
// //
if (this.orderPrice > item.discountCondition) { if (this.orderPrice >= item.discountCondition) {
this.memDiscountId = item.id; this.memDiscountId = item.id;
// //
this.deductionPrice = item.discountPrice; this.deductionPrice = item.discountPrice;
@ -526,12 +525,14 @@
} }
} }
if (item.discountType == 2) { if (item.discountType == 2) {
this.memDiscountId = item.id;
// //
this.deductionPrice = item.discountPrice; this.deductionPrice = item.discountPrice;
let oldprice = this.orderPrice - this.deductionPrice; let oldprice = this.orderPrice - this.deductionPrice;
this.priceCaluc(oldprice); this.priceCaluc(oldprice);
} }
if (item.discountType == 3) { if (item.discountType == 3) {
this.memDiscountId = item.id;
// //
this.deductionPrice = parseFloat(this.orderPrice - (this.orderPrice * item this.deductionPrice = parseFloat(this.orderPrice - (this.orderPrice * item
.discountPrice)) .discountPrice))

@ -690,7 +690,7 @@
} else { // } else { //
if (item.discountType == 1) { if (item.discountType == 1) {
if (this.orderPrice > item.discountCondition) { if (this.orderPrice >= item.discountCondition) {
this.memDiscountId = item.id; this.memDiscountId = item.id;
// //
this.deductionPrice = item.discountPrice; this.deductionPrice = item.discountPrice;

@ -376,7 +376,6 @@
this.priceCaluc(this.saveprice); this.priceCaluc(this.saveprice);
} else { // } else { //
this.memDiscountId = item.id;
if (item.discountType == 1) { if (item.discountType == 1) {
// //
if (this.orderPrice >= item.discountCondition) { if (this.orderPrice >= item.discountCondition) {
@ -394,12 +393,14 @@
} }
} }
if (item.discountType == 2) { if (item.discountType == 2) {
this.memDiscountId = item.id;
// //
this.deductionPrice = item.discountPrice; this.deductionPrice = item.discountPrice;
let oldprice = this.paytheprice - this.deductionPrice; let oldprice = this.paytheprice - this.deductionPrice;
this.priceCaluc(oldprice); this.priceCaluc(oldprice);
} }
if (item.discountType == 3) { if (item.discountType == 3) {
this.memDiscountId = item.id;
// //
this.deductionPrice = parseFloat(this.paytheprice - (this.paytheprice * item.discountPrice)) this.deductionPrice = parseFloat(this.paytheprice - (this.paytheprice * item.discountPrice))
.toFixed(2); .toFixed(2);

Loading…
Cancel
Save