<mobile-main frameStyle="{{frameStyle}}" bind:back="back">
    <view slot="info" class="container main">
        <view class="one">
            <input type="text" value="{{searchInfo.teammate_name}}" bindconfirm="search" placeholder="请输入队友姓名" />
        </view>
        <view class="two">
            <scroll-view scroll-y="true" class="scroll-view">
                <view class="list-scroll-view">
                    <view class="list" wx:for="{{list}}" wx:key="item">
                        <view class="name textOver">{{item.apply_time||'暂无'}}</view>
                        <view class="other">
                            <view class="other_1"><text>赛事名称：</text><text>{{item.match_name}}</text></view>
                            <view class="other_1"><text>申请组队姓名：</text><text>{{item.applyuser_name}}</text></view>
                            <view class="other_1"><text>队友姓名：</text><text>{{item.teammate_name}}</text></view>
                            <view class="other_1"><text>状态：</text><text>{{item.status=='0'?'待审中':item.status=='1'?'审核通过':'审核拒绝'}}</text></view>
                        </view>
                        <view class="btn">
                            <button size="mini" type="primary" bindtap="toView" data-item="{{item}}">详细信息</button>
                            <button size="mini" type="primary" bindtap="toCheck" data-item="{{item}}">审核申请</button>
                        </view>
                    </view>
                </view>
            </scroll-view>
        </view>
    </view>
</mobile-main>
<e-dialog dialog="{{dialog}}" bind:toClose="toClose">
    <view slot="info">
        <view class="dialog_one" wx:if="{{dialog.type=='1'}}">
            <view class="one_1">
                <text class="text">赛事名称：</text>
                <text class="text1">{{info.match_name||'暂无'}}</text>
            </view>
            <view class="one_1">
                <text class="text">赛事组别：</text>
                <text class="text1">{{info.grouping_name||'暂无'}}</text>
            </view>
            <view class="one_1">
                <text class="text">组内项目：</text>
                <text class="text1">{{info.project_name||'暂无'}}</text>
            </view>
            <view class="one_1">
                <text class="text">申请组队姓名：</text>
                <text class="text1">{{info.applyuser_name||'暂无'}}</text>
            </view>
            <view class="one_1">
                <text class="text">队友姓名：</text>
                <text class="text1">{{info.teammate_name||'暂无'}}</text>
            </view>
            <view class="one_1">
                <text class="text">申请时间：</text>
                <text class="text1">{{info.apply_time||'暂无'}}</text>
            </view>
            <view class="one_1">
                <text class="text">状态：</text>
                <text class="text1">{{info.status=='0'?'待审中':info.status=='1'?'审核通过':'审核拒绝'}}</text>
            </view>
        </view>
        <view class="dialog_two" wx:elif="{{dialog.type=='2'}}">
            <form bindsubmit="onSubmit">
                <view class="content">
                    <view class="label textOver">状态</view>
                    <view class="value">
                        <picker mode="selector" bindchange="statusChange" name="status" value="{{info.status}}" range-key="label" range="{{statusList}}">
                            <view class="input">{{info.status=='0'?'待审中':info.status=='1'?'审核通过':'审核拒绝'}}</view>
                        </picker>
                    </view>
                </view>
                <view class="btn">
                    <button type="primary" size="mini" formType="submit">提交审核</button>
                </view>
            </form>
        </view>
    </view>
</e-dialog>