Browse Source

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

yxb
wq 1 year ago
parent
commit
47cb2be289
2 changed files with 5 additions and 4 deletions
  1. 2
    2
      pages/recharge/recharge.vue
  2. 3
    2
      utils/network/request.js

+ 2
- 2
pages/recharge/recharge.vue View File

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

+ 3
- 2
utils/network/request.js View File

@@ -59,7 +59,8 @@ export function request(code, options = {}, start = false) {
rbacSource: 'MINI_PROGRAM',
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'
//默认json数据格式提交`
let contentType = 'application/x-www-form-urlencoded'
@@ -167,7 +168,7 @@ export function request(code, options = {}, start = false) {
}
}
options.fail = (err) => {
console.log('请求失败返回参数:', res)
// console.log('请求失败返回参数:', res)
uni.hideLoading()
console.log('请求错误', err)
// if (err == 'openId无效,请核实传参!') {

Loading…
Cancel
Save