瀏覽代碼

推广素材

zhaoxiaohai 3 年之前
父節點
當前提交
eb371066e1
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      pages/promotional/index.js

+ 6 - 1
pages/promotional/index.js

@@ -1,6 +1,8 @@
 const getHeight = require("../../utils/getRheRemainingHeight");
 const _Http = getApp().globalData.http;
 const MFT = require("../../utils/matchingFeilType");
+let dowmCount = null;
+
 Page({
 
     /**
@@ -91,10 +93,13 @@ Page({
     searchInput({
         detail
     }) {
+        clearTimeout(dowmCount);
         this.setData({
             ['content.where.condition']: detail.trim()
         })
-        this.getList(true)
+        dowmCount = setTimeout(() => {
+            this.getList(true)
+        }, 500);
     },
     /* 开关切换 */
     changeSwitch({