<mobile-main frameStyle="{{frameStyle}}" bind:back="back">
    <view slot="info" class="container main">
        <view class="zero one">
            <view class="one_1">
                <button type="primary" bindtap="toCommon" data-route="orderbook/teamAdd">添加组项</button>
            </view>
            <view class="one_2">
                <button type="primary" bindtap="toCommon" data-route="orderbook/teamautoAdd">自动编排组项</button>
            </view>
            <view class="one_3">
                <button type="primary" bindtap="toCommon" data-route="orderbook/raceAdd">添加赛程</button>
            </view>
            <view class="one_4">
                <button type="primary" bindtap="toCommon" data-route="orderbook/raceautoAdd">自动编排赛程</button>
            </view>
        </view>
        <view class="zero two">
            <view class="two_1">
                <e-tabs tabs="{{tabs}}" bind:tabsChange="tabsChange"></e-tabs>
            </view>
            <view class="two_2">
                <view wx:if="{{tabs.active=='a'}}" class="a">
                    <scroll-view scroll-y="true" class="scroll-view">
                        <view class="list-scroll-view">
                            <view class="teamList" wx:for="{{teamList}}" wx:key="item">
                                <view class="name">{{item.name}}</view>
                                <view class="other">
                                    <view class="other_1"><text>赛事名称：</text><text>{{item.match_name||'暂无'}}</text></view>
                                    <view class="other_1"><text>赛事组别：</text><text>{{item.grouping_name||'暂无'}}</text></view>
                                    <view class="other_1"><text>组内项目：</text><text>{{item.project_name||'暂无'}}</text></view>
                                </view>
                                <view class="btn">
                                    <button type="primary" size="mini" bindtap="toEdit" data-item="{{item}}">信息维护</button>
                                    <button type="warn" size="mini" bindtap="toDel" data-item="{{item}}">信息删除</button>
                                </view>
                            </view>
                        </view>
                    </scroll-view>
                </view>
                <view wx:elif="{{tabs.active=='b'}}" class="a b">
                    <scroll-view scroll-y="true" class="scroll-view">
                        <view class="list-scroll-view">
                            <view class="teamList" wx:for="{{raceList}}" wx:key="item">
                                <view class="name">{{item.player_one_name}}<text>pk</text>{{item.player_two_name}}</view>
                                <view class="other">
                                    <view class="other_1"><text>赛事名称：</text><text>{{item.match_name||'暂无'}}</text></view>
                                    <view class="other_1"><text>比赛场地：</text><text>{{item.ground_name||'暂无'}}</text></view>
                                    <view class="other_1"><text>比赛时间：</text><text>{{item.match_time||'暂无'}}</text></view>
                                    <view class="other_1"><text>比赛状态：</text><text>{{item.status=='0'?'已安排':item.status=='1'?'待开赛':item.status=='2'?'已开赛':item.status=='3'?'已结束':'暂无'}}</text></view>
                                </view>
                                <view class="btn">
                                    <button type="primary" size="mini" bindtap="raceEdit" data-item="{{item}}">信息维护</button>
                                    <button type="warn" size="mini" bindtap="raceDel" data-item="{{item}}">信息删除</button>
                                </view>
                            </view>
                        </view>
                    </scroll-view>
                </view>
            </view>
        </view>
    </view>
</mobile-main>