<!--pages/password/index.wxml-->
<view class="sg-container">
  <view class="sg-white-bg">
    <view class="sg-flex sg-align-center sg-space-between sg-pad sg-bottom-border">
      <view>旧密码</view>
      <input class="sg-input sg-text-right" value="{{old}}" bindinput="updateInput" data-name="old" placeholder="请输入旧密码" password="{{true}}"></input>
    </view>
    <view class="sg-flex sg-align-center sg-space-between sg-pad sg-bottom-border">
      <view>新密码</view>
      <input class="sg-input sg-text-right" value="{{new}}" bindinput="updateInput" data-name="new" placeholder="请输入新密码" password="{{true}}"></input>
    </view>
    <view class="sg-flex sg-align-center sg-space-between sg-pad sg-bottom-border">
      <view>重复新密码</view>
      <input class="sg-input sg-text-right" value="{{new_confirm}}" bindinput="updateInput" data-name="new_confirm" placeholder="请重复新密码" password="{{true}}"></input>
    </view>
  </view>
  <view class="sg-pad sg-gray-color sg-font-small">密码长度6~32位，须包含数字、字母</view>
  <view class="sg-fix-bottom sg-pad sg-text-center sg-white-bg" bindtap="save">保存</view>
</view>
