瀏覽代碼

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

john 1 年之前
父節點
當前提交
f0b3444cc4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/store/order/index.js

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

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