@touchend.prevent="checklogin(1)" //切换 密码或者忘记密码
focusState: false
<u-input
v-model="form1.phone"
prefixIcon="../../static/home/phoneimg.png"
prefixIconStyle="width:33upx;height:52upx; margin-right:33upx"
placeholder="请输入电话号码"
type="number"
maxlength='11'
clearable
@focus='focus'
:focus="focusState"
@blur="focusState = false"
@clear='clearinput'
ref='phoneInput'
/>
focus(){
this.focusState = true // 默认获取焦点
},
clearinput(){
this.$nextTick(() => {
this.focusState = true
})
},