<mobile-main frameStyle="{{frameStyle}}" bind:tabPath="tabPath">
  <view slot="info" class="main">
    <view wx:if="{{teamlist.length==0}}">
      <view class="two1">
        <van-search v-model="value" placeholder="搜索团队名称" />
      </view>
      <view class="thr1">
        <image src="{{src}}" class="images1"></image>
      </view>
      <view class="four1">
        <text class="th1">暂未任何团队发布</text>
      </view>
    </view>
    <view wx:if="{{teamlist.length!=0}}">
    <view class="one"></view>
    <view class="list" wx:key="item" wx:for="{{teamlist}}">
      <view class="two">
        <view class="left">
          <image class="head" src="{{item.logo[0].url}}"></image>
          <text class="group">{{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 class="right">
          <button class="button" wx:if="{{type== 2}}" bindtap="jump" data-id="{{item._id}}" >加入</button>
          <button class="button"  wx:if="{{type!= 2}}" bindtap="tiao" data-id="{{item._id}}">查看</button>
        </view>
      </view>
    </view>
    </view>
  </view>
</mobile-main>