Bläddra i källkod

fix(SCRM-5682): 添加数组的空状态判断和调整用户可用优惠的判断变量

john 1 år sedan
förälder
incheckning
f8e5fd7b6f

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

@@ -78,7 +78,7 @@ export default {
        * */
       this.couponList = [...this.coupons];
       this.remainPrice = this.usingTotalDiscount - this.paperDiscountFee;
-      if ((this.parkMallCode === 4 || this.parkMallCode === 6) && this.orderDetail?.discountInfo?.points[0]?.discountFee) {
+      if ((this.parkMallCode === 4 || this.parkMallCode === 6) && this.orderDetail?.discountInfo?.points?.[0]?.discountFee) {
         this.remainPrice = this.remainPrice - this.orderDetail.discountInfo.points[0].discountFee
       }   
       // 如果前海开启无积分上限的话,则

+ 1 - 1
src/pages/parkingFeeV2/mixins/parkingFeeCoupon.js

@@ -78,7 +78,7 @@ export default {
        * */
       this.couponList = [...this.coupons];
       this.remainPrice = this.usingTotalDiscount - this.paperDiscountFee;
-      if ((this.parkMallCode === 4 || this.parkMallCode === 6) && this.orderDetail?.discountInfo?.points[0]?.discountFee) {
+      if ((this.parkMallCode === 4 || this.parkMallCode === 6) && this.orderDetail?.discountInfo?.points?.[0]?.discountFee) {
         this.remainPrice = this.remainPrice - this.orderDetail.discountInfo.points[0].discountFee
       }   
       // 前海积分不参与当前电子券优惠上限