From 268d28a955cbded281249cf4c3fdd7411d6c3961 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期一, 08 八月 2022 17:57:04 +0800
Subject: [PATCH] 2022.8.8 补充

---
 pages/module_consult/consultsearch/consultsearch.js |   59 ++++++++++++++++++-----------------------------------------
 1 files changed, 18 insertions(+), 41 deletions(-)

diff --git a/pages/module_consult/consultsearch/consultsearch.js b/pages/module_consult/consultsearch/consultsearch.js
index ce2483c..9e30741 100644
--- a/pages/module_consult/consultsearch/consultsearch.js
+++ b/pages/module_consult/consultsearch/consultsearch.js
@@ -28,60 +28,37 @@
   },
 
   clearInput() {
-    // @ts-ignore
     this.setData({
       value: '',
       focus: true,
       result: []
-    }); // @ts-ignore
-
-    this.triggerEvent('clear');
-  },
-
-  // @ts-ignore
-  inputFocus(e) {
-    // this.setData({
-    //     searchState: true
-    // })
-    // @ts-ignore
-    this.triggerEvent('focus', e.detail);
-  },
-
-  // @ts-ignore
-  inputBlur(e) {
-    this.setData({
-      focus: false
     });
-    this.triggerEvent('blur', e.detail);
   },
 
-  // @ts-ignore
   inputChange(e) {
     this.setData({
       value: e.detail.value
     });
-    this.triggerEvent('input', e.detail);
+  },
 
-    // if (Date.now() - this.lastSearch < this.data.throttle) {
-    //   return;
-    // }
+  /**
+   * 鎼滅储
+   */
+  search() {
 
-    if (typeof this.data.search !== 'function') {
-      return;
-    }
+  },
 
-    this.lastSearch = Date.now();
-    this.timerId = setTimeout(() => {
-      if (Date.now() - this.lastSearch < this.data.throttle) {
-        return;
-      }
-      this.data.search(e.detail.value).then(json => {
-        this.setData({
-          result: json
-        });
-      }).catch(err => {
-        console.error('search error', err);
-      });
-    }, this.data.throttle);
+  /**
+   * 鑾峰彇鏈湴缂撳瓨鎼滅储鍘嗗彶
+   */
+  getLocalHistory() {
+
+  },
+
+  /**
+   * 鑾峰彇鐑棬鎼滅储鍐呭
+   */
+  getHotTopic() {
+
   },
 })
\ No newline at end of file

--
Gitblit v1.9.3