diff --git a/pages/shop/GoodSearch/index.vue b/pages/shop/GoodSearch/index.vue index 266b5a1..6a05bbb 100644 --- a/pages/shop/GoodSearch/index.vue +++ b/pages/shop/GoodSearch/index.vue @@ -155,8 +155,8 @@ export default { if(val) { this.showkey = false } else { - this.showkey = true - this.currentSearch = this.recommendKeyword[0] + // this.showkey = true + // this.currentSearch = this.recommendKeyword[0] } } }, @@ -176,6 +176,7 @@ export default { this.$yrouter.switchTab('/pages/cart') }, showHistory() { + this.currentSearch = this.recommendKeyword[0] if(this.showkey) return if(this.search) { this.showkey = false @@ -185,10 +186,10 @@ export default { }, hideHistory() { - if(!this.search) { - this.showkey = true - return - } + // if(!this.search) { + // this.showkey = true + // return + // } this.showkey = false }, change(e) {