Nessuna descrizione

consumList.blade.php 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. @extends('admin/master')
  2. @section('content')
  3. <body>
  4. @if(session('info'))
  5. <div class="Huialert Huialert-info" onclick="$(this).remove()" id="info">
  6. {{session('info')}}
  7. </div>
  8. @endif
  9. <div class="page-container">
  10. <div class="cl pd-5 bg-1 bk-gray mt-20"> <span class="l"> <a class="btn btn-primary radius" href="/admin/deposit/customerList"> 返回</a></span> </div>
  11. <div class="mt-20">
  12. <table class="table table-border table-bordered table-bg table-hover table-sort">
  13. <thead>
  14. <tr class="text-c">
  15. {{--<th width="25"><input type="checkbox" name="" value=""></th>--}}
  16. <th width="10%">账号</th>
  17. <th width="10%">消费(或退补)金额</th>
  18. <th width="10%">订单ID</th>
  19. <th width="10%">类型</th>
  20. <th width="10%">时间</th>
  21. </tr>
  22. </thead>
  23. <tbody>
  24. @if($result)
  25. @foreach($result as $a)
  26. <tr class="text-c">
  27. {{--<td><input name="" type="checkbox" value=""></td>--}}
  28. <td class="text-c">{{$a['phone']}}</td>
  29. <td class="text-c">{{$a['money']}}</td>
  30. <td class="text-c">{{$a['order_id']}}</td>
  31. <td class="text-c">@if($a['type'] == 1) 退补 @else 消费 @endif</td>
  32. <td class="text-c">{{$a['create_time']}}</td>
  33. </tr>
  34. @endforeach
  35. @endif
  36. </tbody>
  37. </table>
  38. </div>
  39. <div id="page" class="page_div"></div>
  40. </div>
  41. <!--_footer 作为公共模版分离出去-->
  42. <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
  43. <script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
  44. <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
  45. <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
  46. <script type="text/javascript" src="/admin/lib/page/paging.js"></script>
  47. <!--/_footer 作为公共模版分离出去-->
  48. <!--/_footer 作为公共模版分离出去-->
  49. <script type="text/javascript">
  50. $(function(){
  51. setTimeout("$('#info').hide()",3000);
  52. });
  53. /*管理员-添加*/
  54. function admin_add(title, phone){
  55. location.href = '/admin/deposit/create?phone='+phone;
  56. }
  57. /*管理员-编辑*/
  58. function admin_edit(title,id){
  59. location.href = "/admin/admin/teamedit/"+id;
  60. }
  61. function depositlist(title,phone){
  62. location.href = '/admin/deposit/index?phone='+phone;
  63. }
  64. $("#page").paging({
  65. pageNo:{{$page}},
  66. totalPage: {{$pages}},
  67. totalSize: {{$count}},
  68. callback: function(num) {
  69. var phone = '{{$phone}}'
  70. location.href='consumList?page='+num+'&phone='+phone;
  71. }
  72. })
  73. </script>
  74. </body>
  75. @endsection