Nenhuma Descrição

customerList.blade.php 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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>
  11. <input class="input-text" style="width:6%;text-align:center" type="text" value="客户名"/>
  12. <input id="name" type="text" class="input-text" style="width:10%;text-align:center" name="name" value="{{$name?$name:''}}">
  13. <input class="input-text" style="width:6%;text-align:center" type="text" value="手机号"/>
  14. <input id="phone" type="text" class="input-text" style="width:10%;text-align:center" name="phone" value="{{$phone?$phone:''}}">
  15. <a class="btn btn-primary radius" onclick="user_search()" href="javascript:;">搜索</a>
  16. <a class="btn btn-primary radius" onclick="admin_add('新增')" href="javascript:;"><i class="Hui-iconfont">&#xe600;</i> 新增充值记录</a>
  17. </div>
  18. <div class="mt-20">
  19. <table class="table table-border table-bordered table-bg table-hover table-sort">
  20. <thead>
  21. <tr class="text-c">
  22. {{--<th width="25"><input type="checkbox" name="" value=""></th>--}}
  23. <th width="10%">姓名</th>
  24. <th width="10%">手机号</th>
  25. <th width="10%">充值次数</th>
  26. <th width="10%">累计充值金额</th>
  27. <th width="10%">账户余额</th>
  28. <th width="10%">操作</th>
  29. </tr>
  30. </thead>
  31. <tbody>
  32. @if($result)
  33. @foreach($result as $a)
  34. <tr class="text-c">
  35. {{--<td><input name="" type="checkbox" value=""></td>--}}
  36. <td class="text-c">{{$a['name']}}</td>
  37. <td class="text-c">{{$a['phonei']}}</td>
  38. <td class="text-c">{{$a['deposit_times']}}</td>
  39. <td class="text-c">{{$a['deposit_total']}}</td>
  40. <td class="text-c">{{$a['balance']}}</td>
  41. <td class="f-14 product-brand-manage"><!--a style="text-decoration:none" onClick='admin_edit("编辑团队","{{$a['id']}}")' href="javascript:;" title="编辑团队"><span class="btn btn-primary radius">编辑</span></a> <a style="text-decoration:none" class="ml-5" onClick="admin_del(this, '{{$a['id']}}')" href="javascript:;" title="删除"><span class="btn btn-danger radius">删除</span></a-->
  42. <a style="text-decoration:none" onClick='depositlist("查看充值记录","{{$a['phone']}}")' href="javascript:;" title="查看充值记录"><span class="btn btn-primary radius">查看充值记录</span></a>
  43. <a style="text-decoration:none" onClick='consumlist("查看充值记录","{{$a['phone']}}")' href="javascript:;" title="查看消费记录"><span class="btn btn-warning radius">查看消费记录</span></a>
  44. </td>
  45. </tr>
  46. @endforeach
  47. @endif
  48. </tbody>
  49. </table>
  50. </div>
  51. <div id="page" class="page_div"></div>
  52. </div>
  53. <!--_footer 作为公共模版分离出去-->
  54. <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
  55. <script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
  56. <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
  57. <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
  58. <script type="text/javascript" src="/admin/lib/page/paging.js"></script>
  59. <!--/_footer 作为公共模版分离出去-->
  60. <!--/_footer 作为公共模版分离出去-->
  61. <script type="text/javascript">
  62. $(function(){
  63. setTimeout("$('#info').hide()",3000);
  64. });
  65. /*管理员-添加*/
  66. function admin_add(title){
  67. location.href = '/admin/deposit/create';
  68. }
  69. /*管理员-编辑*/
  70. function admin_edit(title,id){
  71. location.href = "/admin/admin/teamedit/"+id;
  72. }
  73. function depositlist(title,phone){
  74. location.href = '/admin/deposit/index?phone='+phone;
  75. }
  76. function consumlist(title,phone){
  77. location.href = '/admin/deposit/consumList?phone='+phone;
  78. }
  79. function user_search(){
  80. var phone = $('#phone').val();
  81. var name = $('#name').val();
  82. location.href='customerList?page='+num + '&name='+name + '&phone='+phone;
  83. }
  84. $("#page").paging({
  85. pageNo:{{$page}},
  86. totalPage: {{$pages}},
  87. totalSize: {{$count}},
  88. callback: function(num) {
  89. var phone = $('#phone').val();
  90. var name = $('#name').val();
  91. location.href='customerList?page='+num + '&name='+name + '&phone='+phone;
  92. }
  93. })
  94. </script>
  95. </body>
  96. @endsection