<!--index.wxml-->
<view class="MainPage">
  <view class="list">
    <view class="flex-h" style="padding: 16rpx 50rpx;">
      <text>头像</text>
      <view class="flex-item"></view>
      <view class="userIcon">
        <image mode="aspectFill" src="{{UserInfo.avatar}}" class="centerLabel cover"></image>
      </view>
    </view>
    <view class="flex-h">
      <text>昵称</text>
      <view class="flex-item">
        <input value="{{UserInfo.name}}" data-name="name" bindinput="FormInput"></input>
      </view>
    </view>
  </view>
  <view class="list">
    <view class="flex-h">
      <text>绑定手机号</text>
      <view class="flex-item">
        <input type="number" value="{{UserInfo.phone}}" data-name="phone" bindinput="FormInput"></input>
      </view>
    </view>
    <view class="flex-h">
      <text>证件号码</text>
      <view class="flex-item">
        <input type="idcard" value="{{UserInfo.idNum}}" data-name="idNum" bindinput="FormInput"></input>
      </view>
    </view>
  </view>
  <view class="btn active" bindtap="SaveUserInfo">
    <text>保存</text>
  </view>
</view>