袁野 5 days ago
parent 83f0cffe7b
commit 0c13b49c35
  1. 16
      src/app/pages/goods/goods-list/goods-list.component.html
  2. 2
      src/app/pages/goods/goods-list/goods-list.component.ts
  3. 1
      src/app/pages/login/login/login.component.ts

@ -305,7 +305,7 @@
<th nzLeft rowspan="2">规格名称</th>
<th colspan="2">价格(RMB)</th>
<th rowspan="2">图片</th>
<!-- <th rowspan="2">限购(个)</th>-->
<th rowspan="2">限购(个)</th>
<th rowspan="2">库存(个)</th>
<th colspan="2">时间</th>
<th colspan="4" *ngIf="goodsMsg?.type == 2">虚拟产品</th>
@ -339,7 +339,7 @@
<td>
<img nz-image width="60px" height="60px" nzSrc="{{imageUrl + data.showImg }}" [nzFallback]="fallbackImg" alt="" />
</td>
<!-- <td>{{data.purLimit}}</td>-->
<td>{{data.purLimit}}</td>
<td>{{data.stock}}</td>
<td>{{ data.salesEndTime | date: 'yyyy-MM-dd HH:mm'}}</td>
<td>{{ data.createTime | date: 'yyyy-MM-dd HH:mm'}}</td>
@ -429,12 +429,12 @@
<input nzSize="large" nz-input formControlName="name" placeholder="请输入" />
</nz-form-control>
</nz-form-item>
<!-- <nz-form-item >-->
<!-- <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired>限购数量</nz-form-label>-->
<!-- <nz-form-control [nzSm]="14" [nzXs]="24" nzErrorTip="请输入限购数量!">-->
<!-- <nz-input-number style="width: 100%" formControlName="purLimit" [nzSize]="'large'" [nzMin]="1" [nzMax]="99999" [nzStep]="1" ></nz-input-number>-->
<!-- </nz-form-control>-->
<!-- </nz-form-item>-->
<nz-form-item >
<nz-form-label [nzSm]="6" [nzXs]="24" nzRequired>限购数量</nz-form-label>
<nz-form-control [nzSm]="14" [nzXs]="24" nzErrorTip="请输入限购数量!">
<nz-input-number style="width: 100%" formControlName="purLimit" [nzSize]="'large'" [nzMin]="1" [nzMax]="99999" [nzStep]="1" ></nz-input-number>
</nz-form-control>
</nz-form-item>
<nz-form-item >
<nz-form-label [nzSm]="6" [nzXs]="24" nzRequired>售卖价格</nz-form-label>
<nz-form-control [nzSm]="14" [nzXs]="24" nzErrorTip="请输入售卖价格!">

@ -188,7 +188,7 @@ export class GoodsListComponent {
// 初始化
this.editSpecsForm = this.fb.group({
name: ['', [Validators.required]],
// purLimit: ['' , [Validators.required]],
purLimit: ['' , [Validators.required]],
salePrice: ['', [Validators.required]],
originalPrice: ['', [Validators.required]],
stock: ['', [Validators.required]],

@ -96,6 +96,7 @@ export class LoginComponent {
// 发起登录
this.login.userLogin(this.validateForm.value , (data: any) => {
if (data['return_code'] === '000000') {
debugger
this.storage.set(LOGIN_DATA, this.validateForm.value);
this.storage.set(DATA, data['return_data']['object']);
this.storage.set(USER_TOKEN, data['return_data']['token']);

Loading…
Cancel
Save