//如果未登录||新用户 | //如果未登录||新用户 | ||||
if (!getItem('openId')) { | if (!getItem('openId')) { | ||||
let data = { | let data = { | ||||
userType: "PERSONAL", | userType: "PERSONAL", | ||||
idNum: state.form.userIdNum, | idNum: state.form.userIdNum, |
opId: getItem(StorageKeys.OpenId), | opId: getItem(StorageKeys.OpenId), | ||||
} | } | ||||
// options.url = envs[process.env.NODE_ENV].baseUrl + '/api/interfaceMidGroundIn' | |||||
options.url = envs[process.env.NODE_ENV].baseUrl + '/dev/api/interfaceMidGroundIn' | |||||
options.url = envs[process.env.NODE_ENV].baseUrl + '/api/interfaceMidGroundIn' | |||||
// options.url = envs[process.env.NODE_ENV].baseUrl + '/dev/api/interfaceMidGroundIn' | |||||
//默认json数据格式提交` | //默认json数据格式提交` | ||||
let contentType = 'application/x-www-form-urlencoded' | let contentType = 'application/x-www-form-urlencoded' | ||||
return new Promise(async (resolve, reject) => { | return new Promise(async (resolve, reject) => { | ||||
const res = await request(interceptNDApi, options); | const res = await request(interceptNDApi, options); | ||||
const data = stringToJson(res.bizContent); | const data = stringToJson(res.bizContent); | ||||
if(data.pass='on'){ | |||||
if(data.pass=='on'){ | |||||
confirm('鉴于系统正在进行升级维护,请您前往贵州黔通智联九州ETC服务小程序,以便顺利办理相关业务。', () => { | confirm('鉴于系统正在进行升级维护,请您前往贵州黔通智联九州ETC服务小程序,以便顺利办理相关业务。', () => { | ||||
}, '温馨提示', true, '确定'); | }, '温馨提示', true, '确定'); | ||||
}else{ | }else{ | ||||
resolve(data); | resolve(data); | ||||
} | } | ||||
console.log("获取邮寄地址", data) | |||||
}).catch((error) => { | }).catch((error) => { | ||||
reject(error); | reject(error); | ||||
}); | }); |