Showing
3 changed files
with
9 additions
and
5 deletions
| @@ -81,9 +81,9 @@ export struct AccountAndSecurityLayout { | @@ -81,9 +81,9 @@ export struct AccountAndSecurityLayout { | ||
| 81 | 81 | ||
| 82 | // 收到eventId为1的事件后执行该回调 | 82 | // 收到eventId为1的事件后执行该回调 |
| 83 | let callback = (eventData: emitter.EventData): void => { | 83 | let callback = (eventData: emitter.EventData): void => { |
| 84 | - promptAction.showToast({ | ||
| 85 | - message: JSON.stringify(eventData) | ||
| 86 | - }); | 84 | + // promptAction.showToast({ |
| 85 | + // message: JSON.stringify(eventData) | ||
| 86 | + // }); | ||
| 87 | if(eventData&&eventData.data){ | 87 | if(eventData&&eventData.data){ |
| 88 | this.listData[0].subTitle = eventData.data['content'] | 88 | this.listData[0].subTitle = eventData.data['content'] |
| 89 | } | 89 | } |
| @@ -184,6 +184,10 @@ struct ForgetPasswordPage { | @@ -184,6 +184,10 @@ struct ForgetPasswordPage { | ||
| 184 | this.loginViewModel.changeBindPhone(this.phoneContent,this.codeContent).then(()=>{ | 184 | this.loginViewModel.changeBindPhone(this.phoneContent,this.codeContent).then(()=>{ |
| 185 | ToastUtils.shortToast('绑定成功') | 185 | ToastUtils.shortToast('绑定成功') |
| 186 | this.querySecurity() | 186 | this.querySecurity() |
| 187 | + }).catch((message: string) => { | ||
| 188 | + if (message != '') { | ||
| 189 | + ToastUtils.shortToast(message) | ||
| 190 | + } | ||
| 187 | }) | 191 | }) |
| 188 | } | 192 | } |
| 189 | 193 |
| @@ -171,8 +171,8 @@ export class LoginViewModel { | @@ -171,8 +171,8 @@ export class LoginViewModel { | ||
| 171 | return new Promise<object>((success, fail) => { | 171 | return new Promise<object>((success, fail) => { |
| 172 | this.loginModel.changeBindPhone(phone, verificationCode).then((data: object) => { | 172 | this.loginModel.changeBindPhone(phone, verificationCode).then((data: object) => { |
| 173 | success(data) | 173 | success(data) |
| 174 | - }).catch(() => { | ||
| 175 | - fail() | 174 | + }).catch((message: string) => { |
| 175 | + fail(message) | ||
| 176 | }) | 176 | }) |
| 177 | }) | 177 | }) |
| 178 | } | 178 | } |
-
Please register or login to post a comment