From 62939f2e4faf05d0e847f851878ac2dd73469b3f Mon Sep 17 00:00:00 2001
From: yuanye <418471657@qq.com>
Date: Sat, 27 Mar 2021 01:36:58 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BF=AE=E6=94=B9=E3=80=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../coupon-edit/coupon-edit.component.html | 22 +++++++++++++++++++
.../coupon-edit/coupon-edit.component.ts | 4 ++++
2 files changed, 26 insertions(+)
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']);