Ver código fonte

营销物料

zhaoxiaohai 3 anos atrás
pai
commit
b67926cebb
1 arquivos alterados com 6 adições e 1 exclusões
  1. 6 1
      pages/tabbar/smartStore/modules/viewPage.js

+ 6 - 1
pages/tabbar/smartStore/modules/viewPage.js

@@ -1,6 +1,7 @@
 const getHeight = require("../../../../utils/getRheRemainingHeight");
 const _Http = getApp().globalData.http;
 const MFT = require("../../../../utils/matchingFeilType");
+let dowmCount = null;
 Component({
     /**
      * 组件的属性列表
@@ -128,10 +129,14 @@ Component({
         searchInput({
             detail
         }) {
+            clearTimeout(dowmCount);
             this.setData({
                 ['content.where.condition']: detail.trim()
             })
-            this.getList(true)
+            dowmCount = setTimeout(() => {
+                this.getList(true)
+            }, 500);
+
         },
         /* 清除搜索输入 */
         searchClear() {