This commit is contained in:
wangshiming
2022-02-16 16:59:49 +08:00
parent f1dc67f92a
commit 8572f3449d
2 changed files with 7 additions and 68 deletions

View File

@ -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)
}
});
}