pull/1/head
袁野 4 years ago
parent f9b6f5140d
commit a9141bc3d8
  1. 6
      src/app/admin/coupon/coupon-list/coupon-list.component.html
  2. 4
      src/app/admin/merchant/merchant-edit/merchant-edit.component.ts

@ -102,8 +102,11 @@
<th nzWidth="150px">卡券编号</th> <th nzWidth="150px">卡券编号</th>
<th nzWidth="160px">卡券名称</th> <th nzWidth="160px">卡券名称</th>
<th nzWidth="100px">销售价格</th> <th nzWidth="100px">销售价格</th>
<th nzWidth="100px">折扣价格</th>
<th nzWidth="100px">有效库存</th> <th nzWidth="100px">有效库存</th>
<th nzWidth="100px">展示区域</th>
<th nzWidth="100px">卡券类型</th> <th nzWidth="100px">卡券类型</th>
<th nzWidth="100px">是否赠券</th>
<th nzWidth="120px">卡券状态</th> <th nzWidth="120px">卡券状态</th>
<th nzWidth="150px">销售截止时间</th> <th nzWidth="150px">销售截止时间</th>
<th nzWidth="150px">创建时间</th> <th nzWidth="150px">创建时间</th>
@ -116,8 +119,11 @@
<td>{{data.couponKey}}</td> <td>{{data.couponKey}}</td>
<td>{{data.couponName}}</td> <td>{{data.couponName}}</td>
<td>¥{{data.salesPrice}}</td> <td>¥{{data.salesPrice}}</td>
<td>¥{{data.discountPrice}}</td>
<td>{{data.stockCount}}</td> <td>{{data.stockCount}}</td>
<td>{{data.displayArea === 1 ? '赠券专区' : '金币专区'}}</td>
<td>{{data.couponType === 1 ? '内部卷' : '外部卷'}}</td> <td>{{data.couponType === 1 ? '内部卷' : '外部卷'}}</td>
<td>{{data.isPresent === true ? '赠券' : '无赠券'}}</td>
<td>{{data.status | couponStatus}}</td> <td>{{data.status | couponStatus}}</td>
<td>{{data.salesEndTime | date: 'yyyy-MM-dd HH:mm'}}</td> <td>{{data.salesEndTime | date: 'yyyy-MM-dd HH:mm'}}</td>
<td>{{data.createTime | date: 'yyyy-MM-dd HH:mm'}}</td> <td>{{data.createTime | date: 'yyyy-MM-dd HH:mm'}}</td>

@ -49,9 +49,9 @@ export class MerchantEditComponent implements OnInit {
} }
}); });
this.validateForm = this.fb.group({ this.validateForm = this.fb.group({
loginTelephone: [null, [Validators.required, ValidatorsService.mobile]], loginTelephone: [null, [Validators.required]],
password: [null, [Validators.required, ValidatorsService.minLength(6)]], password: [null, [Validators.required, ValidatorsService.minLength(6)]],
merchantName: [null, [Validators.required, ValidatorsService.pwdLength(2, 5)]], merchantName: [null, [Validators.required]],
telephone: [null, [Validators.required]], telephone: [null, [Validators.required]],
address: [null, [Validators.required]], address: [null, [Validators.required]],
bankName: [null], bankName: [null],

Loading…
Cancel
Save