Fix:删掉输入框内容后,输入框应该直接是空白的,不要显示浮动关键词
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user