优惠券优化

This commit is contained in:
吴昊天 2023-03-13 12:09:07 +08:00
parent 8ade2c21ae
commit d620fc8a18
3 changed files with 13 additions and 9 deletions

View File

@ -81,7 +81,7 @@ export default {
isTemplate: false,
loading: false,
tableFrom: {
receive_type: 1,
receive_type: 3,
page: 1,
limit: 10,
},

View File

@ -97,7 +97,7 @@ export default {
page: 1, // 当前页
limit: 15,
coupon_title: '',
receive_type: 1,
receive_type: 3,
},
total: 0, // 总条数
};

View File

@ -18,13 +18,17 @@
<FormItem label="优惠券名称">
<Input v-model="formData.coupon_title" :maxlength="18" placeholder="请输入优惠券名称"></Input>
</FormItem>
<FormItem label="优惠券面值">
<InputNumber :min="1" :max="99999" v-model="formData.coupon_price"></InputNumber>
</FormItem>
<FormItem label="发送方式">
<RadioGroup v-model="formData.receive_type">
<Radio :label="1">普通券</Radio>
<Radio :label="2">新人券</Radio>
<!-- <Radio :label="3">赠送券</Radio> -->
<Radio :label="4">会员券</Radio>
<Radio :label="1">手动领取</Radio>
<Radio :label="2">新用户自动发放</Radio>
<Radio :label="3">后台赠送</Radio>
<Radio :label="4">付费会员专享</Radio>
</RadioGroup>
<div class="tip">手动领取:用户需要手动领取优惠券;新用户自动发放:新注册的用户自动发放;后台赠送:后台发放制定用户或者添加到商品里面用户购买该商品获得;付费会员专享:仅付费会员可以领取和使用</div>
</FormItem>
<FormItem label="优惠劵类型">
<RadioGroup v-model="formData.type">
@ -50,9 +54,6 @@
</Select>
<div class="info">选择商品的品类</div>
</FormItem>
<FormItem label="优惠券面值">
<InputNumber :min="1" :max="99999" v-model="formData.coupon_price"></InputNumber>
</FormItem>
<FormItem label="使用门槛">
<RadioGroup v-model="isMinPrice">
<Radio :label="0">无门槛</Radio>
@ -462,4 +463,7 @@ export default {
right: 0;
transform: translate(50%, -50%);
}
.tip {
color: #888;
}
</style>