<mobile-main frameStyle="{{frameStyle}}" bind:back="back">
    <view slot="info" class="container main">
        <view class="one">
            <form catchsubmit="onSubmit">
                <view class="content" style="display: none;">
                    <view class="label">openid</view>
                    <view class="value"><input name="openid" value="{{form.openid}}" placeholder="请输入openid" disabled /></view>
                </view>
                <view class="content" style="display: none;">
                    <view class="label">比赛id</view>
                    <view class="value"><input name="match_id" value="{{form.match_id}}" placeholder="请输入比赛id" disabled /></view>
                </view>
                <view class="content">
                    <view class="label">比赛名称</view>
                    <view class="value"> <textarea name="match_name" value="{{form.match_name}}" auto-height placeholder="请输入比赛名称" disabled /></view>
                </view>
                <view class="content">
                    <view class="label">赛事分组</view>
                    <view class="value">
                        <picker mode="selector" bindchange="groupingChange" value="{{form.grouping_id}}" name="grouping_id" range-key='name' range="{{info.grouping}}">
                            <view class="input">{{form.grouping_name||'请选择赛事分组'}}</view>
                        </picker>
                    </view>
                </view>
                <view class="content">
                    <view class="label">组内项目</view>
                    <view class="value">
                        <picker mode="selector" bindchange="projectChange" value="{{form.project_id}}" name="project_id" range-key='name' range="{{projectList}}">
                            <view class="input">{{form.project_name||'请选择组内项目'}}</view>
                        </picker>
                    </view>
                </view>
                <view>
                </view>
                <view class="btn">
                    <button type="primary" size="mini" form-type="submit">提交报名</button>
                </view>
            </form>
        </view>
    </view>
</mobile-main>
<e-dialog dialog="{{dialog}}" bind:toClose="toClose">
    <view slot="info">
        <view class="dialog_1" wx:if="{{dialog.type=='1'}}">
            <view class="info">
                <view class="info_1">温馨提示：</view>
                <view class="info_2">
                    <view class="info_2_1">1.参赛人员报名费每人每项50元！</view>
                </view>
            </view>
            <view class="btn">
                <button type="primary" size="mini" bindtap="toPay">支付报名费</button>
            </view>
        </view>
    </view>
</e-dialog>