瀏覽代碼

'2023年8月17日14:51:24'

yxb
wq 1 年之前
父節點
當前提交
47cb2be289
共有 2 個文件被更改,包括 5 次插入4 次删除
  1. 2
    2
      pages/recharge/recharge.vue
  2. 3
    2
      utils/network/request.js

+ 2
- 2
pages/recharge/recharge.vue 查看文件

}; };
request(cardCzPayResult, options).then((res) => { request(cardCzPayResult, options).then((res) => {
const data = stringToJson(res.bizContent); const data = stringToJson(res.bizContent);
if (data.tradeState === "SUCCESS")
if (data.tradeState === "SUCCESS"){
uni.redirectTo({ uni.redirectTo({
url: `/pages/bluetooth/bluetooth?routeType=2&&cardId=${state.cardId}&&fee=${state.fee}`, url: `/pages/bluetooth/bluetooth?routeType=2&&cardId=${state.cardId}&&fee=${state.fee}`,
}); });
}
// state.isShowBlue=true; // state.isShowBlue=true;
console.log(data); console.log(data);
}); });
}; };

+ 3
- 2
utils/network/request.js 查看文件

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无效,请核实传参!') {

Loading…
取消
儲存