<!--packageC/micro_communities/microFanlist/microFanlist.wxml-->
<view class="microFanlist">
  <van-tabs wx:if="{{isShowTab}}" active="{{active}}" bind:change="handleClick">
    <van-tab title="关注">
      <view class="ul">
        <view class="li" wx:for="{{attentionList}}" wx:key="index" wx:for-index="index">
          <view  class="left-box" catchtap="toMember" data-uid="{{item.has_one_follow_user.uid}}">
            <image  src='{{item.has_one_follow_user.avatar}}'  />
            <text class="title">{{item.has_one_follow_user.nickname}}</text>
          </view>
          <view class="right-box" catchtap="cancelLook" data-uid="{{item.has_one_follow_user.uid}}" data-index="{{index}}">
            <text class="btn" style="background-color: #999999;">已关注</text>
          </view>
        </view>
      </view>
    </van-tab>
    <van-tab title="粉丝">
      <view class="ul">
        <view class="li"  wx:for="{{fanList}}" wx:key="index" wx:for-index="index">
          <view  class="left-box" catchtap="toMember" data-uid="{{item.has_one_fans.uid}}">
            <image  src='{{item.has_one_fans.avatar}}'  />
            <text class="title">{{item.has_one_fans.nickname}}</text>
          </view>
          <view class="right-box">
            <text class="btn" catchtap="lookUser" data-uid="{{item.has_one_fans.uid}}">关注</text>
            <view style="padding: 30rpx 0;display: inline-block" catchtap="showDelete">
              <image data-uid="{{item.has_one_fans.uid}}" data-index="{{index}}" src='https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/micro_communities/more_gray.png' mode='widthFix' />
            </view>
          </view>
        </view>
      </view>
    </van-tab>
  </van-tabs>

  <van-popup show="{{isdelete}}" position="center" bind:click-overlay="isCoverLayer" z-index='{{2000}}'>
    <view class="unsubID" bindtap="deleteFan">
      移除粉丝
    </view>
    <view class="unsubID" bindtap="isCoverLayer">
      取消
    </view>
  </van-popup>
</view>
