<!--packageB/mycomponent/groupListPopup/groupListPopup.wxml-->
<swiper style="height:64rpx;" autoplay="{{true}}" vertical="{{true}}" interval="2000">
  <swiper-item wx:for="{{item}}" wx:key="index" wx:for-item="datas">
    <view class="allteam" data-item="{{datas}}">
      <view class="allLeft" catchtap="getAllTeam">
        <view class="teamNo" wx:if="{{datas.has_one_leader}}">{{ datas.has_one_leader.username }}</view>
        <text class="teamTwo" wx:if="{{datas.has_one_level}}">已开团，差{{ datas.has_one_level.member_num - datas.has_many_success_member_count}}人</text>
      </view>
      <view class="allRight">
        <van-icon name="arrow"></van-icon>
      </view>
    </view>
  </swiper-item>
</swiper>


<van-popup show="{{show}}" position="center" custom-class="border-radius: 16rpx;height:212rpx;" round width="88%"
  bind:click-overlay="tapOverlay">
  <view class="open_group" style="width:660rpx;border-radius: 16rpx;">
    <view class="p" style="text-align:center;">以下小伙伴拼团中，可直接参与</view>
    <view class="icon_close" catchtap="tapOverlay">
      <!-- <icon class="iconfont icon-close11"></icon> -->
      <van-icon name="cross" size="20px"></van-icon>
    </view>
    <view style="max-height:600rpx;overflow-y:scroll;">
      <view class="into_user" wx:for="{{teamInfo}}" wx:key="index">
        <view class="user">
          <image src="{{item.has_one_leader.avatar_image}}" />
        </view>
        <view class="time ul">
          <view class="time_a li">
            {{item.has_one_leader.username}} 开{{item.has_one_level.member_num}}人团
          </view>
          <view class="time_b li">
            <view class="span" style="display:flex;flex-wrap: wrap;">
              剩余
              <count now-time="{{item.nowTime}}" over-time="{{item.overTime}}" style="text-align:center;" />
              结束，仅差{{item.has_one_level.member_num-item.has_many_success_member_count}}人
            </view>
          </view>
        </view>
        <button wx:if="{{uid != item.leader_id}}" type="button" data-item='0' data-id="{{item.id}}" catchtap="clickAdd"
          style="display:flex;align-items:center;justify-content: center;padding-left:0;padding-right:0;">
          加入该团
        </button>
        <button open-type="share" catchtap="clickAdd" wx:else data-item='1' data-title='{{item.has_one_group.desc_title}}' data-tag="shareTag" data-info="{{item}}" data-store="{{storeId}}"
          style="display:flex;align-items:center;justify-content: center;padding-left:0;padding-right:0;">邀请好友</button>
      </view>
      <view class="moreTeam" style="line-height:2.5rem;text-align:center;" bindtap="getMoreTeamList"
        wx:if="{{teamInfo.total>teamInfo.listData.length}}">
        加载更多
      </view>
    </view>
  </view>
</van-popup>