瀏覽代碼

移除loading

xiaohaizhao 2 年之前
父節點
當前提交
1f974fd195
共有 1 個文件被更改,包括 3 次插入3 次删除
  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: '网络异常,请重新进入',