소스 검색

积分计算报错

john 2 년 전
부모
커밋
fee2ac8f84
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/store/order.js

+ 1 - 1
src/store/order.js

@@ -395,7 +395,7 @@ const actions = {
     if (type === 'add' && state.pointsTime < maxPointsTime) {
       const pointsTime = state.pointsTime + state.unitAmount;
       const available = state.available - state.pointsPerUnit;
-      const usingTotalDiscount = usingTotalDiscount + state.unitAmount; // 重新计算已经使用的优惠逻辑
+      const usingTotalDiscount = state.usingTotalDiscount + state.unitAmount; // 重新计算已经使用的优惠逻辑
       if (available > -1) {
         // 如果是深圳车场
         commit('setAvailable', available);