|
@@ -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
|
|
|
})
|