//当ios系统上面输入数字,下面type=password,会唤起密码输入数字键盘,引起键盘闪烁问题
<van-form> <van-field v-model="form.phone" name="手机号" maxlength="11" type="number" clearable placeholder="请输入手机号" > </van-field>
//插入一个空的输入框,防止记住密码键盘的弹出, <van-field v-model="form.code" name="验证码" clearable maxlength="6" placeholder="请输入验证码" > <template #button> <span @click="getCode" :style="{ color: countdown ? ‘#000‘ : ‘#ADB4BE‘ }" >{{ countdown ? "获取验证码" : `${count}s后重新发送` }}</span > <van-icon @click="iseye = !iseye" size="20" /> </template> </van-field> <div style="margin:48px 0px 0px 0px"> <van-button :disabled="disabled" color="#ED2626" round block @click="submit" > 提交 </van-button> </div> </van-form>