提交 82aa77cb 编写于 作者: tao.wu's avatar tao.wu

增加登录的校验

上级 993bb958
...@@ -221,12 +221,15 @@ export default { ...@@ -221,12 +221,15 @@ export default {
window.location.href = 'https://android.myapp.com/myapp/detail.htm?apkName=com.picahealth.yunque&ADTAG=mobile'; window.location.href = 'https://android.myapp.com/myapp/detail.htm?apkName=com.picahealth.yunque&ADTAG=mobile';
}); });
} else { } else {
if(!flag){ if(!flag && !this.loaded){
return; return;
} }
this.$rocNative.getToken().then(data => { this.$rocNative.getToken().then(data => {
const { userToken } = data; const { userToken } = data;
checkHospitalStatus(userToken).then(res => { checkHospitalStatus(userToken).then(res => {
if(res.code=='200006'){
this.$rocNative.gotoLogin();
}else{
const status = res.data.status; const status = res.data.status;
if (status == 1) { // 机构状态正常 if (status == 1) { // 机构状态正常
remind({ token: userToken }).then(resD => { remind({ token: userToken }).then(resD => {
...@@ -277,6 +280,7 @@ export default { ...@@ -277,6 +280,7 @@ export default {
}) })
}); });
} }
}
}) })
}); });
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册