<!--packageD/MyFriendApply/myfriends.wxml-->
<view id="content">
  <view class="nav">
    <view class="nav_box">
      <view  class="nav_item ul">
        <view catchtap="changeTab" class="{{selected === item.id ? 'tab-item tab' : 'tab-item'}} li" wx:for="{{tabs}}" wx:key='i' data-tab="{{item.id}}">
          {{ item.level_name }}
          <text style="color:#000000">({{ item.count }})</text>
          <text style="color:#f15353">({{ item.count_order }})</text>
        </view>
      </view>
    </view>

    <view class="list_box">
      <view class="box" wx:key="i" wx:for="{{bossList}}">
        <view wx:if="item.has_one_member" class="client">
          <view class="img">
            <image src="{{item.has_one_member.avatar_image}}" />
          </view>
          <view class="ul name">
            <view class="li">
              <view class="h2">
                {{ item.has_one_member.nickname }}：({{ item.level_name }})
              </view>
              <view class="span">会员ID:{{ item.has_one_member.uid }}</view>
              <view class="span" class="rightTime">{{ item.created_at }}</view>
            </view>
            <view class="li btnList">
              <view class=" {{item.member_count > 0?'activeClass':'' }} span">直推：{{ item.member_count }}</view>
              <view class="{{item.member_child_count > 0?'activeClass':''}} span">团队：{{ item.member_child_count }}</view>
              <view class="{{item.order_count > 0?'activeClass':''}}  span">业绩：{{ item.order_count }}</view>
            </view>
          </view>
        </view>
      </view>
      <view class="h2" wx:if="{{showNoText}}">没有搜索到相关数据</view>
    </view>
  </view>
</view>