prize_list.html 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. {extend name="public/layout"/} {block name="title"}已完成人员列表{/block} {block name="body"}
  2. <style type="text/css">
  3. html,
  4. body {
  5. display: block;
  6. width: 100%;
  7. background-color: #fff;
  8. }
  9. .layui-table thead tr,
  10. .layui-table-header {
  11. background-color: #D8E6F1 !important;
  12. }
  13. .layui-fluid {
  14. display: block;
  15. border-radius: 5px;
  16. background-color: #ffffff;
  17. padding: 15px 30px;
  18. }
  19. .layui-tab {
  20. padding: 15px;
  21. height: 100%;
  22. }
  23. .layui-form-item {
  24. width: 100%;
  25. }
  26. .layui-form-item .layui-inline {
  27. display: block;
  28. float: left;
  29. height: 38px;
  30. line-height: 38px;
  31. background: #FFFFFF;
  32. margin-right: 5px;
  33. }
  34. .layui-form-item .layui-input-inline {
  35. width: 145px;
  36. height: 38px;
  37. line-height: 38px;
  38. margin-bottom: 0;
  39. }
  40. .layui-form-item .layui-input-inline .layui-input {
  41. border: 1px solid #9DB6CF;
  42. border-radius: 5px;
  43. }
  44. .layui-form-select dl dd.layui-this {
  45. background-color: #249EFB;
  46. }
  47. .layui-form-item div.searchBox {
  48. width: 320px;
  49. background: #FFFFFF;
  50. height: 38px;
  51. overflow: hidden;
  52. padding-left: 18px;
  53. position: relative;
  54. margin-bottom: 0px;
  55. float: right;
  56. }
  57. .searchBox .inputBox {
  58. width: 240px;
  59. float: left;
  60. height: 36px;
  61. line-height: 36px;
  62. }
  63. .searchBtn {
  64. position: absolute;
  65. top: 0;
  66. right: 0;
  67. width: 51px;
  68. height: 38px;
  69. background-color: #fff;
  70. }
  71. .searchBtn img {
  72. position: absolute;
  73. width: 26px;
  74. top: 6px;
  75. left: 0;
  76. }
  77. .layui-btn.layui-btn-success {
  78. background-color: #009688;
  79. }
  80. .layui-card-body {
  81. padding: 0px;
  82. box-shadow: none;
  83. }
  84. .layui-card-header {
  85. padding: 0px 0px 15px !important;
  86. }
  87. </style>
  88. <div class="layui-fluid">
  89. <div class="layui-card">
  90. <div class="layui-card-body">
  91. <table lay-filter="commentdatalist" id="commentdatalist"></table>
  92. </div>
  93. </div>
  94. </div>
  95. {/block} {block name="js"}
  96. <script>
  97. layui.use(['form', 'table', 'laydate'], function () {
  98. var form = layui.form,
  99. table = layui.table,
  100. $ = layui.$,
  101. laydate = layui.laydate;
  102. //执行一个laydate实例
  103. laydate.render({
  104. elem: '#dateTime1' //指定元素
  105. });
  106. //执行一个laydate实例
  107. laydate.render({
  108. elem: '#dateTime2' //指定元素
  109. });
  110. var field = {};
  111. form.on('submit(LAY-app-contlist-search)', function (data) {
  112. var keyword = $('.keyword').val();
  113. field['keyword'] = keyword;
  114. //执行重载
  115. table.reload('commentdatalist', {
  116. where: field,
  117. page: {
  118. curr: 1
  119. }
  120. });
  121. });
  122. table.render({
  123. elem: '#commentdatalist',
  124. url: "{:url('Turntable/prize_list')}?id={$id}",
  125. page: true,
  126. height: 'full-50',
  127. cols: [
  128. [{
  129. field: 'good_name',
  130. title: '奖品名称'
  131. },
  132. {
  133. field: 'probability',
  134. title: '中奖概率'
  135. },
  136. {
  137. field: 'stock',
  138. title: '奖品数量'
  139. },
  140. {
  141. field: 'yes',
  142. title: '抽中数量'
  143. },
  144. {
  145. field: 'no',
  146. title: '未抽中数量'
  147. },
  148. ]
  149. ]
  150. });
  151. });
  152. </script>
  153. {/block}