xiaohaizhao 10 miesięcy temu
rodzic
commit
bb0a1c801c
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      pages/index/market/index.js

+ 4 - 0
pages/index/market/index.js

@@ -117,6 +117,7 @@ Component({
     },
     /* 获取产品 */
     getList(init = false) {
+      wx.hideLoading()
       if (init.detail != undefined) init = init.detail;
       if (init) content.pageNumber = 1;
       if (content.pageNumber > content.pageTotal) return;
@@ -144,6 +145,9 @@ Component({
       detail
     }) {
       content.where.condition = detail;
+      wx.showLoading({
+        title: '搜索中...',
+      })
       this.getList(true)
     },
     onChange({