137 lines
5.6 KiB
HTML
137 lines
5.6 KiB
HTML
{layout name="manager/layout" /}
|
|
<style>
|
|
.layui-table-cell{
|
|
height: auto;
|
|
white-space: normal;
|
|
}
|
|
.layui-table .layui-layer-photos {height: 90px;}
|
|
.layui-table img{
|
|
max-height: 100%;
|
|
object-fit: cover;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
display: block;
|
|
max-width: 150px;
|
|
vertical-align: middle;
|
|
border: 0;
|
|
}
|
|
</style>
|
|
|
|
<div class="layui-row layui-col-space12">
|
|
<div class="layui-col-xs12 layui-col-md12">
|
|
<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" style="display: none">
|
|
<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-inline">
|
|
<input type="text" name="keyword" class="layui-input">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="layui-inline">
|
|
<label class="layui-form-label">状态</label>
|
|
<div class="layui-inline">
|
|
<select name="state" >
|
|
<option value=""></option>
|
|
{foreach $state as $key=> $sitem }
|
|
<option value="{$key}">{$sitem}</option>
|
|
{/foreach}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="layui-inline">
|
|
<label class="layui-form-label">类型</label>
|
|
<div class="layui-inline">
|
|
<select name="type" >
|
|
<option value=""></option>
|
|
{foreach $type as $key=> $sitem }
|
|
<option value="{$key}">{$sitem}</option>
|
|
{/foreach}
|
|
</select>
|
|
</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/comment/index" lay-filter="table-container"></table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- 操作列 -->
|
|
<script type="text/html" id="row-operate">
|
|
{{# if(d.state==0){ }}
|
|
<a class="layui-btn layui-btn-primary layui-btn-xs" data-href="/manager/comment/examine.html?id={{d.id}}&&state=1" lay-event="examine">通过</a>
|
|
{{# } }}
|
|
<a class="layui-btn layui-btn-primary layui-btn-xs" data-href="/manager/comment/add-black.html?id={{d.id}}&&sign=1" data-title="加入黑名单" lay-event="black">加入黑名单</a>
|
|
<a class="layui-btn layui-btn-primary layui-btn-xs" data-href="/manager/comment/examine.html?id={{d.id}}&&state=2" lay-event="examine">删除</a>
|
|
|
|
</script>
|
|
|
|
<!-- 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>
|
|
</script>
|
|
<!-- 列 性别 -->
|
|
<script type="text/html" id="row-gender">
|
|
{{# if(d.account.gender==1){ }}
|
|
男
|
|
{{# }else{ }}
|
|
女
|
|
{{# } }}
|
|
</script>
|
|
<!-- 列 性别 -->
|
|
<script type="text/html" id="row-state">
|
|
{{# if(d.state==0){ }}
|
|
待审核
|
|
{{# }else if(d.state==1){ }}
|
|
显示
|
|
{{# }else if(d.state==2){ }}
|
|
隐藏
|
|
{{# } }}
|
|
|
|
{{# if(d.is_blank==1){ }}
|
|
| 已禁言
|
|
{{# } }}
|
|
</script>
|
|
|
|
<!-- 列 -->
|
|
<script type="text/html" id="row-comment">
|
|
{{# if(d.type==1){ }}
|
|
<div class="layui-layer-photos">
|
|
<img src="{{ d.comment }}" layer-src="{{ d.comment }}" alt="">
|
|
</div>
|
|
{{# }else if(d.type==0){ }}
|
|
{{ d.comment }}
|
|
{{# }else if (d.type==1){ }}
|
|
<div class="layui-layer-photos">
|
|
<img src="{{ d.comment }}" layer-src="{{ d.account }}" alt="">
|
|
</div>
|
|
{{# }else{ }}
|
|
<audio src="{{ d.comment }}" controls="controls">Your browser does not support the audio element.</audio>
|
|
{{# } }}
|
|
</script>
|
|
|
|
<!-- 列 轮播图 -->
|
|
<script type="text/html" id="row-cover">
|
|
<div class="layui-layer-photos">
|
|
<img src="{{ d.account.avatar_url }}" layer-src="{{ d.account.avatar_url }}" alt="">
|
|
</div>
|
|
</script>
|
|
|
|
<script src="__MANAGER__/js/business/comment.js?v={:mt_rand()}"></script> |