收藏
回答

点击一个input,再点击另一个input框,后面点击的input框焦点上移

框架类型 问题类型 终端类型 微信版本 基础库版本
小程序 Bug 微信iOS客户端 7.0.5 2.8.0

<!--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>



最后一次编辑于  2019-08-22
回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容
问题标签