Ver código fonte

积分计算报错

john 2 anos atrás
pai
commit
fee2ac8f84
1 arquivos alterados com 1 adições e 1 exclusões
  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);