mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-03-03 16:24:28 +08:00
优化创建文章,优化代码渲染;
This commit is contained in:
@@ -80,57 +80,11 @@
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-form-label">发表时间</div>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="publish_time" class="layui-input publish-time">
|
||||
<input type="text" name="publish_time" value="{:date('Y-m-d H:i:s')}" class="layui-input publish-time">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item" style="display: none;">
|
||||
<div class="layui-form-label">内容</div>
|
||||
<div class="layui-input-block">
|
||||
<div id="toolbar">
|
||||
<!-- Add font size dropdown -->
|
||||
<select class="ql-size" lay-ignore="lay-ignore">
|
||||
<option value="small">小号</option>
|
||||
<!-- Note a missing, thus falsy value, is used to reset to default -->
|
||||
<option selected>正常</option>
|
||||
<option value="large">大号</option>
|
||||
<option value="huge">特大号</option>
|
||||
</select>
|
||||
<!-- Add a bold button -->
|
||||
<button class="ql-bold"></button>
|
||||
<button class="ql-italic"></button>
|
||||
<button class="ql-link"></button>
|
||||
<button class="ql-underline"></button>
|
||||
<button class="ql-strike"></button>
|
||||
<button class="ql-blockquote"></button>
|
||||
<button class="ql-code-block"></button>
|
||||
<button class="ql-header" value="1" title="大标题"></button>
|
||||
<button class="ql-header" value="2" title="小标题"></button>
|
||||
<button class="ql-list" value="ordered" title="有序列表"></button>
|
||||
<button class="ql-list" value="bullet" title="无序列表"></button>
|
||||
|
||||
<!-- Add subscript and superscript buttons -->
|
||||
<button class="ql-script" value="sub"></button>
|
||||
<button class="ql-script" value="super"></button>
|
||||
<button class="ql-indent" value="-1"></button>
|
||||
<button class="ql-indent" value="+1"></button>
|
||||
<button class="ql-direction" value="rtl"></button>
|
||||
<select class="ql-color" lay-ignore="lay-ignore"></select>
|
||||
<select class="ql-background" lay-ignore="lay-ignore"></select>
|
||||
<select class="ql-font" lay-ignore="lay-ignore"></select>
|
||||
<button class="ql-align" value="center"></button>
|
||||
<button class="ql-align" value=""></button>
|
||||
<button class="ql-align" value="right"></button>
|
||||
<button class="ql-align" value="justify"></button>
|
||||
<button class="ql-image" title="选择图片"></button>
|
||||
|
||||
|
||||
</div>
|
||||
<div id="editor" style="height: 600px;">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<button class="layui-btn layui-btn-fluid" type="submit" lay-submit lay-filter="save">保存</button>
|
||||
@@ -143,7 +97,7 @@
|
||||
<fieldset class="layui-elem-field sm-form">
|
||||
<legend>信息</legend>
|
||||
<div class="layui-field-box">
|
||||
|
||||
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-form-label">分类</div>
|
||||
<div class="layui-input-block ">
|
||||
@@ -272,7 +226,7 @@
|
||||
index: 0,
|
||||
lenght: 0
|
||||
}
|
||||
|
||||
|
||||
|
||||
upload.render({
|
||||
elem: '.upload-poster',
|
||||
@@ -292,12 +246,12 @@
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
form.on('submit(save)', function (data) {
|
||||
|
||||
var formData = data.field;
|
||||
|
||||
|
||||
|
||||
|
||||
console.log(formData);
|
||||
window.loading = layer.load()
|
||||
|
||||
Reference in New Issue
Block a user