<!-- wxml -->
<view class="warp">
<form bindsubmit="formSubmit" bindreset="formReset">
<view class="ipt-wrap border-b flex ai-center">
<label class="font16">重置密码:</label>
<input type="password" class="ml40 flex1 font16" name="passWord" bindinput="getNameValue"></input>
</view>
<view class="btn-area">
<button formType="reset">取消</button>
<button type="primary" formType="submit">提交</button>
</view>
</form>
</view>
//js
Page({
/**
* 页面的初始数据
*/
data: {
passWord: ''
},
formSubmit: function (e) {
var newpwd=e.detail.value.passWord;
var pwdlength=e.detail.value.passWord.length;
console