fix bug
This commit is contained in:
@ -213,11 +213,11 @@ export class AccountComponentsEditNameComponent implements OnInit, AfterViewInit
|
||||
|
||||
this.service.http.post(this.service.$api_get_verifyPhone, params).subscribe((res) => {
|
||||
if (res.success) {
|
||||
this.service.msgSrv.success(res.msg);
|
||||
// this.modal.close(true);
|
||||
this.voucher = res.data.voucher
|
||||
this.isVisibleView = true
|
||||
|
||||
} else {
|
||||
this.service.msgSrv.error(res.msg)
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -234,14 +234,18 @@ export class AccountComponentsEditNameComponent implements OnInit, AfterViewInit
|
||||
|
||||
}
|
||||
handleNew() {
|
||||
if(!this.sfView.valid) {
|
||||
return;
|
||||
}
|
||||
const params = {
|
||||
voucher: this.voucher,
|
||||
...this.sfView.value,
|
||||
}
|
||||
this.service.http.post(this.service.$api_set_voucherUpdatePhone, params).subscribe((res) => {
|
||||
if (res.success) {
|
||||
this.service.msgSrv.success(res.msg);
|
||||
this.isVisibleOk = true;
|
||||
} else {
|
||||
this.service.msgSrv.error(res.msg)
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user