This commit is contained in:
Taric Xin
2022-01-05 14:52:22 +08:00
parent aad0fed832
commit badaa27cff
2 changed files with 14 additions and 11 deletions

View File

@ -16,14 +16,13 @@ const routes: Routes = [
path: 'center', path: 'center',
component: AccountComponentsCenterComponent, component: AccountComponentsCenterComponent,
data: { data: {
title: '账户中心', title: '账户中心'
titleI18n: 'app.my.center', }
}, }
},
]; ];
@NgModule({ @NgModule({
imports: [RouterModule.forChild(routes)], imports: [RouterModule.forChild(routes)],
exports: [RouterModule], exports: [RouterModule]
}) })
export class AccountRoutingModule {} export class AccountRoutingModule {}

View File

@ -164,15 +164,19 @@ export class UserLoginComponent implements OnInit, OnDestroy {
// this.captchaSrv.sendSMSCaptchaByMobile(); // this.captchaSrv.sendSMSCaptchaByMobile();
if (result) { if (result) {
this.captchaSrv.sendSMSCaptchaByMobile(this.captchaSF.value.phone).subscribe(res => { this.captchaSrv.sendSMSCaptchaByMobile(this.captchaSF.value.phone).subscribe(res => {
console.log(res);
if (res.success && res.data.code === '1') { if (res.success && res.data.code === '1') {
this.captchaSrv.msgSrv.success('发送验证码成功'); this.captchaSrv.msgSrv.success('发送验证码成功');
this.createInterval(); this.createInterval();
} else if (res.data.code === '503046') { }
this.dunHelper.popUp(this.captchaSF.value.phone).subscribe(_ => { // else if (res.status === 503609) {
this.createInterval(); // this.dunHelper.popUp(this.captchaSF.value.phone).subscribe(_ => {
this.dunHelper.destory(); // this.createInterval();
}); // this.dunHelper.destory();
} else { // });
// }
else {
this.captchaSrv.msgSrv.warning(res.msg); this.captchaSrv.msgSrv.warning(res.msg);
} }
}); });