This commit is contained in:
Taric Xin
2021-12-27 10:06:54 +08:00
parent aefcd67313
commit 6a3f551509
6 changed files with 42 additions and 27 deletions

View File

@ -108,7 +108,7 @@ export class UserRetrievePasswordComponent implements OnInit, AfterViewInit {
submitForm2() {
for (const i in this.formGroup2.controls) {
if ( this.formGroup2.controls[i]) {
if (this.formGroup2.controls[i]) {
this.formGroup2.controls[i].markAsDirty();
this.formGroup2.controls[i].updateValueAndValidity();
}
@ -145,8 +145,8 @@ export class UserRetrievePasswordComponent implements OnInit, AfterViewInit {
return;
}
if (this.formGroup1.value.phone) {
this.service.http
.post(`${this.service.$getAccountSMVerificationCode}`, null, { phoneNumber: this.formGroup1.value.phone })
this.service
.request(`${this.service.$api_send_sms_by_mobile}`, { phoneNumber: this.formGroup1.value.phone })
.subscribe((res: any) => {
// console.log(res, 'res');
if (res.success) {