join_index.php 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. <div class="layui-btn-container">
  12. /////
  13. </div>
  14. <table class="layui-hide" id="List" lay-filter="List"></table>
  15. <script type="text/html" id="user">
  16. {{# if(d.user){ }}
  17. {{# if(d.user.real_name){ }}
  18. 【{{d.user.real_name}}】
  19. {{# } }}
  20. {{d.user.account}}({{d.user.uid}})
  21. {{# }else{ }}
  22. 系统补充机器人
  23. {{# } }}
  24. </script>
  25. <script type="text/html" id="activity">
  26. {{d.activity.name}}
  27. </script>
  28. <script type="text/html" id="act">
  29. <button type="button" class="layui-btn layui-btn-xs layui-btn-normal" lay-event='edit'>
  30. 设置状态
  31. </button>
  32. </script>
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. </div>
  38. <script src="{__ADMIN_PATH}js/layuiList.js"></script>
  39. {/block}
  40. {block name="script"}
  41. <script>
  42. layList.tableList('List', "{:Url('joinList')}", function () {
  43. return [
  44. {field: 'id', title: 'ID', sort: true, event: 'id', width: '5%'},
  45. {field: 'user', title: '参加人', toolbar: '#user', width: '20%'},
  46. {field: 'activity', title: '活动', toolbar: '#activity', width: '20%'},
  47. {field: 'bingo_count', title: '累计拼中', width: '7%'},
  48. {field: '_status', title: '状态', width: '7%'},
  49. {field: '_open_time', title: '开奖时间', width: '19%'},
  50. {field: '_set_status', title: '设置状态', width: '7%'},
  51. {field: 'right', title: '操作', align: 'center', toolbar: '#act', width: '15%'},
  52. ];
  53. });
  54. //点击事件绑定
  55. layList.tool(function (event, data, obj) {
  56. switch (event) {
  57. case 'open_image':
  58. $eb.openImage(data.image);
  59. break;
  60. case 'edit':
  61. $eb.createModalFrame(data.id + '-编辑', layList.U({a: 'setStatus', q: {id: data.id}}), {
  62. h: 900,
  63. w: 720
  64. });
  65. break;
  66. }
  67. })
  68. </script>
  69. {/block}