Browse Source

feat(KIP-17684): 在登录的时候,才能执行会员优惠的逻辑

john 1 year ago
parent
commit
f0b3444cc4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/store/order/index.js

+ 1 - 1
src/store/order/index.js

@@ -84,7 +84,7 @@ export default {
       dispatch('paperCouponRule', checkOutResponse)
       dispatch('paperCouponRule', checkOutResponse)
       // 是否展示优惠
       // 是否展示优惠
       commit('setIsShowDiscounts',isShowDiscounts);
       commit('setIsShowDiscounts',isShowDiscounts);
-      if ( checkOutResponse.parkingRule && this.isLogin === 'haveLoggedIn') {
+      if ( checkOutResponse.parkingRule && this.state.isLogin === 'haveLoggedIn') {
         // 会员等级减免
         // 会员等级减免
         // 停车优惠(首停、会员减免、消费减免)
         // 停车优惠(首停、会员减免、消费减免)
         dispatch('getCheckedTotal',checkOutResponse);
         dispatch('getCheckedTotal',checkOutResponse);