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',
component: AccountComponentsCenterComponent,
data: {
title: '账户中心',
titleI18n: 'app.my.center',
},
},
title: '账户中心'
}
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
exports: [RouterModule]
})
export class AccountRoutingModule {}

View File

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