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

master
杨杰 1 year ago
parent 9ad6909d34
commit a07d1a827b
  1. 2
      member-Recharge/rec-confirmation/rec-confirmation.vue
  2. 13
      pages/order/confirmation.vue
  3. 2
      qianzhu-KFC/confirmOrder/confirmOrder.vue
  4. 7
      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;

@ -498,7 +498,7 @@
this.$refs.popup.show(); this.$refs.popup.show();
}, },
// //
radioChanges(item) { radioChanges(item) {
this.paytheprice = this.orderPrice; this.paytheprice = this.orderPrice;
this.rechangeload(); this.rechangeload();
if (this.memDiscountId == item.id) { // if (this.memDiscountId == item.id) { //
@ -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;
@ -525,13 +524,15 @@
}) })
} }
} }
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) {
@ -393,13 +392,15 @@
}) })
} }
} }
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