From 519b28f74679db159d24aca7db697384fd97b44f Mon Sep 17 00:00:00 2001 From: GaoHao <1210693421@qq.com> Date: Wed, 13 Nov 2024 16:21:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E6=83=A0=E5=88=B8=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/coupon_manage/add_coupon.vue | 85 +++++++++++++++++++++----- src/views/coupon_manage/couponEnum.js | 4 +- 2 files changed, 73 insertions(+), 16 deletions(-) diff --git a/src/views/coupon_manage/add_coupon.vue b/src/views/coupon_manage/add_coupon.vue index 5a11f05..f3f7c55 100644 --- a/src/views/coupon_manage/add_coupon.vue +++ b/src/views/coupon_manage/add_coupon.vue @@ -10,18 +10,19 @@ - + - + + @@ -29,7 +30,7 @@ - + 确 定 - -
+
- + - - - - - - 全额满可用 + + + + {{ item.label }} + + + + + + + + + + + + + + + {{ city.label }} + + + + + + {{ item.label }} + + + + + + + + + + + +
@@ -123,7 +180,6 @@
- 取 消 @@ -166,7 +222,7 @@ export default { title: '', fullAmount: null, discountAmount: null, - validityType: 'fixed', + validityType: 'custom', validStartTime: '', validEndTime: '', userDays: [], @@ -266,6 +322,7 @@ export default { */ tabClick(item) { console.log(this.form) + this.form = this.resetForm this.form.number = '' this.form.type = item.type this.$refs.form.resetFields() diff --git a/src/views/coupon_manage/couponEnum.js b/src/views/coupon_manage/couponEnum.js index f4cbaf5..973ef4c 100644 --- a/src/views/coupon_manage/couponEnum.js +++ b/src/views/coupon_manage/couponEnum.js @@ -30,11 +30,11 @@ export default { ], validityType: [ { - value: 'fixed', + value: 'custom', label: '领券后有效期内可用' }, { - value: 'custom', + value: 'fixed', label: '固定有效期范围内可用' } ],