index.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. {extend name="public/container"}
  2. {block name="head_top"}
  3. {/block}
  4. {block name="content"}
  5. <div class="layui-fluid" style="background: #fff;margin-top: -10px;">
  6. <div class="layui-row layui-col-space15">
  7. <div class="layui-col-md12">
  8. <div class="layui-card">
  9. <!-- <div class="layui-card-header">门店列表</div>-->
  10. <div class="layui-card-body">
  11. <table class="layui-hide" id="List" lay-filter="List"></table>
  12. <script type="text/html" id="photo">
  13. <img src='{{d.photo}}' lay-event='open_image'>
  14. </script>
  15. <script type="text/html" id="act">
  16. {{# if(d.status == 0 ){ }}
  17. <button type="button" class="layui-btn layui-btn-xs layui-btn-normal" lay-event='edit'>
  18. 确认证书
  19. </button>
  20. {{# } else { }}
  21. <button type="button" class="layui-btn layui-btn-xs layui-btn-normal" lay-event='edit'>
  22. 编辑证书
  23. </button>
  24. {{# } }}
  25. </script>
  26. </div>
  27. </div>
  28. </div>
  29. </div>
  30. </div>
  31. <script src="{__ADMIN_PATH}js/layuiList.js"></script>
  32. {/block}
  33. {block name="script"}
  34. <script>
  35. layList.tableList('List', "{:Url('groupList')}", function () {
  36. return [
  37. {field: 'id', title: 'ID', sort: true, event: 'id', width: '5%'},
  38. {field: 'name', title: '姓名', width: '8%'},
  39. {field: 'gender_name', title: '性别', width: '5%'},
  40. {field: 'idcard', title: '身份证号码', width: '15%'},
  41. {field: 'job', title: '职业', width: '7%'},
  42. {field: 'photo', title: '照片', width: '10%', toolbar: "#photo"},
  43. {field: 'level_name', title: '等级', width: '5%'},
  44. {field: 'code', title: '编码'},
  45. {field: 'date', title: '录入时间', width: "10%"},
  46. {field: 'add_time', title: '提交时间', width: '12%'},
  47. {field: 'right', title: '操作', align: 'center', toolbar: '#act', width: '10%'},
  48. ];
  49. });
  50. //点击事件绑定
  51. layList.tool(function (event, data, obj) {
  52. switch (event) {
  53. case 'open_image':
  54. $eb.openImage(data.photo);
  55. break;
  56. case 'edit':
  57. $eb.createModalFrame(data.name + '-确认', layList.U({a: 'check', q: {id: data.id}}), {
  58. h: 550,
  59. w: 720
  60. });
  61. break;
  62. }
  63. s
  64. })
  65. </script>
  66. {/block}