<view class="container">
  <view class="userinfo">
    <navigator class target url="../changeAvatar/index" hover-class="hcb" open-type="navigate">
      <view class="useravatar" style="height:unset;padding:20px 0px">
        <view class="fw500">头像</view>
        <view>
          <!-- <view>
            <image class src='{{userInfo.imgSrc}}' mode='aspectFit|aspectFill|widthFix' lazy-load='false' binderror bindload style='border-radius:999px'></image>
          </view>-->
          <block wx:if="{{userInfo.imgSrc != '' && userInfo.imgSrc != null && userInfo.imgSrc != 'null'}}">
            <image src="{{userInfo.imgSrc}}" style="border-radius:999px" class="show-image" mode="aspectFill"></image>
          </block>
          <block wx:else>
            <image style="border-radius:999px" src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/defaultAva.svg" class="show-image" mode="aspectFill"></image>
          </block>
          <view class="iconfont icon-gengduo11"></view>
        </view>
      </view>
    </navigator>

    <navigator class target url="../userName/index" hover-class="hcb" open-type="navigate">
      <view class="userName">
        <view class="fw500">用户名</view>
        <view>
          <view>{{userInfo.userName}}</view>
          <view class="iconfont icon-gengduo11"></view>
        </view>
      </view>
    </navigator>

    <navigator class target url="../changeGender/index" hover-class="hcb" open-type="navigate">
      <view class="gender">
        <view class="fw500">性别</view>
        <view>
          <view wx:if="{{userInfo.user.sex==1}}">男</view>
          <view wx:if="{{userInfo.user.sex==2}}">女</view>
          <view wx:if="{{userInfo.user.sex==0}}">未知</view>
          <view class="iconfont icon-gengduo11"></view>
        </view>
      </view>
    </navigator>

    <navigator class target url="../userTel/index?tel={{userInfo.tel}}" hover-class="hcb" open-type="navigate">
      <view class="phone" style="border-bottom: 0;">
        <view class="fw500">手机号</view>
        <view>
          <view class="c9">{{userInfo.tel || '暂无'}}</view>
          <view class="iconfont icon-gengduo11"></view>
        </view>
      </view>
    </navigator>
  </view>
  <!-- <navigator class='bgf br8' url='/pages/wxNickname/index?nickName={{userInfo.nickName}}' hover-class='hcb' open-type='navigate'>
    <view class='wxnickname mt_10 br_8'>
      <view class="fw500">绑定微信</view>
      <view>
        <view class='c9'>{{userInfo.nickName}}</view>
        <view class='iconfont icon-gengduo11'></view>
      </view>
    </view>
  </navigator>-->
  <view class hover-class="none" hover-stop-propagation="false">
    <navigator class="bgf br8" url="/pages/realName1/index" hover-class="hcb" open-type="navigate" wx:if="{{userInfo.user.idauth == 0}}">
      <view class="realname mt_10 br_8">
        <view class="fw500">实名认证</view>
        <view>
          <view class="c9">去认证</view>
          <view class="iconfont icon-gengduo11"></view>
        </view>
      </view>
    </navigator>
    <navigator class="bgf br8" url="/pages/trueName/index?realName={{userInfo.user.realName}}" open-type="navigate" wx:else>
      <view class="realname mt_10 br_8 bgf" hover-class="hcb">
        <view class="fw500">
          实名认证
          <view class="iconfont icon-yirenzheng ysd-base-color fw400 f18 ml4" style="line-height:1"></view>
        </view>
        <view>
          <view class="display-flex c9" style="align-items:center">{{userInfo.user.realName}}</view>
          <view class="iconfont icon-gengduo11 c9"></view>
        </view>
      </view>
    </navigator>
  </view>
  <!-- 切换团队 -->
   <!-- && configInfo.team -->
  <view class="br_8" catchtap="showToggle" hover-class="none" style="background-color:#fff" hover-stop-propagation="false" wx:if="{{ userInfo.agencyStatus == 1 && false }}">
    <view class="setting mt_10 fsa " style="height:56px" hover-class="thover">
      <view style>
        <!-- <view class="t-icon t-icon-qiehuantuandui mr6" style="width:24px;height:24px"></view> -->
        <view class="f16 c3 fw500" style="line-height:16px">当前团队</view>
      </view>
      <view style="flex: 1;" class="g_flex_column_center">
        <view class="g_flex_row_end" style="width: 100%;position: relative;">
          <view class="g_flex_column_center g_flex_1">
            <view class="g_flex_1 g_ell_1 c6" style="text-align: right;">{{userInfo.agencyName || '-'}}</view>
          </view>
          <view class="g_flex_column_center g_flex_none">
            <view class="iconfont icon-gengduo11 c9 ml4 mt2"></view>
          </view>
        </view>
      </view>
    </view>
  </view>
  <bottom-drawer show="{{drawerShow}}" touchClose="{{false}}" hideTabbar="{{true}}" drawerType="drawerShow" height="60vh">
    <view slot="title" class="tac fw500 f18 bb1" style="line-height:56px" hover-class="none" hover-stop-propagation="false">切换团队</view>
    <scroll-view class="pb32" scroll-y="true" hover-class="none" hover-stop-propagation="{{false}}" style="height:calc(100% - 82px)">
      <!-- <radio-group class="radio-group mb32" bindchange="radioChange"  hover-class="none"> -->
      <view class="weui-check__label fsa p16 bb1" hover-class="thover" hover-stop-propagation="true" wx:for="{{teamList}}" wx:key="name" wx:for-index="index" bindtap="toogleTeam" data-item="{{item}}">
        <view class="weui-cell__bd">
          <view class="f17">{{item.agencyName}}</view>
        </view>
        <view class style="color:#1890ff" hover-class="none" hover-stop-propagation="false">{{item.checked ? '当前':''}}</view>
      </view>
      <!-- </radio-group> -->
    </scroll-view>
  </bottom-drawer>
</view>
