|
...
|
...
|
@@ -8,16 +8,6 @@ |
|
|
|
<table class="layui-table" id="list" lay-filter="list"></table>
|
|
|
|
</div>
|
|
|
|
{include file="common/foot"/}
|
|
|
|
<script type="text/html" id="order">
|
|
|
|
<input name="{{d.id}}" data-id="{{d.id}}" class="list_order layui-input" value=" {{d.sort}}" size="10"/>
|
|
|
|
</script>
|
|
|
|
<script type="text/html" id="open">
|
|
|
|
<input type="checkbox" name="open" value="{{d.id}}" lay-skin="switch" lay-text="开启|关闭" lay-filter="open" {{ d.open == 1 ? 'checked' : '' }}>
|
|
|
|
</script>
|
|
|
|
<script type="text/html" id="action">
|
|
|
|
<a href="{:url('edit')}?id={{d.id}}" class="layui-btn layui-btn-xs">编辑</a>
|
|
|
|
<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
|
|
|
|
</script>
|
|
|
|
<script>
|
|
|
|
layui.use(['table','form'], function() {
|
|
|
|
var table = layui.table,form = layui.form,$ = layui.jquery;
|
|
...
|
...
|
@@ -32,8 +22,7 @@ |
|
|
|
{field: 'text', title: '评论内容', width: 200},
|
|
|
|
{field: 'author', align: 'center', title: '评论昵称', width: 200},
|
|
|
|
{field: 'isnoshow', align: 'center', title: '是否匿名', width: 200},
|
|
|
|
{field: 'soucre', align: 'center', title: '来源渠道', width: 120, templet: '#order'},
|
|
|
|
{width: 180, align: 'center', toolbar: '#action'}
|
|
|
|
{field: 'soucre', align: 'center', title: '来源渠道', width: 120, templet: '#order'}
|
|
|
|
]],
|
|
|
|
limit:10
|
|
|
|
});
|
...
|
...
|
|