pull/1/head
袁野 4 years ago
parent f6dbd630b5
commit a409d862d9
  1. 10
      src/app/admin/coupon/coupon-edit/coupon-edit.component.html
  2. 2
      src/app/admin/coupon/coupon-edit/coupon-edit.component.ts
  3. 4
      src/environments/environment.prod.ts

@ -31,6 +31,16 @@
</nz-form-control> </nz-form-control>
</nz-form-item> </nz-form-item>
</div> </div>
<div nz-col [nzSpan]="8">
<nz-form-item>
<nz-form-label [nzFor]="'couponSource'" >卡券来源</nz-form-label>
<nz-form-control nzErrorTip="请选择卡券来源!">
<nz-select nzPlaceHolder="请选择卡券来源" [formControlName]="'couponSource'">
<nz-option nzValue="1" nzLabel="中石化"></nz-option>
</nz-select>
</nz-form-control>
</nz-form-item>
</div>
<div nz-col [nzSpan]="8"> <div nz-col [nzSpan]="8">
<nz-form-item> <nz-form-item>
<nz-form-label [nzFor]="'displayArea'" nzRequired>展示区域</nz-form-label> <nz-form-label [nzFor]="'displayArea'" nzRequired>展示区域</nz-form-label>

@ -80,6 +80,7 @@ export class CouponEditComponent implements OnInit {
isPresent: [false, [Validators.required]], isPresent: [false, [Validators.required]],
payType: [false, [Validators.required]], payType: [false, [Validators.required]],
displayArea: [false, [Validators.required]], displayArea: [false, [Validators.required]],
couponSource: [null],
handselCouponId: [null], handselCouponId: [null],
status: [null], status: [null],
couponKey: [null], couponKey: [null],
@ -258,6 +259,7 @@ export class CouponEditComponent implements OnInit {
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']['displayArea'] = String(data['return_data']['displayArea']);
data['return_data']['payType'] = String(data['return_data']['payType']); data['return_data']['payType'] = String(data['return_data']['payType']);
data['return_data']['couponSource'] = String(data['return_data']['couponSource']);
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']);

@ -1,5 +1,5 @@
export const environment = { export const environment = {
production: true, production: true,
baseUrl: 'https://hsgcs.dctpay.com/brest/', // 正式环境服务器地址(请求数据地址) baseUrl: 'https://hsg.dctpay.com/brest/', // 正式环境服务器地址(请求数据地址)
imageUrl: 'https://hsgcs.dctpay.com/filesystem/', imageUrl: 'https://hsg.dctpay.com/filesystem/',
}; };

Loading…
Cancel
Save