12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <form onsubmit="return false;" action="{:request()->url()}" data-auto="true" method="post" class='layui-form layui-card' autocomplete="off">
- <div class="layui-card-body">
- <div class="layui-row margin-bottom-15">
- <label class="layui-col-xs2 think-form-label">标题</label>
- <label class="layui-col-xs10">
- <input name="title" required value='{$vo.title|default=""}' placeholder="请输入标题" class="layui-input">
- </label>
- </div>
- <div class="layui-row margin-bottom-15">
- <label class="layui-col-xs2 think-form-label">内容</label>
- <label class="layui-col-xs10">
- <textarea name="content" cols="100" rows="10" required>{$vo.content|default=""}</textarea>
- <!-- <input name="content" required value='{$vo.content|default=""}' placeholder="请输入内容" class="layui-input">-->
- </label>
- </div>
- <!-- <div class="layui-row margin-bottom-15">-->
- <!-- <label class="layui-col-xs2 think-form-label">视频</label>-->
- <!-- <label class="layui-col-xs10">-->
- <!-- <input name="url" type="hidden" value="{$vo.url|default=''}">-->
- <!-- </label>-->
- <!-- </div>-->
- <div class="layui-row margin-bottom-15" style="margin-left: 260px;">
- <label class="layui-form-label label-required">视频</label>
- <div class="layui-input-block">
- <input name="url" type="hidden" value="{$vo.url|default=''}" data-type="gif">
- </div>
- </div>
- </div>
- {if $is_examine == 0}
- <div class="hr-line-dashed"></div>
- <div class="layui-form-item text-center">
- {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
- <button class="layui-btn" type='submit'>保存数据</button>
- </div>
- {/if}
- </form>
- <script>
- window.form.render();
- require(['ckeditor', 'angular'], function () {
- window.createEditor('[name="content"]', {height: 200,width: 1000});
- })
- </script>
- <script>
- window.form.render();
- // $('[name="url"]').uploadOneVideo();
- $('[name="url"]').uploadOneImage();
- </script>
|