完成积分模块
This commit is contained in:
@@ -29,10 +29,10 @@
|
||||
<el-form-item label="数量">
|
||||
<el-input-number v-model="form.num" controls-position="right" :min="1"></el-input-number>
|
||||
</el-form-item>
|
||||
<el-form-item label="选择优惠劵" v-if="form.isGiftCoupon == 1">
|
||||
<el-form-item label="选择优惠券" v-if="form.isGiftCoupon == 1">
|
||||
<div>
|
||||
<el-button type="primary" icon="el-icon-plus" @click="$refs.coupon.show([...productIds])">
|
||||
添加优惠劵
|
||||
添加优惠券
|
||||
</el-button>
|
||||
</div>
|
||||
<div class="shop_list">
|
||||
@@ -145,7 +145,7 @@ export default {
|
||||
if (this.form.isGiftCoupon == 1) {
|
||||
if (this.productIds.length == 0) {
|
||||
this.$message({
|
||||
message: "请选择优惠劵",
|
||||
message: "请选择优惠券",
|
||||
type: "warning",
|
||||
});
|
||||
return false;
|
||||
@@ -190,7 +190,7 @@ export default {
|
||||
this.dialogVisible = true;
|
||||
if (obj && obj.id) {
|
||||
this.form = { ...obj };
|
||||
// 留着以后说不定多个优惠劵
|
||||
// 留着以后说不定多个优惠券
|
||||
// let res = await activate(obj.id)
|
||||
// this.productIds = res
|
||||
if (obj.couponId) {
|
||||
|
||||
Reference in New Issue
Block a user