Forráskód Böngészése

coupon bug 修复

lock.qiu@kerryprops.com 2 éve
szülő
commit
61fcd68ee8
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      src/pages/parkingFee/mixins/parkingFeeCoupon.js

+ 2 - 2
src/pages/parkingFee/mixins/parkingFeeCoupon.js

@@ -200,14 +200,14 @@ export default {
           couponList = couponList.map((elm, i) => {
             elm.disabled = false; // 默认可选
             const elmName = `coupon${i}`;
-            if (elm.name === name) {
+            if (elm.superposition === superposition) {
               if (limitCountPerOrder) { // 是否存在上限
                 if (this.checkedCouponList.length >= limitCountPerOrder) {
                   elm.disabled = this.checkedCouponList.indexOf(elmName) < 0
                 }
               }
             } else {
-              elm.disabled = false; // 非同批次的优惠券设置为不可选择
+              elm.disabled = true; // 非同批次的优惠券设置为不可选择
             }
             return elm
           })