edit
This commit is contained in:
@ -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 {}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user