diff --git a/src/app/routes/account/components/center/center.component.html b/src/app/routes/account/components/center/center.component.html
index 7a13d9aa..d9df68c0 100644
--- a/src/app/routes/account/components/center/center.component.html
+++ b/src/app/routes/account/components/center/center.component.html
@@ -1,70 +1,5 @@
-
个人中心
diff --git a/src/app/routes/account/components/edit-name/edit-name.component.ts b/src/app/routes/account/components/edit-name/edit-name.component.ts
index 0fc73231..14bc6509 100644
--- a/src/app/routes/account/components/edit-name/edit-name.component.ts
+++ b/src/app/routes/account/components/edit-name/edit-name.component.ts
@@ -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)
}
});
}