index.blade.php 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. @extends('layouts.admin.app')
  2. @section('plug-css')
  3. <link href="{{ asset('js/bootstrap-table/dist/bootstrap-table.css') }}" rel="stylesheet">
  4. @endsection
  5. @section('crumbs')
  6. <ol class="breadcrumb crumbs">
  7. <li><a href="{{ route('admin.index') }}#">后台导航</a></li>
  8. <li class="active">会员列表</li>
  9. </ol>
  10. @endsection
  11. @section('content')
  12. <form id="searchForm" class="form-inline">
  13. <div class="">
  14. <div class="form-group">
  15. <label for="name" class="label-css"> ID:</label>
  16. <input class="form-control" type="text" name="id">
  17. </div>
  18. <div class="form-group">
  19. <label for="name" class="label-css"> 用户地址:</label>
  20. <input class="form-control" type="text" name="address">
  21. </div>
  22. <div class="form-group">
  23. <label for="name" class="label-css"> 推荐人地址:</label>
  24. <input class="form-control" type="text" name="recom_address">
  25. </div>
  26. <div class="form-group">
  27. <label for="is_sys_add" class="label-css"> 级别:</label>
  28. <select class="form-control" name="level_id" style="margin-top: -8px;">
  29. <option value="">全部</option>
  30. <option value="0">L0</option>
  31. <option value="1">L1</option>
  32. <option value="2">L2</option>
  33. <option value="3">L3</option>
  34. <option value="4">L4</option>
  35. <option value="5">L5</option>
  36. </select>
  37. </div>
  38. <div class="form-group">
  39. <label for="is_sys_add" class="label-css"> 自动升级:</label>
  40. <select class="form-control" name="is_auto" style="margin-top: -8px;">
  41. <option value="">全部</option>
  42. <option value="0">否</option>
  43. <option value="1">是</option>
  44. </select>
  45. </div>
  46. <button type="button" class="btn btn-primary">查询</button>
  47. </div>
  48. </form>
  49. <hr class="hr-css">
  50. <div>
  51. <div id="toolbar">
  52. <div class="columns columns-left btn-group pull-left">
  53. </div>
  54. </div>
  55. <table id="ContentTable"></table>
  56. </div>
  57. @endsection
  58. @section('plug-js')
  59. <script src="{{ asset('js/bootstrap-table/dist/bootstrap-table.js') }}"></script>
  60. <script src="{{ asset('js/bootstrap-table/dist/locale/bootstrap-table-zh-CN.js') }}"></script>
  61. <script src="{{ asset('js/jquery-validation1.16/dist/jquery.validate.min.js') }}"></script>
  62. <script src="{{ asset('js/jquery-validation1.16/dist/additional-methods.min.js') }}"></script>
  63. <script src="{{ asset('js/jquery-validation1.16/src/localization/messages_zh.js') }}"></script>
  64. @endsection
  65. @section('scripts')
  66. <script>
  67. $(function(){
  68. BootStrapInit.init('tableMember','ContentTable',{
  69. searchForm: 'searchForm', // 表单搜索id 省略默认 'searchForm'
  70. url: "{{ route('admin.member.ajax.index') }}",
  71. method: 'post',
  72. toolbar: '#toolbar',
  73. idField: '', // 指定主键列
  74. uniqueId: "id", // 这里需要指定当前查询表唯一主键字段
  75. columns: [
  76. {
  77. checkbox: true,
  78. align: 'center',
  79. valign: 'middle'
  80. },
  81. {
  82. field: 'id',
  83. title: 'ID',
  84. align: 'center',
  85. valign: 'middle',
  86. },
  87. {
  88. field: 'address',
  89. title: 'BNB地址',
  90. align: 'center',
  91. valign: 'middle',
  92. },
  93. {
  94. field: 'level_name',
  95. title: '等级',
  96. align: 'center',
  97. valign: 'middle',
  98. },
  99. {
  100. field: 'is_auto',
  101. title: '自动升级',
  102. align: 'center',
  103. valign: 'middle',
  104. formatter:yesOrNoTwo,
  105. bool_data:{
  106. 'class' : 'cursor',
  107. 'table' : 'members'
  108. }
  109. },
  110. {
  111. field: 'is_boss',
  112. title: 'BOSS',
  113. align: 'center',
  114. valign: 'middle',
  115. formatter:yesOrNoTwo,
  116. bool_data:{
  117. 'class' : 'cursor',
  118. 'table' : 'members'
  119. }
  120. },
  121. {
  122. field: 'money',
  123. title: '代币余额',
  124. align: 'center',
  125. valign: 'middle',
  126. },
  127. {
  128. field: 'recom_address',
  129. title: '推荐人地址',
  130. align: 'center',
  131. valign: 'middle',
  132. },
  133. {
  134. field: 'invite_code',
  135. title: '推荐码',
  136. align: 'center',
  137. valign: 'middle',
  138. },
  139. {
  140. field: 'created_at',
  141. title: '创建时间',
  142. align: 'center',
  143. valign: 'middle',
  144. },
  145. {
  146. field: 'updated_at',
  147. title: '更新时间',
  148. align: 'center',
  149. valign: 'middle',
  150. },
  151. {
  152. pkId: 'id', // 当前主键id 兼容排序 field='id' 默认值id
  153. title: '操作',
  154. align: 'center',
  155. valign: 'middle',
  156. width: '185px',
  157. formatter:operateFormatter,
  158. btn_group:[
  159. {
  160. 'name' : '编辑',
  161. 'class' : 'btn-primary createForm',
  162. 'url' : 'javascript:;',
  163. 'confirm_url': '{{ route('admin.member.edit', ['id'=>'-val-'])}}'
  164. }
  165. ]
  166. }
  167. ]
  168. });
  169. });
  170. </script>
  171. @endsection