<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"><textarea name="title" value="{{form.title}}" auto-height placeholder="请输入资讯标题" /></view>
                </view>
                <view class="content">
                    <view class="label">资讯图片</view>
                    <view class="value">
                        <vanupload list="{{icon}}" count="{{1}}" previewSize="{{50}}" bind:imgUpload="imgUpload" bind:imgDel="imgDel"></vanupload>
                    </view>
                </view>
                <view class="content">
                    <view class="label">资讯类型</view>
                    <view class="value">
                        <picker mode="selector" bindchange="typeChange" value="{{form.type}}" name="type" range-key='label' range="{{typeList}}">
                            <view class="input">{{form.type=='0'?'其他':form.type=='1'?'羽毛球':'请选择资讯类型'}}</view>
                        </picker>
                    </view>
                </view>
                <view class="content">
                    <view class="label">信息来源</view>
                    <view class="value"><input name="origin" value="{{form.origin}}" placeholder="请输入信息来源" /></view>
                </view>
                <view class="content">
                    <view class="label">信息简介</view>
                    <view class="value"><textarea name="brief" value="{{form.brief}}" auto-height placeholder="请输入信息简介" /></view>
                </view>
                <view class="content">
                    <view class="value">
                        <hg-editor placeholder="请输入信息内容" name="{{form.content}}" bind:ready="onEditorReady" bind:input="inputChange"> </hg-editor>
                    </view>
                </view>
                <view class="content">
                    <view class="label">是否公开</view>
                    <picker name="is_show" bindchange="is_showChange" value="{{form.is_show}}" range-key='label' range="{{is_showList}}">
                        <view class="input">{{form.is_show=='0'?'公开':form.is_show=='1'?'不公开':'是否公开'}}</view>
                    </picker>
                </view>
                <view class="btn">
                    <button type="primary" size="mini" formType="submit">提交保存</button>
                </view>
            </form>
        </view>
    </view>
</mobile-main>