<mobile-main frameStyle="{{frameStyle}}" bind:back="back">
  <view slot="info" class="main" style="height:{{infoHeight}}px;">
    <view class="one">
      <van-tabs active="{{ active }}">
        <van-tab title="全部团队">
          <view>
            <view class="list" wx:key="item" wx:for="{{teamlist}}" data-id="{{item._id}}" bindtap='shens'>
              <view class="two">
                <view class="left">
                  <image class="head" src="{{item.logo[0].url}}"></image>
                  <text class="group" bindtap="tiao">{{item.name}}</text>
                  <text class="person">共{{item.members.length||0}}人</text>
                  <view class="fou"><text>创建人：{{item.create_user}}</text></view>
                  <view class="time"><text class="date">{{item.create_time}}创建</text></view>
                </view>
              </view>
            </view>
          </view>
        </van-tab>
        <van-tab title="参赛团队">
          <view>
            <view class="list" wx:key="item" wx:for="{{compete}}">
              <view class="two">
                <view class="left">
                  <image class="head" src="{{item.logo[0].url}}"></image>
                  <text class="group" data-id="{{item._id}}" data-name="{{item._id}}" data-route="compete" bindtap='shen'>{{item.team_name}}</text>
                  <text class="person">共{{item.match_num}}人</text>
                  <view class="fou"><text>创建人：{{item.create_user}}</text></view>
                  <view class="time"><text class="date">{{item.create_time}}创建</text></view>
                </view>
                <view class="right">
                  <button class="button" wx:if="{{item.status=='0'}}" data-id="{{item._id}}" bindtap='cantong'>通过</button>
                </view>
              </view>
            </view>
          </view>
        </van-tab>
        <van-tab title="解散团队">
          <view>
            <view class="list" wx:key="item" wx:for="{{dissolution}}">
              <view class="two">
                <view class="left">
                  <text class="group" data-id="{{item._id}}" data-name="{{item.team_id}}" bindtap='shen' data-route="detail" >{{item.team_name}}</text>
                  <view class="fou"><text>创建人：{{item.create_user}}</text></view>
                  <view class="time"><text class="date">申请时间：{{item.apply_time}}</text></view>
                  <view class="time"><text class="date">解散团队原因：{{item.resaon}}</text></view>
                </view>
                <view class="right" >
                  <button class="buttons" wx:if="{{item.status=='0'}}"data-id="{{item._id}}" data-teamid="{{item.team_id}}" bindtap='out'>通过</button>
                </view>
              </view>
            </view>
          </view>
        </van-tab>
      </van-tabs>
    </view>
  </view>
</mobile-main>