<!--pages/updateWord/updateWord.wxml-->
<van-cell-group>
  <van-field label="旧密码" value="{{ password[0] }}" data-index="0" placeholder="请输入旧密码" type="{{type[0]}}" right-icon="{{rightIcon[0]}}" bind:click-icon="onClickIcon" clearable bind:change="onChange" wx:if="{{role == 1}}" />
  <van-field label="新密码" value="{{ password[1] }}" data-index="1" placeholder="请输入新密码" type="{{type[1]}}" bind:click-icon="onClickIcon" right-icon="{{rightIcon[1]}}" clearable bind:change="onChange" />
  <van-field label="确认" value="{{ password[2] }}" data-index="2" placeholder="请确认新密码" type="{{type[2]}}" bind:click-icon="onClickIcon" right-icon="{{rightIcon[2]}}" clearable bind:change="onChange" />
</van-cell-group>
  <view class="bottombutton">
    <van-button type="primary" block bind:click="modifyPassword">修改</van-button>
  </view>
