| | |
| | | } |
| | | |
| | | /** |
| | | * @description 使用dostar接口,跳过验证 |
| | | * @param {Object} param 查询及提交参数 |
| | | * @description 老系统登录 |
| | | */ |
| | | loginAndRedirect (param) { |
| | | let url = '' |
| | | if (process.env.NODE_ENV === 'production') { |
| | | url = document.location.origin + '/zh-CN/Home/LoginAndRedirect' |
| | | } else { |
| | | url = window.GLOB.location + '/zh-CN/Home/LoginAndRedirect' |
| | | } |
| | | |
| | | return axios({ |
| | | url: url, |
| | | url: document.location.origin + '/zh-CN/Home/LoginAndRedirect', |
| | | method: 'post', |
| | | data: qs.stringify(param) |
| | | }) |
| | | } |
| | | |
| | | /* @description 直接请求 |
| | | /** |
| | | * @description 微信业务请求 原接口 'wxpay/getaccesstoken' |
| | | */ |
| | | // wxAccessToken (appId, domain = '') { |
| | |
| | | res.ErrCode = '-2' |
| | | MKEmitter.emit('reloadTabs') |
| | | } else if (res.message === 'permission deny') { |
| | | res.message = window.GLOB.dict['permission_deny'] || '无当前菜单或按钮的访问权限,请联系管理员!' |
| | | res.ErrMesg = window.GLOB.dict['permission_deny'] || '无当前菜单或按钮的访问权限,请联系管理员!' |
| | | let isBtn = url.indexOf('s_TableData_InUpDe') > -1 |
| | | res.message = window.GLOB.dict['permission_deny'] || `无当前${isBtn ? '按钮' : '菜单'}的访问权限,请联系管理员!` |
| | | res.ErrMesg = res.message |
| | | } |
| | | } |
| | | resolve(res) |