|
@@ -71,7 +71,8 @@
|
|
<!-- 输入手机号后弹出 -->
|
|
<!-- 输入手机号后弹出 -->
|
|
<van-popup v-model="phoneShow" class="popupStyle">
|
|
<van-popup v-model="phoneShow" class="popupStyle">
|
|
<div class="popupStyle-top">
|
|
<div class="popupStyle-top">
|
|
- <van-search style="width: 100%;" @search="searchCrux" v-model="searchKey" placeholder="请输入搜索关键词" />
|
|
|
|
|
|
+ <van-search style="width: 100%;" ref="isSearchFocus" @search="searchCrux" v-model="searchKey"
|
|
|
|
+ placeholder="请输入搜索关键词" />
|
|
<van-icon class="popupStyle-top-icon" @click="searchCrux" name="search" color="#1989fa" size="20" />
|
|
<van-icon class="popupStyle-top-icon" @click="searchCrux" name="search" color="#1989fa" size="20" />
|
|
</div>
|
|
</div>
|
|
<div style="height: calc(100vh - 105px); overflow-y: auto;">
|
|
<div style="height: calc(100vh - 105px); overflow-y: auto;">
|
|
@@ -195,6 +196,11 @@ export default {
|
|
// 手机号点击聚焦
|
|
// 手机号点击聚焦
|
|
onFocus() {
|
|
onFocus() {
|
|
this.phoneShow = true
|
|
this.phoneShow = true
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ if (this.$refs.isSearchFocus) {
|
|
|
|
+ this.$refs.isSearchFocus.querySelector('input').focus()
|
|
|
|
+ }
|
|
|
|
+ })
|
|
},
|
|
},
|
|
// 搜索关键
|
|
// 搜索关键
|
|
async searchCrux() {
|
|
async searchCrux() {
|