|
|
@ -79,6 +79,8 @@ export class CouponEditComponent implements OnInit { |
|
|
|
discountPrice: [null, [Validators.required]], |
|
|
|
discountPrice: [null, [Validators.required]], |
|
|
|
merchantId: [null, [Validators.required]], |
|
|
|
merchantId: [null, [Validators.required]], |
|
|
|
isPresent: [false, [Validators.required]], |
|
|
|
isPresent: [false, [Validators.required]], |
|
|
|
|
|
|
|
payType: [false, [Validators.required]], |
|
|
|
|
|
|
|
displayArea: [false, [Validators.required]], |
|
|
|
handselCouponId: [null], |
|
|
|
handselCouponId: [null], |
|
|
|
status: [null], |
|
|
|
status: [null], |
|
|
|
couponKey: [null], |
|
|
|
couponKey: [null], |
|
|
@ -255,6 +257,8 @@ export class CouponEditComponent implements OnInit { |
|
|
|
this.coupon.getCouponById(id, data => { |
|
|
|
this.coupon.getCouponById(id, data => { |
|
|
|
if (data['return_code'] === '000000') { |
|
|
|
if (data['return_code'] === '000000') { |
|
|
|
data['return_data']['couponType'] = String(data['return_data']['couponType']); |
|
|
|
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']; |
|
|
|
this.content = data['return_data']['couponDesc']; |
|
|
|
if (data['return_data']['couponImg'] != null && data['return_data']['couponImg'] !== '') { |
|
|
|
if (data['return_data']['couponImg'] != null && data['return_data']['couponImg'] !== '') { |
|
|
|
const couponImg = String(data['return_data']['couponImg']); |
|
|
|
const couponImg = String(data['return_data']['couponImg']); |
|
|
|