diff --git a/pages/resource/search.vue b/pages/resource/search.vue index b0a43b6..dd68f4a 100644 --- a/pages/resource/search.vue +++ b/pages/resource/search.vue @@ -49,12 +49,12 @@ 热门搜索 - + - + {{hw}} @@ -266,6 +266,7 @@ export default{ data(){ return{ + showHotSearch:true, noPageList:true, noDataList:true, hotSaveKey:'SearchWords', @@ -463,6 +464,12 @@ cleanHistory(){ this.clearShow=true; }, + + // 热门搜索显示控制 + hotSearch(){ + this.showHotSearch = !this.showHotSearch; + }, + confirmClear(){ this.historyWords=[]; uni.setStorageSync(this.hotSaveKey,JSON.stringify([]));