Commit f07b0bca847ef2744d509f21ba85b7c164abd0d7

Authored by pengye
1 parent 6c5df378

no message

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