优化页面

This commit is contained in:
pengxiaolong
2025-06-18 16:01:55 +08:00
parent e464d99af5
commit ec9dcb486f
122 changed files with 349 additions and 251 deletions

View File

@@ -3,8 +3,8 @@ export default function request(urldata) {
const { url, data, method, header, userInfo } = urldata;
// const baseUrl = "http://49.235.115.212:8086/"+ url;
// const baseUrl = "https://pk.zhukeping.com/"+ url;
// const baseUrl = "http://120.26.251.180:8086/"+ url;
const baseUrl = "http://192.168.0.218:8086/"+ url;
const baseUrl = "http://120.26.251.180:8086/"+ url;
// const baseUrl = "http://192.168.0.218:8086/"+ url;
if (userInfo) {
return new Promise((resolve, reject) => {
uni.getStorage({
@@ -18,7 +18,6 @@ export default function request(urldata) {
method: method,
header: header,
success: function (res) {
console.log("请求成功1", res.data);
resolve(addPrefixToHeaderIcon(res.data));
// resolve(res.data);
},
@@ -50,7 +49,6 @@ export default function request(urldata) {
method: method,
header: header,
success: function (res) {
console.log("请求成功2", res);
// resolve(res.data);
resolve(addPrefixToHeaderIcon(res.data));
},