点击一个input,再点击另一个input框,后面点击的input框焦点上移
发布于 7 年前 作者 jun16 1435 次浏览 来自 官方Issues

<!–index.wxml–>

<view class=“login-content”>

<header title=“重置密码”/>

<template is=“logoHead” data="{{iddclogoImgUrl}}" />

<!-- 密码修改表单 -->

<view class=“login-form”>

<form bindsubmit=“formSubmit” bindreset=“formReset”>

<view class=“section”>

<label>qq邮箱</label>

<input class=“section-input {{userRules.username?‘input-error’:’’}}” name=“username” data-obj=“user” data-item=“username” value="{{user.username}}" bindinput=“change” bindblur=“validateEmail” placeholder=“请输入qq邮箱” placeholder-class=“placeholderStyle”

/>

</view>

<view class=“login-error {{userRules.username?‘login-errored’:’’}}”>{{userRules.username}}</view>

<view class=“section”>

<label>原密码</label>

<input type=“password” class=“section-input {{userRules.oldPassword?‘input-error’:’’}}” name=“oldPassword” data-obj=“user” data-item=“oldPassword” value="{{user.oldPassword}}" bindinput=“change” bindblur=“validateOldPassWord” placeholder=“请输入原密码” placeholder-class=“placeholderStyle”

/>

</view>

<view class=“login-error {{userRules.oldPassword?‘login-errored’:’’}}”>{{userRules.oldPassword}}</view>

<view class=“section”>

<label>新密码</label>

<input type=“password” class=“section-input {{userRules.newPassword?‘input-error’:’’}}” name=“newPassword” data-obj=“user” data-item=“newPassword” value="{{user.newPassword}}" bindinput=“change” bindblur=“validateNewPassWord” placeholder=“请输入新密码” placeholder-class=“placeholderStyle”

/>

</view>

<view class=“login-error {{userRules.newPassword?‘login-errored’:’’}}”>{{userRules.newPassword}}</view>

<view class=“section”>

<label>确认密码</label>

<input type=“password” class=“section-input {{userRules.verifyPassword?‘input-error’:’’}}” name=“verifyPassword” data-obj=“user” data-item=“verifyPassword” value="{{user.verifyPassword}}" bindinput=“change” bindblur=“validateVerifyPassword” placeholder=“请确认新密码”

placeholder-class=“placeholderStyle” />

</view>

<view class=“login-error {{userRules.verifyPassword?‘login-errored’:’’}}”>{{userRules.verifyPassword}}</view>

<view class=“btn-area”>

<button form-type=“submit” class=“blue-btn”>提交</button>

</view>

</form>

</view>

</view>

1 回复

麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

回到顶部