From 1e34cdf13327a4a62080cc875bbb207152219eb2 Mon Sep 17 00:00:00 2001 From: Junling Bu Date: Wed, 15 Aug 2018 09:04:30 +0800 Subject: [PATCH] =?UTF-8?q?fix[litemall-wx]:=20=E5=A6=82=E6=9E=9C=E5=85=B3?= =?UTF-8?q?=E9=94=AE=E5=AD=97=E6=98=AF=E7=A9=BA=EF=BC=8C=E5=88=99=E4=B8=8D?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E5=90=8E=E5=8F=B0=E7=B1=BB=E4=BC=BC=E5=85=B3?= =?UTF-8?q?=E9=94=AE=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- litemall-wx/pages/search/search.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/litemall-wx/pages/search/search.js b/litemall-wx/pages/search/search.js index d01cdfc1..86154e4f 100644 --- a/litemall-wx/pages/search/search.js +++ b/litemall-wx/pages/search/search.js @@ -49,12 +49,14 @@ Page({ }, inputChange: function (e) { - this.setData({ keyword: e.detail.value, searchStatus: false }); - this.getHelpKeyword(); + + if (e.detail.value) { + this.getHelpKeyword(); + } }, getHelpKeyword: function () { let that = this;