From f0ce6523d6c55ab495c3fa9b0309c3ce8734e52b Mon Sep 17 00:00:00 2001 From: zhl Date: Fri, 2 Jul 2021 15:24:46 +0800 Subject: [PATCH] coupon add valid days --- src/api/coupon.ts | 4 +++- src/views/marketing/coupon.vue | 9 ++++++++- src/views/marketing/coupon_edit.vue | 12 ++++++++++++ 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/src/api/coupon.ts b/src/api/coupon.ts index 61fd54d..892e015 100644 --- a/src/api/coupon.ts +++ b/src/api/coupon.ts @@ -11,6 +11,7 @@ export interface ICouponData { count: number validBegin?: number validEnd?: number + validDays?: number limitOne: number } @@ -20,7 +21,8 @@ export const defaultCouponData: ICouponData = { content: '', total: 0, count: 0, - limitOne: 0 + limitOne: 0, + validDays: 0 } export const getCoupons = (params: any) => diff --git a/src/views/marketing/coupon.vue b/src/views/marketing/coupon.vue index d7c26e0..c7bdaaa 100644 --- a/src/views/marketing/coupon.vue +++ b/src/views/marketing/coupon.vue @@ -72,7 +72,14 @@ - + + + + diff --git a/src/views/marketing/coupon_edit.vue b/src/views/marketing/coupon_edit.vue index 41388ca..9911df9 100644 --- a/src/views/marketing/coupon_edit.vue +++ b/src/views/marketing/coupon_edit.vue @@ -58,6 +58,18 @@ readonly /> + + +