Эх сурвалжийг харах

Merge pull request #568 from John-Hong/John/release-3.15.0/KIP-18218

fix(KIP-18218): 查询缴费的优惠逻辑前置条件必须是包含discountInfo、parkingRule和用户已经登录
John-Hong 11 сар өмнө
parent
commit
505580faa0

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

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