Nav apraksta

index.blade.php 5.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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" onclick="admin_add('新增', {{$phone}})" href="javascript:;"><i class="Hui-iconfont">&#xe600;</i> 新增充值记录</a> <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%">使用套餐</th>
  19. <th width="10%">实充金额</th>
  20. <th width="10%">充值方式</th>
  21. <th width="10%">充值时间</th>
  22. </tr>
  23. </thead>
  24. <tbody>
  25. @if($result)
  26. @foreach($result as $a)
  27. <tr class="text-c">
  28. {{--<td><input name="" type="checkbox" value=""></td>--}}
  29. <td class="text-c">{{$a['phone']}}</td>
  30. <td class="text-c">{{$a['pay_amount']}}</td>
  31. <td class="text-c">{{$a['note']}}</td>
  32. <td class="text-c">{{$a['deposit_amount']}}</td>
  33. <td class ="change_logistics_id">
  34. <p id="payment_type_1{{$a['id']}}">{{$a['payment_type']}}</p>
  35. <select id="payment_type_2{{$a['id']}}" style="display: none" name='payment_type' value="{{$a['payment_type']}}" onchange="change_payment_type({{$a['id']}})">
  36. <option value='0'>-请选择-</option>
  37. <option value='1'>微信支付</option>
  38. <option value='3'>个体户支付</option>
  39. </select>
  40. <span class="sort_icon" hidden onClick='change_payment_type_click("{{$a['id']}}")' style="cursor:pointer"><i class="Hui-iconfont">&#xe647;</i></span>
  41. </td>
  42. <td class="text-c">{{$a['pay_time']}}</td>
  43. </tr>
  44. @endforeach
  45. @endif
  46. </tbody>
  47. </table>
  48. </div>
  49. <div id="page" class="page_div"></div>
  50. </div>
  51. <!--_footer 作为公共模版分离出去-->
  52. <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
  53. <script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
  54. <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
  55. <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
  56. <script type="text/javascript" src="/admin/lib/page/paging.js"></script>
  57. <!--/_footer 作为公共模版分离出去-->
  58. <!--/_footer 作为公共模版分离出去-->
  59. <script type="text/javascript">
  60. $(function(){
  61. setTimeout("$('#info').hide()",3000);
  62. });
  63. /*管理员-添加*/
  64. function admin_add(title, phone){
  65. location.href = '/admin/deposit/create?phone='+phone;
  66. }
  67. /*管理员-编辑*/
  68. function admin_edit(title,id){
  69. location.href = "/admin/admin/teamedit/"+id;
  70. }
  71. function depositlist(title,phone){
  72. location.href = '/admin/deposit/index?phone='+phone;
  73. }
  74. function change_payment_type_click(id){
  75. $("#payment_type_1"+id).hide();
  76. $("#payment_type_2"+id).show();
  77. $("#payment_type_2"+id).focus();
  78. }
  79. function change_payment_type(id){
  80. var payment_type = $("#payment_type_2"+id).val();
  81. $.ajax({
  82. url: '/admin/deposit/editPayType?id='+id+'&payment_type='+payment_type,
  83. type: 'get',
  84. dateType: 'json',
  85. success:function(msg){
  86. if(payment_type==1){
  87. payment_type = '微信支付';
  88. }
  89. if(payment_type==3){
  90. payment_type = '个体户支付';
  91. }
  92. if(payment_type==0){
  93. payment_type = '';
  94. }
  95. $("#payment_type_1"+id).html(payment_type);
  96. $("#payment_type_1"+id).show();
  97. $("#payment_type_2"+id).hide();
  98. }
  99. });
  100. }
  101. $(".change_logistics_id").mouseover(
  102. function(){
  103. $(this).children("span").show();
  104. $(this).children("span").addClass('f-18 c-success');
  105. $(this).mouseout(
  106. function(){
  107. $(this).children("span").hide();
  108. }
  109. );
  110. }
  111. );
  112. $("#page").paging({
  113. pageNo:{{$page}},
  114. totalPage: {{$pages}},
  115. totalSize: {{$count}},
  116. callback: function(num) {
  117. var phone = '{{$phone}}'
  118. location.href='index?page='+num+'&phone='+phone;
  119. }
  120. })
  121. </script>
  122. </body>
  123. @endsection