完成积分模块

This commit is contained in:
gyq
2025-12-11 09:15:30 +08:00
parent 5b2d2ab8c3
commit b860fa0009
19 changed files with 1813 additions and 309 deletions

View File

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