|
@@ -2,7 +2,8 @@
|
|
|
<div>
|
|
|
<div class="container" v-if="isRemoval">
|
|
|
<div>
|
|
|
- <van-search class="search" v-model="keyWorld" @search="onSearch" placeholder="请输入快递单号" />
|
|
|
+ <van-search ref="isSearchFocus" class="search" v-model="keyWorld" @search="onSearch"
|
|
|
+ placeholder="请输入快递单号" />
|
|
|
<img @click="onImg" src="@/assets/user/u4.png" alt="">
|
|
|
</div>
|
|
|
<div class="middelBox" style="height: calc(100vh - 79px);overflow-y: auto;" v-if="show">
|
|
@@ -35,8 +36,12 @@ export default {
|
|
|
Batched
|
|
|
},
|
|
|
mounted() {
|
|
|
- console.log(localStorage.getItem('courierId'), '+=====================')
|
|
|
-
|
|
|
+ this.$nextTick(() => {
|
|
|
+ if (this.$refs.isSearchFocus) {
|
|
|
+ const inputEle = this.$refs.isSearchFocus.querySelector("input")
|
|
|
+ inputEle.focus()
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
data() {
|
|
|
return {
|