rechargeRecords.blade.php 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. @extends('layouts.base')
  2. @section('title', '充值')
  3. @section('content')
  4. <link href="{{static_url('yunshop/balance/balance.css')}}" media="all" rel="stylesheet" type="text/css"/>
  5. <div id="member-blade" class="rightlist">
  6. <div class="panel panel-info">
  7. <div class="panel-heading">筛选</div>
  8. <div class="panel-body">
  9. <form action="" method="post" class="form-horizontal" role="form" id="form1">
  10. <div class="form-group col-sm-11 col-lg-11 col-xs-12">
  11. <div class="">
  12. <div class='input-group'>
  13. <input class="form-control" name="search[order_sn]" type="text" value="{{ $search['order_sn'] ?? ''}}" placeholder="充值单号">
  14. <input class="form-control" name="search[realname]" type="text" value="{{ $search['realname'] ?? ''}}" placeholder="会员ID/会员姓名/昵称/手机号">
  15. <div class='form-input'>
  16. <p class="input-group-addon price">充值区间</p>
  17. <input class="form-control price" name="search[min_value]" type="text" value="{{ $search['min_value'] ?? ''}}" placeholder="最小">
  18. <p class="line">—</p>
  19. <input class="form-control price" name="search[max_value]" type="text" value="{{ $search['max_value'] ?? ''}}" placeholder="最大">
  20. </div>
  21. </div>
  22. </div>
  23. </div>
  24. <div class="form-group col-sm-1 col-lg-1 col-xs-12">
  25. <div class="">
  26. <input type="submit" class="btn btn-block btn-success" value="搜索">
  27. </div>
  28. </div>
  29. </form>
  30. </div>
  31. </div>
  32. <div class="clearfix">
  33. <div class="panel panel-default">
  34. <div class="panel-heading">总数:{{ $pageList->total() }}</div>
  35. <div class="panel-body">
  36. <table class="table table-hover" style="overflow:visible;">
  37. <thead class="navbar-inner">
  38. <tr>
  39. <th style='width:15%; text-align: center;'>充值单号</th>
  40. <th style='width:10%; text-align: center;'>粉丝</th>
  41. <th style='width:10%; text-align: center;'>会员信息<br/>手机号</th>
  42. <th style='width:12%; text-align: center;'>充值时间</th>
  43. <th style='width:10%; text-align: center;'>充值方式</th>
  44. <th style='width:10%; text-align: center;'>充值金额<br/>状态</th>
  45. <th style='width:13%; text-align: center;'>备注信息</th>
  46. <th style='width:13%; text-align: center;'>操作</th>
  47. <th style='width:13%; text-align: center;'>查看详情</th>
  48. </tr>
  49. </thead>
  50. <tbody>
  51. @foreach($pageList as $list)
  52. <tr style="text-align: center;">
  53. <td>{{ $list->order_sn }}</td>
  54. <td>
  55. @if($list->member->avatar || $shopSet['headimg'])
  56. <img src='{{ $list->member->avatar ? tomedia($list->member->avatar) : tomedia($shopSet['headimg'])}}' style='width:30px;height:30px;padding:1px;border:1px solid #ccc'/>
  57. <br/>
  58. @endif
  59. {{ $list->member->nickname ? $list->member->nickname : '未更新' }}
  60. </td>
  61. <td>
  62. {{ $list->member->realname }}
  63. <br/>
  64. {{ $list->member->mobile }}
  65. </td>
  66. <td>{{ $list->created_at }}</td>
  67. <td>
  68. @if($list->pay_way == 0)
  69. <span class='label label-default'>后台充值</span>
  70. @elseif($list->pay_way == 1)
  71. <span class='label label-default'>前端充值</span>
  72. @endif
  73. </td>
  74. <td>
  75. {{ $list->change }}
  76. <br/>
  77. @if($list->status == 1)
  78. <span class='label label-success'>充值成功</span>
  79. @elseif($list->status == '-1')
  80. <span class='label label-warning'>充值失败</span>
  81. @else
  82. <span class='label label-default'>申请中</span>
  83. @endif
  84. </td>
  85. <td><a style="color: #0a0a0a" title="{{ $list->remark }}">{{ $list->remark }}</a></td>
  86. <td>
  87. @if($list->pay_way == 1 && $list->status == 0)
  88. <a class="label label-default label-info" onclick="audit({{ $list->id }},-1)">驳回审核</a>
  89. <a class="label label-success" onclick="audit({{ $list->id }},1)" >审核通过</a>
  90. @elseif($list->pay_way == 1 && $list->status == 1)
  91. <a class="label label-success" >已审核通过</a>
  92. @elseif($list->pay_way == 1 && $list->status == -1)
  93. <a class="label label-default" >已审核驳回</a>
  94. @elseif($list->pay_way == 0)
  95. <a class="label label-success" >后台充值</a>
  96. @endif
  97. </td>
  98. <td>
  99. <a class='label label-default label-info' href="{{ yzWebFullUrl('plugin.integral.Backend.Modules.Integral.Controllers.recharge-audit.recharge-details', array('id' => $list->id)) }}">查看详情</a>
  100. </td>
  101. </tr>
  102. @endforeach
  103. </tbody>
  104. </table>
  105. {!! $page !!}
  106. </div>
  107. </div>
  108. </div>
  109. <script>
  110. function audit(id,type) {
  111. $.ajax({
  112. url: "{!! yzWebUrl('plugin.integral.Backend.Modules.Integral.Controllers.recharge-audit.audit') !!}",
  113. type: "post",
  114. data: { id: id, type: type},
  115. cache: false,
  116. success: function (data) {
  117. console.log(data.result);
  118. alert(data.msg);
  119. location.reload();
  120. }
  121. });
  122. }
  123. </script>
  124. @endsection