<mobile-main frameStyle="{{frameStyle}}" bind:tabPath="tabPath">
  <view slot="info" class="main" style="height:{{infoHeight}}px;">
    <!-- 背景图片 -->
    <view class="one">
      <image src="{{src}}" class="images"></image>
    </view>
    <!-- 用户详情 -->
    <view class="two">
      <view class="list">
        <view class="left1">
          <view class="left1-1">
            <view class="name">{{item1.nickname}}</view>
            <button class="button" size="mini">{{item1.type=='0'?'管理员':item1.type=='1'?'团队创建人':'队员'}}</button>
          </view>
          <view class="left11-2">
            <text class="text1">{{item1.mechanism}}</text>
            <text class="text1">{{item1.gender}}</text>
          </view>
        </view>
        <view class="right1">
          <image src="{{icon}}" class="tou"></image>
        </view>
        <view class="otherInfo1 textOver">
          <view class="biao">
            <text class="icon iconfont icon-qi" wx:if="{{list[0].name}}"></text>
          </view>
          <view class="qian">
            <text class="text3" wx:if="{{item1.type=='1'||item1.type=='2'}}"> {{list[0].name}}</text>

          </view>
          <view class="icon_arrow" bindtap="modify">
            <van-icon name="arrow" color="rgb(177, 177, 177)" />
          </view>
        </view>
      </view>
    </view>
    <!-- 上传比分 -->
    <view class="four" wx:if="{{item1.type=='1'}}" wx:for="{{match}}" wx:key="item">
      <view class="thr" wx:if="{{item.status=='1'}}">
        <view class="left2">
          <text class="text4">可对正在进行的比赛上次比分</text>
        </view>
        <view class="right2" bindtap="upload" data-id="{{item._id}}">
          <button class="buttons" size="mini">上传比分</button>
        </view>
      </view>
      <image src="{{src3}}" class="huang"></image>
      <view class="list1">
        <view class="left3">
          <text class="text5">{{item.status=='1'?'进行中':item.status=='0'?'未开始':'已结束'}}</text>
        </view>
        <view class="right3">
          <text class="text6">{{item.match_time}}</text>
        </view>
        <view class="right4">
          <view class="right1_1">
            <text class="text4-1">{{item.match}}</text>
            <text class="text4-1">{{item.group}}</text>
          </view>
          <view class="right1_2">
            <view class="right1_2o">
              <image class="head1" src="{{item.blue_logo[0].url}}"></image>
            </view>
            <view class="right1_2t"><text>{{item.blue_name}}</text></view>
            <view class="right1_2i">
              <text class="text6-1">{{item.blue_branch||0}}</text>
              <text class="text8-1">:</text>
              <text class="text7-1">{{item.red_branch||0}}</text>
            </view>
            <view class="right1_2t"><text>{{item.red_name}}</text></view>
            <view class="right1_2o">
              <image class="head2" src="{{item.red_logo[0].url}}"></image>
            </view>
          </view>
        </view>
      </view>
    </view>
    <!-- 上传比分-无比赛 -->
    <view class="four-zan" wx:if="{{match.length==0 && item1.type=='1'}}">
      <view class="zan-left">
        <text>暂无比赛</text>
      </view>
      <view class="zan-right">
        <image src="{{src4}}" class="zan"></image>
      </view>
    </view>
    <!--团队列表 -->
    <view class="five">
      <view class="listtuan">
        <view class="onther">
          <text class="tuan">我的团队</text>
          <text class="total" wx:if="{{item1.type=='2' || item1.type=='1'}}">共参加{{list.length||0}}个队伍</text>
          <text class="chuang" bindtap="create" wx:if="{{list.length<1 && item1.type=='1'}}">创建团队</text>
        </view>
        <view class="weui-cells mgt-0 {{!showMore? 'hiddenmore' : 'showmore'}}">
          <view wx:key="item" wx:for="{{list}}" wx:for-index="idx" wx:key="key" class="list3 {{idx>1 ? 'more-item' : ''}}">
            <view class="dui-left">
              <view class="dui-left1">
                <image src="{{item.logo[0].url}}" class="dui-image"></image>
              </view>
              <view class="dui-right1 ">
                <text class="group" bindtap="ToDetails" data-id="{{item._id}}">{{item.name}}</text>
              </view>
              <button class="color{{item.type}}" size="mini">{{item.type=='0'?'乒乓球':item.type=='1'?'足球':'篮球'}}</button>
            </view>
            <view class="dui-right"><text class="person">
                共{{item.members.length||0}}人
              </text>
            </view>
            <text class="date">{{item.create_time}}创建</text>
          </view>
          <block wx:if="{{list.length>2}}">
            <view wx:if="{{showMore}}" class="van" bindtap='listToggle'>
              <van-icon name="arrow-up" />
            </view>
            <view wx:else class="van" bindtap='listToggle'>
              <van-icon name="arrow-down" />
            </view>
          </block>
        </view>
        <view class="jian" wx:if="{{item1.type=='0'}}">
          <view class="viewjian"><text class="jiantext">该账号无法加入或创建团队</text></view>
        </view>
      </view>
    </view>
    <!-- 我的服务-功能按钮 -->
    <view class="six">
      <view class="six-11"><text class="fui">我的服务</text></view>
      <view class="six-0" wx:for="{{jumpList}}" wx:key="item" bindtap="toCommon" data-route="{{item.route}}" data-method="{{item.method}}" data-id="{{list[0]._id}}" data-item="{{list[0]}}">
        <view class="six-left">
          <text class="icon iconfont {{item.icon}}"></text>
        </view>
        <view class="six-right">
          <text class="six-text">{{item.title}}</text>
        </view>
      </view>
    </view>
  </view>
</mobile-main>