diff --git a/src/app/routes/account/account-routing.module.ts b/src/app/routes/account/account-routing.module.ts index f3e14b15..3e5662da 100644 --- a/src/app/routes/account/account-routing.module.ts +++ b/src/app/routes/account/account-routing.module.ts @@ -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 {} diff --git a/src/app/routes/passport/components/login/login.component.ts b/src/app/routes/passport/components/login/login.component.ts index 82ebba95..d9874028 100644 --- a/src/app/routes/passport/components/login/login.component.ts +++ b/src/app/routes/passport/components/login/login.component.ts @@ -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); } });