|
|
|
|
|
|
|
|
rbacSource: 'MINI_PROGRAM', |
|
|
rbacSource: 'MINI_PROGRAM', |
|
|
accessToken: getItem(StorageKeys.Token) |
|
|
accessToken: getItem(StorageKeys.Token) |
|
|
} |
|
|
} |
|
|
options.url = envs[process.env.NODE_ENV].baseUrl + '/api/interfaceMidGroundIn' |
|
|
|
|
|
|
|
|
// options.url = envs[process.env.NODE_ENV].baseUrl + '/api/interfaceMidGroundIn' |
|
|
|
|
|
options.url = envs[process.env.NODE_ENV].baseUrl + '/ifzt/api/interfaceMidGroundIn' |
|
|
// options.url = envs[process.env.NODE_ENV].baseUrl + '/ifzt/api/interfaceMidGroundIn' |
|
|
// options.url = envs[process.env.NODE_ENV].baseUrl + '/ifzt/api/interfaceMidGroundIn' |
|
|
//默认json数据格式提交` |
|
|
//默认json数据格式提交` |
|
|
let contentType = 'application/x-www-form-urlencoded' |
|
|
let contentType = 'application/x-www-form-urlencoded' |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
options.fail = (err) => { |
|
|
options.fail = (err) => { |
|
|
console.log('请求失败返回参数:', res) |
|
|
|
|
|
|
|
|
// console.log('请求失败返回参数:', res) |
|
|
uni.hideLoading() |
|
|
uni.hideLoading() |
|
|
console.log('请求错误', err) |
|
|
console.log('请求错误', err) |
|
|
// if (err == 'openId无效,请核实传参!') { |
|
|
// if (err == 'openId无效,请核实传参!') { |