Forráskód Böngészése

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

john 2 éve
szülő
commit
fc5053704d
1 módosított fájl, 6 hozzáadás és 1 törlés
  1. 6 1
      src/pages/parkingFee/mixins/parkingFeeCoupon.js

+ 6 - 1
src/pages/parkingFee/mixins/parkingFeeCoupon.js

@@ -76,6 +76,9 @@ export default {
        * */
       this.couponList = [...this.coupons];
       this.remainPrice = this.usingTotalDiscount;
+      if (this.parkMallCode === 4 && this.orderDetail?.discountInfo?.points[0]?.discountFee) {
+        this.remainPrice = this.remainPrice - this.orderDetail.discountInfo.points[0].discountFee
+      }   
       // 如果前海开启无积分上限的话,则
       if ( parkMallCode === 5 && this.unLimitWeekendPoints && this.orderDetail.discountInfo?.points[0]?.discountFee) {
         this.remainPrice = this.remainPrice - this.orderDetail?.discountInfo?.points[0]?.discountFee
@@ -104,7 +107,9 @@ export default {
           // 验证剩余优惠券是否可勾选(无需验证:后端已计算可勾选的优惠券)
           this.newGroupedCouponData()
           this.setAllDisabled()
-          this.isDisabledByRule(this.couponList[0], 0, 'showMsg');
+          if (this.parkMallCode === 4) {
+            this.isDisabledByRule(this.couponList[0], 0, 'showMsg');
+          }          
         })
       }
     },