修改cid无效、登录缓存问题,正在对接支付功能
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user