修改cid无效、登录缓存问题,正在对接支付功能

This commit is contained in:
zhouyanli
2026-07-14 14:35:54 +08:00
parent 3124f95cb3
commit 173f1c4585
10 changed files with 391 additions and 121 deletions

View File

@@ -8,10 +8,10 @@ if (process.env.NODE_ENV === 'development') {
export default function request(url, data = {}, method = "GET") {
return new Promise((resolve, reject) => {
uni.showLoading({
title: '请求中...',
mask: true
});
// uni.showLoading({
// title: '请求中...',
// mask: true
// });
uni.request({
url: baseUrl + url,
@@ -23,7 +23,7 @@ export default function request(url, data = {}, method = "GET") {
'content-type': 'application/json'
},
success: (res) => {
uni.hideLoading();
// uni.hideLoading();
// HTTP 失败
if (res.statusCode !== 200) {
@@ -54,7 +54,7 @@ export default function request(url, data = {}, method = "GET") {
}
},
fail: (err) => {
uni.hideLoading();
// uni.hideLoading();
reject({ msg: '网络异常', code: -1, raw: err });
}
});