点击一个input,再点击另一个input框,后面点击的input框焦点上移
<!--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> [图片]