Commit 47cf6881 by caoyanzhi

update: 错误页面

parent 2b35fa39
...@@ -30,20 +30,27 @@ export default { ...@@ -30,20 +30,27 @@ export default {
data() { data() {
return { return {
img_404, img_404,
gicHost: '' gicHost: '',
message: ''
}; };
}, },
computed: {
message() {
return '登录遇到错误啦!请确认您是否是好办小程序管理员。如不是,请联系管理员在<企业微信-我的企业-权限管理>添加好办管理员。';
}
},
destroyed() { destroyed() {
this.layoutVm.$emit('command', 'showAside'); this.layoutVm.$emit('command', 'showAside');
}, },
/* eslint-disable */ /* eslint-disable */
mounted() { mounted() {
this.layoutVm.$emit('command', 'hideAside'); this.layoutVm.$emit('command', 'hideAside');
const errorCode = this.$route.query.errorCode;
const message = {
'1000': '系统异常', //传入的导购id错误、传入的企业微信id错误
'1001': '您还不是好办的管理员,请在 GIC 后台绑定好办企业后再登录',
'1003': '系统异常,通过手机号查询失败',
'1004': '企微应用未授权',
'1005': '登录超时,请重新登录'
}
this.message = message[errorCode] || '系统异常,请联系达摩管理员';
const userInfos = JSON.parse(sessionStorage.getItem('userInfos') || '{}'); const userInfos = JSON.parse(sessionStorage.getItem('userInfos') || '{}');
this.gicHost = typeof userInfos.gicHost == 'string' ? userInfos.gicHost.replace(/\/$/, '') : ''; this.gicHost = typeof userInfos.gicHost == 'string' ? userInfos.gicHost.replace(/\/$/, '') : '';
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment