<!--pages/updatePass/index.wxml-->
<view class="container">
  <view class="height20"></view>
  <form bind:submit="handleSubmit">
    <input name="id" value='{{id}}' hidden='true' />
    <van-cell-group title="原密码">
      <van-field required password type="password" placeholder="请输入原密码" label="原密码" name="password" error-message="{{error.password}}" model:value="{{password}}" />
    </van-cell-group>
    <van-cell-group title="新密码">
      <van-field required password type="password" placeholder="请输入新密码" label="新密码" name="newPassword" error-message="{{error.newPassword}}" model:value="{{newPassword}}" />
      <van-field required password type="password" placeholder="请重复新密码" label="重复新密码" name="reNewPassword" error-message="{{error.reNewPassword}}" model:value="{{reNewPassword}}" />
    </van-cell-group>
    <view class="fixedBtn submitBtn">
      <van-button loading="{{isSubmitting}}" round block disabled="{{isSubmitting}}" loading-text="{{isSubmitting?'提交中...':''}}" type="info" form-type="submit">确定
      </van-button>
    </view>
  </form>
</view>