Browse Source

搜索优化

xiaohaizhao 1 năm trước cách đây
mục cha
commit
f195386077
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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({