diff --git a/src/app/admin/coupon/coupon-edit/coupon-edit.component.html b/src/app/admin/coupon/coupon-edit/coupon-edit.component.html index aa7c7a2..3f1f9bc 100644 --- a/src/app/admin/coupon/coupon-edit/coupon-edit.component.html +++ b/src/app/admin/coupon/coupon-edit/coupon-edit.component.html @@ -31,6 +31,28 @@ +
+ + 展示区域 + + + + + + + +
+
+ + 支付类型 + + + + + + + +
卡券面值 diff --git a/src/app/admin/coupon/coupon-edit/coupon-edit.component.ts b/src/app/admin/coupon/coupon-edit/coupon-edit.component.ts index 01b8f7e..acd91ed 100644 --- a/src/app/admin/coupon/coupon-edit/coupon-edit.component.ts +++ b/src/app/admin/coupon/coupon-edit/coupon-edit.component.ts @@ -79,6 +79,8 @@ export class CouponEditComponent implements OnInit { discountPrice: [null, [Validators.required]], merchantId: [null, [Validators.required]], isPresent: [false, [Validators.required]], + payType: [false, [Validators.required]], + displayArea: [false, [Validators.required]], handselCouponId: [null], status: [null], couponKey: [null], @@ -255,6 +257,8 @@ export class CouponEditComponent implements OnInit { this.coupon.getCouponById(id, data => { if (data['return_code'] === '000000') { data['return_data']['couponType'] = String(data['return_data']['couponType']); + data['return_data']['displayArea'] = String(data['return_data']['displayArea']); + data['return_data']['payType'] = String(data['return_data']['payType']); this.content = data['return_data']['couponDesc']; if (data['return_data']['couponImg'] != null && data['return_data']['couponImg'] !== '') { const couponImg = String(data['return_data']['couponImg']);