<view class="top-tab">
  <view class="tab-box {{type==1?'active':''}}" data-type="1" bindtap="changeTab">
    <image src="../../images/selected-l.png" class="selected-l"></image>
    未参加
    <image src="../../images/selected-r.png" class="selected-r"></image>
  </view>
  <view class="tab-box {{type==2?'active':''}}" data-type="2" bindtap="changeTab">
    <image src="../../images/selected-l.png" class="selected-l"></image>
    已参加
    <image src="../../images/selected-r.png" class="selected-r"></image>
  </view>
</view>
<view class="team">
  <view class="team-box" wx:for="{{otherTeamMap}}" data-id="{{item.teamId}}">
    <view class="name-join">
      <view class="name">{{item.teamName}}</view>
      <view class="join" wx:if="{{item.checkStatus == '' && type == 1}}" data-teamid="{{item.teamId}}" bindtap="joinOrOutTeam">申请加入</view>
      <view class="join" wx:if="{{item.checkStatus == '' && type == 2}}" data-teamid="{{item.teamId}}" bindtap="joinOrOutTeam">退出</view>
      <view class="join" wx:if="{{item.checkStatus != '' && item.checkStatus == '0'}}">待审核</view>
      <view class="join" wx:if="{{item.checkStatus != '' && item.checkStatus == '1'}}" bindtap="joinOrOutTeam">退出</view>
      <view class="join" wx:if="{{item.checkStatus != '' && item.checkStatus == '2'}}">审核驳回</view>
      <view class="join" wx:if="{{item.checkStatus != '' && item.checkStatus == '3'}}">已退出 </view>
    </view>
    <view class="slogan">团队口号：{{item.teamWatchword}}</view>
    <view class="area">所属区域：{{item.teamCityDictionaryName}} {{item.teamCountyDictionaryName}} {{item.teamAreaDictionaryName}}</view>
  </view>
</view>
<view class="new-team">
  <view class="new-team-btn" bindtap="newTeam">创建新团队</view>
</view>