123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <style>
- .uploadimage{
- width: 10pc !important;
- }
- .layui-layer{
- width: 990px !important;
- }
- </style>
- <link rel="stylesheet" href="/static/plugs/layui/css/layui.css" media="all">
- <script src="/static/plugs/layui/layui.all.js" charset="utf-8"></script>
- <div class="think-box-shadow" style="height: 85%">
- <form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
- <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
- <legend>轮播图编辑</legend>
- </fieldset>
- <div class="layui-tab-content">
- <div class="layui-tab-item layui-show">
- <div class="layui-form-item">
- <label class="layui-form-label label-required">名称</label>
- <div class="layui-input-block">
- <input name="name" maxlength="20" value='{$vo.name|default=""}' placeholder="请输入名称" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label label-required">图片</label>
- <div class="layui-input-block">
- <input name="cover" type="hidden" value="{$vo.cover|default=''}">
- <span style="margin-right: 20px">建议尺寸宽700px 高330px </span>
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label label-required">排序</label>
- <div class="layui-input-block">
- <input type="number" name="sort" value='{$vo.sort|default=""}' placeholder="请输入排序号" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label label-required">内容</label>
- <div class="layui-input-block">
- <textarea name="content">{$vo.content|default=""}</textarea>
- </div>
- </div>
- {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
- <div class="layui-form-item text-center">
- <button class="layui-btn" type='submit'>保 存</button>
- <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定取消编辑吗?" data-close>取消编辑</button>
- </div>
- </div>
- </div>
- </form>
- <script>
- window.form.render();
- $('[name="cover"]').uploadOneImage();
- require(['ckeditor', 'angular'], function () {
- window.createEditor('[name="content"]', {
- height: 500,
- });
- })
- </script>
- </div>
|