<mobile-main frameStyle="{{frameStyle}}" bind:back="back">
    <view slot="info" class="container main">
        <view class="one">
            <form catchsubmit="onSubmit">
                <view class="content">
                    <view class="label">比赛类型</view>
                    <view class="value">
                        <picker name="type" bindchange="typeChange" value="{{form.type}}" range-key='value' range="{{typeList}}">
                            <view class="input">{{form.type||'选择比赛类型'}}</view>
                        </picker>
                    </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">比赛项目说明：</view>
                    <view class="value"><textarea name="explain" value="{{form.explain}}" auto-height placeholder="请输入比赛项目说明"></textarea></view>
                </view>
                <view class="content">
                    <view class="label">比赛人数：</view>
                    <view class="value"><input type="digit" name="num" value="{{form.num}}" placeholder="请输入比赛人数" /></view>
                </view>
                <view class="btn">
                    <button type="primary" size="mini" formType="submit">提交保存</button>
                </view>
            </form>
        </view>
    </view>
</mobile-main>