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

修改getDoctorAuth方法字段 1:未认证 2、认证中 3、认证成功 4、认证失败

上级 e9fd3da3
......@@ -54,7 +54,7 @@ router.beforeEach((to, from, next) => {
if(res==3){
if(to.meta.doctorAuth){
utils.getDoctorAuth(router).then(resAuth=>{
if(resAuth==4){
if(resAuth==3){
next()
}else{
next(false)
......
......@@ -121,7 +121,7 @@ export default {
method: 'get',
description: '检查用户的认证权限',
}).then(res => {
// 1:未认证 2、认证中 3、认证失败 4、认证成功
// 1:未认证 2、认证中 3、认证成功 4、认证失败
// res.data=3; // 该行注释用以本地测试用! 该行注释用以本地测试用! 该行注释用以本地测试用!
if (res.code == '000000') {
if(res.data===1){
......@@ -140,7 +140,7 @@ export default {
path: '/patients-manage/mypatients-manage/patients-list'
})
})
}else if(res.data===3){
}else if(res.data===4){
alertMessage('您的身份认证审核失败,请重新认证通过后即可使用该功能。','重新认证','取消', ()=>{
location.href = getSaasHost() + '/saas/pica_personal_edit.html?ZmxhZz0x&showAuthCerty=true'
},()=>{
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册