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 @@
-
+
+
+ {{ row.validDays? row.validDays : '不限制' }}
+
+
+
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
/>
+
+
+