|
@@ -83,12 +83,15 @@
|
|
|
},
|
|
|
methods: {
|
|
|
onFocus () {
|
|
|
+ console.log('focus')
|
|
|
this.associate.show = true
|
|
|
},
|
|
|
onBlur () {
|
|
|
+ console.log('blur')
|
|
|
this.associate.show = this.associate.focus
|
|
|
},
|
|
|
onSelectChange (count) {
|
|
|
+ console.log('selectchange')
|
|
|
let keywords = this.similarKeywords.data
|
|
|
if (keywords && keywords.length) {
|
|
|
let index = this.associate.activeIndex
|
|
@@ -106,6 +109,7 @@
|
|
|
}
|
|
|
},
|
|
|
onChange () {
|
|
|
+ console.log('change')
|
|
|
this.associate.activeIndex = null
|
|
|
if (!this.keyword) {
|
|
|
this.associate.show = false
|
|
@@ -119,10 +123,12 @@
|
|
|
}
|
|
|
},
|
|
|
searchKeywords () {
|
|
|
+ console.log('searchkeywords')
|
|
|
this.associate.show = true
|
|
|
this.$store.dispatch('searchKeywords', { keyword: this.keyword })
|
|
|
},
|
|
|
onSearch () {
|
|
|
+ console.log('search')
|
|
|
if (this.keyword) {
|
|
|
this.associate.show = false
|
|
|
this.$store.dispatch('resetSearchKeywords')
|
|
@@ -130,6 +136,7 @@
|
|
|
}
|
|
|
},
|
|
|
onAssociateClick (word) {
|
|
|
+ console.log('assclick')
|
|
|
this.click_flag = true
|
|
|
this.keyword = word
|
|
|
this.onSearch()
|