| | |
| | | okText: '知道了', |
| | | onOk: () => { |
| | | window.GLOB.$error = false |
| | | |
| | | if (!/#\/login/.test(window.location.href)) { |
| | | sessionStorage.clear() |
| | | if (!!(window.history && window.history.pushState)) { |
| | |
| | | } |
| | | |
| | | /** |
| | | * @description 微信业务请求 原接口 'wxpay/getaccesstoken' |
| | | * @description 使用dostar接口,跳过验证 |
| | | * @param {Object} param 查询及提交参数 |
| | | */ |
| | | loginAndRedirect (param) { |
| | | let url = '' |
| | | if (process.env.NODE_ENV === 'production') { |
| | | url = document.location.origin + '/Home/LoginAndRedirect' |
| | | } else { |
| | | url = '/Home/LoginAndRedirect' |
| | | } |
| | | |
| | | return axios({ |
| | | url: url, |
| | | method: 'post', |
| | | data: qs.stringify(param) |
| | | }) |
| | | } |
| | | |
| | | /** |
| | | * @description 微信业务请求 wxpay/getaccesstoken |
| | | */ |
| | | // wxAccessToken (appId, domain = '') { |
| | | // let _url = domain || window.GLOB.baseurl |