<!-- packageD/member/myRelationship/amount/amount.wxml -->
<view id="amount">
  <scroll-view class="level-tabbar" scroll-x="true" show-scrollbar="false" enhanced="true" scroll-into-view="{{ showLevelElId }}" scroll-with-animation="true">
    <view id="levelEl" class="level-tabbar-item {{ showLevelId===''?'level-tabbar-item-active':'' }}" bind:tap="switchLevelTab" data-id="">
      <view>全部</view>
      {{ totalMemberCount }}
    </view>
    <view id="{{ 'levelEl'+levelItem.id }}" class="level-tabbar-item {{ showLevelId===levelItem.id?'level-tabbar-item-active':'' }}" wx:for="{{ levels }}" wx:for-item="levelItem" wx:for-index="id" wx:key="id" bind:tap="switchLevelTab" data-id="{{ levelItem.id }}">
      <view>{{ levelItem.level_name }}</view>
      {{ levelItem.yz_member_count }}
    </view>
  </scroll-view>
  <view class="client-list">
    <navigator class="client-item" wx:for="{{ memberOfLevel[showLevelName] }}" wx:for-item="memberItem" wx:key="member_id" url="{{ '/packageD/member/myRelationship/detail/detail?member_id='+memberItem.member_id }}">
      <image class="client-avatar" src="{{ memberItem.member.avatar_image }}"></image>
      <view class="client-info">
        <view>
          <view class="client-nickname">{{ memberItem.member.nickname }}</view>
          <view class="client-level">
            {{ memberItem.level?memberItem.level.level_name:defaultLevelName }}
          </view>
        </view>
        <view class="client-details">
          <view>手机号：{{ memberItem.member.mobile }}</view>
          <view>注册时间：{{ memberItem.created_at }}</view>
        </view>
      </view>
    </navigator>
  </view>
</view>