diff --git a/pages/goods/search/search.js b/pages/goods/search/search.js index f7812e8..364086a 100644 --- a/pages/goods/search/search.js +++ b/pages/goods/search/search.js @@ -324,7 +324,12 @@ Page({ resetData: function() { - e.resetConfig(), this.data.requestData = null, this.data.currentPage = 1; + e.resetConfig(), + // this.data.requestData = null, + this.data.currentPage = 1; + this.setData({ + requestData: null, + }); }, //---回复最初的设置---显示全部分类-- @@ -358,6 +363,12 @@ Page({ //热搜关键字 searchHotWord: function(t) { var word = t.currentTarget.dataset.word; + if(word) { + this.setData({ + keyword: word, + hiddenClear: false, + }); + }; this.historyRecord(word); this.search(word); },