index.blade.php 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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="address">
  17. </div>
  18. {{-- <div class="form-group">--}}
  19. {{-- <label for="level_id" class="label-css"> 资金类型:</label>--}}
  20. {{-- <select class="form-control" name="d.type" style="margin-top: -8px;">--}}
  21. {{-- <option value="">全部</option>--}}
  22. {{-- @foreach($type as $key=>$name)--}}
  23. {{-- <option value="{{$key}}">{{$name}}</option>--}}
  24. {{-- @endforeach--}}
  25. {{-- </select>--}}
  26. {{-- </div>--}}
  27. <div class="form-group">
  28. <label for="level_id" class="label-css"> 流水类型:</label>
  29. <select class="form-control" name="d.status" style="margin-top: -8px;">
  30. <option value="">全部</option>
  31. @foreach($status as $key=>$name)
  32. <option value="{{$key}}">{{$name}}</option>
  33. @endforeach
  34. </select>
  35. </div>
  36. &ensp;&ensp;
  37. <button type="button" class="btn btn-primary">查询</button>
  38. </div>
  39. </form>
  40. <hr class="hr-css">
  41. <div>
  42. <div id="toolbar">
  43. <div class="columns columns-left btn-group pull-left">
  44. </div>
  45. </div>
  46. <table id="ContentTable"></table>
  47. </div>
  48. @endsection
  49. @section('plug-js')
  50. <script src="{{ asset('js/bootstrap-table/dist/bootstrap-table.js') }}"></script>
  51. <script src="{{ asset('js/bootstrap-table/dist/locale/bootstrap-table-zh-CN.js') }}"></script>
  52. <script src="{{ asset('js/jquery-validation1.16/dist/jquery.validate.min.js') }}"></script>
  53. <script src="{{ asset('js/jquery-validation1.16/dist/additional-methods.min.js') }}"></script>
  54. <script src="{{ asset('js/jquery-validation1.16/src/localization/messages_zh.js') }}"></script>
  55. @endsection
  56. @section('scripts')
  57. <script>
  58. $(function(){
  59. BootStrapInit.init('tableMoneyDetail','ContentTable',{
  60. searchForm: 'searchForm', // 表单搜索id 省略默认 'searchForm'
  61. url: "{{ route('admin.moneyDetail.ajax.index') }}",
  62. method: 'post',
  63. toolbar: '#toolbar',
  64. idField: '', // 指定主键列
  65. uniqueId: "id", // 这里需要指定当前查询表唯一主键字段
  66. columns: [
  67. {
  68. checkbox: true,
  69. align: 'center',
  70. valign: 'middle'
  71. },
  72. {
  73. field: 'id',
  74. title: 'ID',
  75. align: 'center',
  76. valign: 'middle',
  77. },
  78. {
  79. field: 'address',
  80. title: '用户地址',
  81. align: 'center',
  82. valign: 'middle',
  83. formatter:aHttpAddress,
  84. },
  85. // {
  86. // field: 'type',
  87. // title: '资金类型',
  88. // align: 'center',
  89. // valign: 'middle',
  90. // },
  91. {
  92. field: 'status',
  93. title: '变动类型',
  94. align: 'center',
  95. valign: 'middle',
  96. },
  97. {
  98. field: 'add_reduce',
  99. title: '变动方式',
  100. align: 'center',
  101. valign: 'middle',
  102. },
  103. {
  104. field: 'price',
  105. title: '变动金额',
  106. align: 'center',
  107. valign: 'middle',
  108. },
  109. {
  110. field: 'remainder',
  111. title: '结余',
  112. align: 'center',
  113. valign: 'middle',
  114. },
  115. {
  116. field: 'created_at',
  117. title: '创建时间',
  118. align: 'center',
  119. valign: 'middle',
  120. },
  121. {
  122. field: 'updated_at',
  123. title: '更新时间',
  124. align: 'center',
  125. valign: 'middle',
  126. }
  127. ]
  128. });
  129. });
  130. </script>
  131. @endsection