<!--pages/userInfo/userInfo.wxml-->
<view class="container safe-area-bottom">
  <view class="header" bindtap="changeAvatar">
    <image src="{{userInfo.avatar||'/images/icon/avatar.png'}}" class="avatar"></image>
    <view class="header-text">
      <text>修改头像</text>
      <image src="/images/icon/right.png" class="arrow"></image>
    </view>
  </view>

  <view class="cell-grounp">
    <view class="cell">
      <view class="left">
        <text>姓名</text>
      </view>
      <view class="right">
        <text>{{userInfo.name || '暂无信息'}}</text>
      </view>
    </view>
    <!-- <view class="cell">
      <view class="left">
        <text>性别</text>
      </view>
      <view class="right">
        <text>{{userInfo.gender===1?'男':userInfo.gender===2?'女':'未知'}}</text>
      </view>
    </view> -->
    <view class="cell">
      <view class="left">
        <text>手机号码</text>
      </view>
      <view class="right">
        <text>{{userInfo.phone || '暂无信息'}}</text>
      </view>
    </view>
    <view class="cell">
      <view class="left">
        <text>身份证号</text>
      </view>
      <view class="right">
        <text>{{userInfo.idcardNumber || '暂无信息'}}</text>
      </view>
    </view>
    <!-- <view class="cell">
      <view class="left">
        <text>银行卡号</text>
      </view>
      <view class="right">
        <text>{{userInfo.hwBankAccount.cardNumber || '暂无信息'}}</text>
      </view>
    </view> -->
  </view>

  <!-- <view class="hint">
    认证用户只允许修改头像
  </view> -->
</view>