edit
This commit is contained in:
@ -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