TaoLer/view/admin/forum/replysform.html

39 lines
1.1 KiB
HTML
Raw Normal View History

2020-01-01 13:17:19 +08:00
{extend name="public:base" /}
{block name="body"}
<div class="layui-form" lay-filter="layuiadmin-form-replys" id="layuiadmin-form-replys" style="padding: 20px 30px 0 0;">
<div class="layui-form-item">
<label class="layui-form-label">回帖内容</label>
<div class="layui-input-block">
<textarea name="content" lay-verify="required" autocomplete="off" class="layui-textarea" style="height: 200px;"></textarea>
</div>
</div>
</div>
{/block}
{block name="js"}
<script>
layui.config({
base: '/static/admin/' //静态资源所在路径
}).extend({
index: 'lib/index' //主入口模块
}).use(['index', 'form', 'upload'], function(){
var $ = layui.$
,form = layui.form
,upload = layui.upload;
upload.render({
elem: '#layuiadmin-upload-replys'
,url: layui.setter.base + 'json/upload/demo.js'
,accept: 'images'
,method: 'get'
,acceptMime: 'image/*'
,done: function(res){
$(this.item).prev("div").children("input").val(res.data.src)
}
});
})
</script>
{/block}