浏览代码

'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 查看文件

@@ -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 查看文件

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

正在加载...
取消
保存