luck-draw/view/manager/block/index.html

104 lines
4.6 KiB
HTML

{layout name="manager/layout" /}
<style>
.layui-table-cell{
min-height: 28px;
height: auto!important;
}
.layui-table-cell img{
max-width: 50px!important;
}
.layui-table-cell video{
max-width: 320px!important;
}
</style>
<div class="layui-row layui-col-space12">
<div class="layui-col-xs12 layui-col-md12 {/if}">
<div id="echarts-records" style="background-color:#ffffff;min-height:600px;">
<div class="layuimini-container location-index-page">
<div class="layuimini-main">
<fieldset class="table-search-fieldset" >
<legend>搜索信息</legend>
<div style="margin: 10px 10px 10px 10px">
<form class="layui-form layui-form-pane" action="">
<div class="layui-form-item">
<div class="layui-inline">
<label class="layui-form-label">关键字</label>
<div class="layui-input-inline">
<input type="text" name="keyword" autocomplete="off" class="layui-input">
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label">栏目</label>
<div class="layui-input-inline">
<div id="parent-menu" data-show="{$showList ?? ''}" data-menu="{$jsonList ?? ''}"></div>
</div>
</div>
<div class="layui-inline">
<button type="submit" class="layui-btn layui-btn-primary" lay-submit lay-filter="data-search-btn"><i class="layui-icon"></i> 搜 索</button>
</div>
</div>
</form>
</div>
</fieldset>
<div>
<table id="table-container" class="layui-table" data-url="/manager/block/index" lay-filter="table-container"></table>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- toolbar -->
<script type="text/html" id="toolbar-tpl">
<a class="layui-btn layui-btn-primary layui-btn-sm" data-table-refresh lay-event="refresh"><i class="fa fa-refresh"></i></a>
<a class="layui-btn layui-btn-normal layui-btn-sm" data-href="/manager/block/add.html" data-title="添加轮播图" lay-event="add">添加</a>
</script>
<script type="text/html" id="toolbar">
<a layuimini-content-href="{:url('add')}"
class="layui-btn layui-btn-normal layui-btn-sm"
data-title="添加碎片"
>添加碎片</a>
<a data-href="{:url('del')}" class="layui-btn layui-btn-danger layui-btn-sm j-page-btns confirm">删除</a>
<a class="layui-btn layui-btn-primary layui-btn-sm" data-table-refresh lay-event="refresh"><i class="fa fa-refresh"></i></a>
</script>
<script type="text/html" id="buttonTpl">
<a layuimini-content-href="{:url('edit')}?id={{ d.id }}&&cid={{ d.category_id }}"
class="layui-btn layui-btn-xs layui-btn-normal layui-icon layui-icon-edit"
data-title="【{{d.title}}】管理"
title="修改"></a>
<a data-href="{:url('del')}?id={{ d.id }}" lay-event="del" class="j-tr-del layui-btn layui-btn-xs layui-btn-danger layui-icon layui-icon-delete" title="删除"></a>
</script>
<script type="text/html" id="row-type">
{{# if(d.type==1){ }}富文本 {{# } }}
{{# if(d.type==2){ }}文本 {{# } }}
{{# if(d.type==3){ }}图片 {{# } }}
{{# if(d.type==4){ }}组图 {{# } }}
{{# if(d.type==5){ }}文件 {{# } }}
{{# if(d.type==6){ }}视频 {{# } }}
{{# if(d.type==7){ }}列表图文 {{# } }}
</script>
<script type="text/html" id="row-content">
{{# if(d.type==1){ }} {{d.content}} {{# } }}
{{# if(d.type==2){ }} {{d.content}} {{# } }}
{{# if(d.type==3){ }} {{d.content}} {{# } }}
{{# if(d.type==4){ }} {{d.content}} {{# } }}
{{# if(d.type==5){ }} 文件路径:{{d.content}} {{# } }}
{{# if(d.type==6){ }} <video src="{{d.content}}" controls></video> {{# } }}
</script>
<script type="text/html" id="row-category">
{{# if(d.category!=undefined&&d.category){ }} {{d.category.title}}{{# } }}
</script>
<script src="__MANAGER__/js/block.js?v={:mt_rand()}"></script>