|
@@ -18,10 +18,10 @@ class HTTP {
|
|
|
})
|
|
|
}
|
|
|
_request(url, resolve, reject, data, method, header, showLoading) {
|
|
|
- if (showLoading) wx.showLoading({
|
|
|
+ /* if (showLoading) wx.showLoading({
|
|
|
title: showLoading,
|
|
|
mask: true
|
|
|
- })
|
|
|
+ }) */
|
|
|
wx.request({
|
|
|
url: this.baseUrl + '/yos/rest/index' + url,
|
|
|
data: data,
|
|
@@ -35,7 +35,7 @@ class HTTP {
|
|
|
reject(err);
|
|
|
},
|
|
|
complete: (res) => {
|
|
|
- if (showLoading) wx.hideLoading()
|
|
|
+ // if (showLoading) wx.hideLoading()
|
|
|
if (res.errMsg != 'request:ok') {
|
|
|
wx.showToast({
|
|
|
title: '网络异常,请重新进入',
|