<view class="teamClient">
    <view class="content">

      <view class="nav">
        <view class="nav_box">
          <view class="nav_item ul">
            <view  catchtap="changeTab" class="{{selected === index ? 'tab-item tab li' : 'tab-item li'}}"
                wx:for="{{tabs}}" data-item="{{item}}" wx:key="index"  data-index="{{index}}">
              {{item.level_name}}({{item.count}})
            </view>
          </view>
        </view>

        <view class="list_box">
          <view class="box" wx:for="{{bossList}}" wx:key="index">
            <view wx:if="{{item.has_one_member}}" class="client" data-item="{{item}}" catchtap="showDetail">
              <view class="img">
                <image src="{{item.has_one_member.avatar}}" mode="aspectFill" />
              </view>
              <view class="name ul">
                <view class="li"><text class="star span"
                          wx:if="{{item.directly === '1'}}">*</text><text class="span">客户名称：{{item.has_one_member.nickname}}</text></view>
              </view>
                <van-icon name="arrow" class="{{item.show&&item.has_one_member.uid === uid ?'show_detail':''}}"></van-icon>
            </view>
            <!-- <transition name="fade"> -->
              <view class="drop-down ul" wx:if="{{item.show&&item.has_one_member.uid === uid}}">
                <view class="li">
                  <text class="span">下级经销商人数：{{detail.child_count}}人</text>
                  <text class="span">自购订单金额：{{detail.self_buy_price}}</text>
                </view>
              </view>
            <!-- </transition> -->
          </view>

        </view>
      </view>
    </view>
  </view>
	<shopfoot></shopfoot>