index.blade.php 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  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"> 提现用户:</label>
  16. <input class="form-control" type="text" name="id">
  17. </div>
  18. <div class="form-group">
  19. <label for="status" class="label-css"> 状态:</label>
  20. <select class="form-control" name="status" id="status" style="margin-top: -8px;">
  21. <option value="">全部</option>
  22. <option value="1">待审核</option>
  23. <option value="2">已完成</option>
  24. <option value="3">已驳回</option>
  25. </select>
  26. </div>
  27. &ensp;&ensp;
  28. <button type="button" class="btn btn-primary">查询</button>
  29. </div>
  30. </form>
  31. <hr class="hr-css">
  32. <div>
  33. <div id="toolbar">
  34. <div class="columns columns-left btn-group pull-left">
  35. </div>
  36. </div>
  37. <table id="ContentTable"></table>
  38. </div>
  39. @endsection
  40. @section('plug-js')
  41. <script src="{{ asset('js/bootstrap-table/dist/bootstrap-table.js') }}"></script>
  42. <script src="{{ asset('js/bootstrap-table/dist/locale/bootstrap-table-zh-CN.js') }}"></script>
  43. <script src="{{ asset('js/jquery-validation1.16/dist/jquery.validate.min.js') }}"></script>
  44. <script src="{{ asset('js/jquery-validation1.16/dist/additional-methods.min.js') }}"></script>
  45. <script src="{{ asset('js/jquery-validation1.16/src/localization/messages_zh.js') }}"></script>
  46. @endsection
  47. @section('scripts')
  48. <script>
  49. $(function(){
  50. BootStrapInit.init('tableWithdraw','ContentTable',{
  51. searchForm: 'searchForm', // 表单搜索id 省略默认 'searchForm'
  52. url: "{{ route('admin.withdraw.ajax.index') }}",
  53. method: 'post',
  54. toolbar: '#toolbar',
  55. idField: '', // 指定主键列
  56. uniqueId: "id", // 这里需要指定当前查询表唯一主键字段
  57. columns: [
  58. {
  59. checkbox: true,
  60. align: 'center',
  61. valign: 'middle'
  62. },
  63. {
  64. field: 'id',
  65. title: 'ID',
  66. align: 'center',
  67. valign: 'middle',
  68. },
  69. {
  70. field: 'nickname',
  71. title: '用户昵称',
  72. align: 'center',
  73. valign: 'middle',
  74. },
  75. {
  76. field: 'phone',
  77. title: '用户手机号码',
  78. align: 'center',
  79. valign: 'middle',
  80. },
  81. {
  82. field: 'money',
  83. title: '提现金额',
  84. align: 'center',
  85. valign: 'middle',
  86. },
  87. {
  88. field: 'service_money',
  89. title: '手续费',
  90. align: 'center',
  91. valign: 'middle',
  92. },
  93. {
  94. field: 'withdraw_money',
  95. title: '到账金额',
  96. align: 'center',
  97. valign: 'middle',
  98. },
  99. {
  100. field: 'status_str',
  101. title: '状态',
  102. align: 'center',
  103. valign: 'middle',
  104. },
  105. {
  106. field: 'withdraw_type_str',
  107. title: '转账类型',
  108. align: 'center',
  109. valign: 'middle',
  110. },
  111. {
  112. field: 'created_at',
  113. title: '创建时间',
  114. align: 'center',
  115. valign: 'middle',
  116. },
  117. {
  118. field: 'updated_at',
  119. title: '更新时间',
  120. align: 'center',
  121. valign: 'middle',
  122. },
  123. {
  124. pkId: 'id', // 当前主键id 兼容排序 field='id' 默认值id
  125. title: '操作',
  126. align: 'center',
  127. valign: 'middle',
  128. width: '185px',
  129. formatter:operateFormatter,
  130. btn_group:[
  131. {
  132. 'name' : '通过',
  133. 'message' : '是否通过提现审核',
  134. 'class' : 'btn-primary createForm',
  135. 'skip' : 'skip',
  136. 'url' : 'javascript:;',
  137. 'confirm_url': '{{ route('admin.withdraw.edit', ['id'=>'-val-','status'=>2])}}'
  138. },
  139. {
  140. 'name' : '驳回',
  141. 'message' : '是否驳回提现',
  142. 'class' : 'btn-danger restoreBtn', // class标签 deleteBtn删除 layer弹出框
  143. 'skip' : 'skip',
  144. 'url' : 'javascript:;',
  145. 'confirm_url': '{{ route('admin.withdraw.audit', ['id'=>'-val-','status'=>3])}}' // 选择按钮
  146. }
  147. ]
  148. }
  149. ]
  150. });
  151. });
  152. </script>
  153. @endsection