|
|
@@ -83,7 +83,10 @@
|
|
|
|
|
|
// #ifdef H5
|
|
|
this.$nextTick(function() {
|
|
|
- this.$refs.aaaaa.$refs.searchInput._focusInput()
|
|
|
+ setTimeout(() => {
|
|
|
+ console.log('this.$refs.aaaaa.$refs.searchInput', this.$refs.aaaaa.$refs.searchInput)
|
|
|
+ this.$refs.aaaaa.$refs.searchInput._focusInput()
|
|
|
+ }, 1000)
|
|
|
})
|
|
|
// #endif
|
|
|
|
|
|
@@ -94,6 +97,9 @@
|
|
|
},
|
|
|
methods: {
|
|
|
getAreaList() {
|
|
|
+ if (!this.keyword) {
|
|
|
+ return false
|
|
|
+ }
|
|
|
suggestion({ region: this.city, keyword: this.keyword }).then(res => {
|
|
|
this.nearListData = res.data.data
|
|
|
})
|