Browse Source

移除loading

xiaohaizhao 2 years ago
parent
commit
1f974fd195
1 changed files with 3 additions and 3 deletions
  1. 3 3
      utils/Http.js

+ 3 - 3
utils/Http.js

@@ -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: '网络异常,请重新进入',