Przeglądaj źródła

修改积分优惠处的描述

john 2 lat temu
rodzic
commit
47330e5cfb
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/store/order.js

+ 1 - 1
src/store/order.js

@@ -319,7 +319,7 @@ const actions = {
     commit('setMaxOneDayDiscountFee', maxOneDayDiscountFee);
     commit('setPointsPerHour', pointsPerUnit);
     commit('setUnitAmount', unitAmount);
-    commit('setIntegralDesc', discountFee ? `已选择兑换${discountFee}元` : `${pointsPerUnit}积分可停车1小时`);
+    commit('setIntegralDesc', discountFee ? `已选择兑换${discountFee}元` : available > pointsPerUnit ? `${available}积分可减免` : `${pointsPerUnit}积分可停车1小时`); // 积分优惠处的描述
   },
   // 当前最大可选优惠时间
   /*