Commit d078dc7c by caoyanzhi

update: 新建优惠券-调整卡券上限

parent 7177adc0
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
<div class="section-content"> <div class="section-content">
<h3>选择卡券</h3> <h3>选择卡券</h3>
<el-form-item label="选择卡券" required v-show="mallProId === '-1'"> <el-form-item label="选择卡券" required v-show="mallProId === '-1'">
<el-button plain @click="showCard" :disabled="cardList.length >= 10">添加卡券</el-button> <el-button plain @click="showCard" :disabled="cardList.length >= addCardMax">添加卡券</el-button>
<span style="font-size: 12px;color: rgb(144, 147, 153);margin-left:10px;">支持选择兑换券</span> <span style="font-size: 12px;color: rgb(144, 147, 153);margin-left:10px;">支持选择兑换券,最多支持添加{{ addCardMax }}张卡券</span>
</el-form-item> </el-form-item>
<div class="alert-content" v-if="couponStatus"> <div class="alert-content" v-if="couponStatus">
<el-alert title="原卡券已被删除,请及时下线卡券,否则用户将无法兑换" type="warning"> </el-alert> <el-alert title="原卡券已被删除,请及时下线卡券,否则用户将无法兑换" type="warning"> </el-alert>
...@@ -344,6 +344,7 @@ export default { ...@@ -344,6 +344,7 @@ export default {
} }
}; };
return { return {
addCardMax: 20, // 添加卡券的上限数量
ladder: [], ladder: [],
isDifferentialPricing: '', isDifferentialPricing: '',
ladderPriceList: [], ladderPriceList: [],
...@@ -934,6 +935,7 @@ export default { ...@@ -934,6 +935,7 @@ export default {
}, },
// 显示卡券弹窗 // 显示卡券弹窗
showCard() { showCard() {
if (this.cardList.length >= this.addCardMax) return;
this.showCardDialog = true; this.showCardDialog = true;
}, },
// 子组件触发方法 // 子组件触发方法
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment