diff --git a/src/app/admin/api-merchants/list/list.component.html b/src/app/admin/api-merchants/list/list.component.html index 4c53c76..3d3fc8a 100644 --- a/src/app/admin/api-merchants/list/list.component.html +++ b/src/app/admin/api-merchants/list/list.component.html @@ -161,6 +161,13 @@ + + + + + + + 验证码 diff --git a/src/app/admin/api-merchants/list/list.component.ts b/src/app/admin/api-merchants/list/list.component.ts index 67bd4d7..b606385 100644 --- a/src/app/admin/api-merchants/list/list.component.ts +++ b/src/app/admin/api-merchants/list/list.component.ts @@ -103,6 +103,7 @@ export class ListComponent implements OnInit { this.rechargeForm = this.form.group({ merchantId: [null, [Validators.required]], amount: [null, [Validators.required]], + phone: [null, [Validators.required]], smsCode: [null, [Validators.required]], }); this.searchForm = this.form.group({ @@ -298,7 +299,7 @@ export class ListComponent implements OnInit { this.rechargeForm.controls.merchantId.disable(); this.rechargeForm.controls.amount.disable(); - this.common.sendRechargeSmsCode('18090580471', this.rechargeParam['merchantId'], this.rechargeParam['amount'], data => { + this.common.sendRechargeSmsCode(this.rechargeForm.value['phone'], this.rechargeParam['merchantId'], this.rechargeParam['amount'], data => { if (data['return_code'] === '000000') { this.getVerifyCodeCountdown(); } else {