Преглед изворни кода

fix(KIP-10722): 【DE】【C端】【沈阳】。用户每日上限会受到积分减免的影响

john пре 2 година
родитељ
комит
dfba81684d
1 измењених фајлова са 6 додато и 2 уклоњено
  1. 6 2
      src/pages/parkingFee/mixins/parkingFeeDiscounts.js

+ 6 - 2
src/pages/parkingFee/mixins/parkingFeeDiscounts.js

@@ -260,7 +260,10 @@ export default {
         this.remainPrice = this.memberGrade.discountFee + this.remainPrice;
       } else if (!this.isMember) {
         this.remainPrice = this.remainPrice - this.memberGrade.discountFee;
-        this.maxReduceDiscount = remainConsumeTime;
+        // 如果不是沈阳,重新计算优惠
+        if(this.parkMallCode !== 4 ) {
+          this.maxReduceDiscount = remainConsumeTime;
+        }
       }
       const [isCrossMessage = false, maxReduceDiscount = this.maxReduceDiscount] = this.crossMessage();
       if (isCrossMessage) {
@@ -275,12 +278,13 @@ export default {
       const reduceHours = (maxOneTimeDiscountFee - this.remainPrice) / hourPrice;
       if (this.checkedList.indexOf('reduces') > -1) {
         this.remainPrice = hourPrice + this.remainPrice;
-        // 计算最大上限
+        // 如果不是沈阳,重新计算计算最大上限
         if(this.parkMallCode !== 4 ) {
           this.maxReduceDiscount = remainConsumeTime > maxOneTimeDiscountFee / hourPrice ? maxOneTimeDiscountFee / hourPrice : remainConsumeTime;
         }
       } else {
         this.remainPrice = this.remainPrice - hourPrice;
+        // 如果不是沈阳,重新计算计算最大上限
         if(this.parkMallCode !== 4 ) {
           this.maxReduceDiscount = remainConsumeTime > maxOneTimeDiscountFee / hourPrice ? maxOneTimeDiscountFee / hourPrice : remainConsumeTime;
         }