<mobile-main frameStyle="{{frameStyle}}" bind:back="back">
    <view slot="info" class="container main">
        <view class="zero one">
            <button type="primary" size="mini" bindtap="toAdd">添加组别</button>
        </view>
        <view class="zero two">
            <scroll-view scroll-y="true" class="scroll-view">
                <view class="list-scroll-view">
                    <view class="list" wx:for="{{info.grouping}}" wx:key="item">
                        <view class="name">
                            {{item.name}}
                        </view>
                        <view class="other">
                            <view class="other_1">
                                <text>年龄限制：</text><text>{{item.age}}</text>
                            </view>
                            <view class="other_1">
                                <text>性别限制：</text><text>{{item.gender}}</text>
                            </view>
                        </view>
                        <view class="btn">
                            <button type="warn" size="mini" bindtap="toDel" 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_1" wx:if="{{dialog.type=='1'}}">
            <form catchsubmit="onSubmit">
                <view class="content">
                    <view class="label">名称</view>
                    <view class="value">
                        <input type="text" name="name" value="{{form.name}}" placeholder="请输入名称" />
                    </view>
                </view>
                <view class="content">
                    <view class="label">年龄限制</view>
                    <view class="value">
                        <input type="text" name="age" value="{{form.age}}" placeholder="请输入年龄限制" />
                    </view>
                </view>
                <view class="content">
                    <view class="label">性别限制</view>
                    <view class="value">
                        <input type="text" name="gender" value="{{form.gender}}" placeholder="请输入性别限制" />
                    </view>
                </view>
                <view class="content">
                    <view class="label">比赛项目</view>
                    <view class="value checkbox">
                        <checkbox-group name="project" bindchange="checkboxChange">
                            <label class="list" wx:for="{{projectList}}" wx:key="item">
                                <text class="name">{{item.name}}</text>
                                <checkbox value="{{item._id}}" checked="{{item.checked}}" />
                            </label>
                        </checkbox-group>
                    </view>
                </view>
                <view class="btn">
                    <button type="primary" size="mini" form-type="submit">提交保存</button>
                </view>
            </form>
        </view>
    </view>
</e-dialog>