<mobile-main frameStyle="{{frameStyle}}" bind:back="back" bind:tabPath="tabPath">
    <view slot="info" class="container main">
        <view class="one">
            <form catchsubmit="onSubmit">
                <view class="content">
                    <view class="label">比赛名称</view>
                    <view class="value">
                        <picker bindchange="matchChange" name="match_id" value="{{form.match_id}}" range-key='name' range="{{matchList}}">
                            <view class="input">{{form.match_name||'请选择赛事'}}</view>
                        </picker>
                    </view>
                </view>
                <view class="content">
                    <view class="label">赛事组别</view>
                    <view class="value">
                        <picker bindchange="grpupChange" name="grouping_id" value="{{form.grouping_id}}" range-key='name' range="{{groupingList}}">
                            <view class="input">{{form.grouping_name||'请选择赛事组别'}}</view>
                        </picker>
                    </view>
                </view>
                <view class="content">
                    <view class="label">组内项目</view>
                    <view class="value">
                        <picker bindchange="projectChange" name="project_id" value="{{form.project_id}}" range-key='name' range="{{projectList}}">
                            <view class="input">{{form.project_name||'请选择组内项目'}}</view>
                        </picker>
                    </view>
                </view>
                <view class="content">
                    <view class="label">组内人员{{form.type}}</view>
                    <view class="value">
                        <checkbox-group name="person" bindchange="personChange">
                            <label class="personList" wx:for="{{personList}}" wx:key="item">
                                <view>
                                    <text class="name">{{item.name||item.names}}</text>
                                    <checkbox value="{{item.openid||item.team_id}}" checked="{{item.checked}}" />
                                </view>
                            </label>
                        </checkbox-group>
                    </view>
                </view>
                <view class="content">
                    <view class="label">组名</view>
                    <view class="value">
                        <input name="name" value="{{form.name}}" placeholder="请输入组名" />
                    </view>
                </view>
                <view class="content">
                    <view class="label">前x名晋级</view>
                    <view class="value">
                        <input type="number" name="rise" value="{{form.rise}}" placeholder="请输入前x名晋级" />
                    </view>
                </view>

                <view class="content">
                    <view class="label">备注</view>
                    <view class="value">
                        <textarea name="remark" value="{{form.remark}}" auto-height placeholder="请输入备注" />
                    </view>
                </view>
                <view class="btn">
                    <button type="primary" size="mini" formType="submit">提交保存</button>
                </view>
            </form>
        </view>
    </view>
</mobile-main>