manualRecords.blade.php 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. @extends('layouts.base')
  2. @section('content')
  3. @section('title', trans('提现记录'))
  4. <style>
  5. .loadEffect{
  6. display:none;
  7. width: 100px;
  8. height: 100px;
  9. position: absolute;
  10. left: 50%;
  11. margin: 0 auto;
  12. margin-top:100px;
  13. }
  14. .loadEffect span{
  15. display: inline-block;
  16. width: 16px;
  17. height: 16px;
  18. border-radius: 50%;
  19. background: lightgreen;
  20. position: absolute;
  21. -webkit-animation: load 1.04s ease infinite;
  22. }
  23. @-webkit-keyframes load{
  24. 0%{
  25. opacity: 1;
  26. }
  27. 100%{
  28. opacity: 0.2;
  29. }
  30. }
  31. .loadEffect span:nth-child(1){
  32. left: 0;
  33. top: 50%;
  34. margin-top:-8px;
  35. -webkit-animation-delay:0.13s;
  36. }
  37. .loadEffect span:nth-child(2){
  38. left: 14px;
  39. top: 14px;
  40. -webkit-animation-delay:0.26s;
  41. }
  42. .loadEffect span:nth-child(3){
  43. left: 50%;
  44. top: 0;
  45. margin-left: -8px;
  46. -webkit-animation-delay:0.39s;
  47. }
  48. .loadEffect span:nth-child(4){
  49. top: 14px;
  50. right:14px;
  51. -webkit-animation-delay:0.52s;
  52. }
  53. .loadEffect span:nth-child(5){
  54. right: 0;
  55. top: 50%;
  56. margin-top:-8px;
  57. -webkit-animation-delay:0.65s;
  58. }
  59. .loadEffect span:nth-child(6){
  60. right: 14px;
  61. bottom:14px;
  62. -webkit-animation-delay:0.78s;
  63. }
  64. .loadEffect span:nth-child(7){
  65. bottom: 0;
  66. left: 50%;
  67. margin-left: -8px;
  68. -webkit-animation-delay:0.91s;
  69. }
  70. .loadEffect span:nth-child(8){
  71. bottom: 14px;
  72. left: 14px;
  73. -webkit-animation-delay:1.04s;
  74. }
  75. </style>
  76. <div class="right-titpos">
  77. @include('layouts.tabs')
  78. <ul class="add-snav">
  79. <li class="active">手动提现记录</li>
  80. </ul>
  81. </div>
  82. {{--<form action="" method="post" class="form-horizontal">--}}
  83. <form action="" method="get" class="form-horizontal" id="form1">
  84. <input type="hidden" name="c" value="site" />
  85. <input type="hidden" name="a" value="entry" />
  86. <input type="hidden" name="m" value="yun_shop" />
  87. <input type="hidden" name="do" value="5201" />
  88. <input type="hidden" name="route" value="plugin.integral.Backend.Modules.Integral.Controllers.manual-records" id="route" />
  89. <div class="panel panel-info">
  90. <div class="panel-body">
  91. <input type="hidden" name="search[status]" value="{{$search['status']}}">
  92. <div class="form-group col-xs-12 col-sm-2 col-md-2 col-lg-2 ">
  93. <div class="">
  94. <input type="text" placeholder="会员ID" class="form-control" name="search[member_id]"
  95. value="{{$search['member_id']}}"/>
  96. </div>
  97. </div>
  98. <div class="form-group col-xs-12 col-sm-2 col-md-2 col-lg-2 ">
  99. <div class="">
  100. <input type="text" placeholder="会员昵称/姓名/手机号码" class="form-control" name="search[realname]"
  101. value="{{$search['realname']}}"/>
  102. </div>
  103. </div>
  104. <div class="form-group col-xs-12 col-sm-2 col-md-2 col-lg-2 ">
  105. <div class="">
  106. <input type="text" placeholder="提现编号" class="form-control" name="search[withdraw_sn]"
  107. value="{{$search['withdraw_sn']}}"/>
  108. </div>
  109. </div>
  110. <div class="form-group col-xs-12 col-sm-2 col-md-2 col-lg-2">
  111. <div class="">
  112. <select name='search[status]' class='form-control'>
  113. <option value=''>提现状态</option>
  114. <option @if($search['status'] == 0) selected @endif value='0'> 待审核 </option>
  115. <option @if($search['status'] == 1) selected @endif value='1'> 已审核 </option>
  116. <option @if($search['status'] == 2) selected @endif value='2'> 已打款 </option>
  117. <option @if($search['status'] == -1) selected @endif value='-1'> 已无效 </option>
  118. <option @if($search['status'] == 3) selected @endif value='3'> 待打款 </option>
  119. </select>
  120. </div>
  121. </div>
  122. <div class="form-group col-xs-12 col-sm-12 col-md-4 col-lg">
  123. <div class="time">
  124. <select name='search[searchtime]' class='form-control'>
  125. <option value='0'
  126. @if($search['searchtime']=='0')
  127. selected
  128. @endif>不搜索时间
  129. </option>
  130. <option value='1'
  131. @if($search['searchtime']=='1')
  132. selected
  133. @endif>搜索时间
  134. </option>
  135. </select>
  136. </div>
  137. <div class="search-select">
  138. {!! app\common\helpers\DateRange::tplFormFieldDateRange('search[times]', [
  139. 'starttime'=>date('Y-m-d H:i', time()),
  140. 'endtime'=>date('Y-m-d H:i', time()),
  141. 'start'=>0,
  142. 'end'=>0
  143. ], true) !!}
  144. </div>
  145. </div>
  146. <div class="form-group ol-md-12 col-lg-4">
  147. <div class="">
  148. <button class="btn btn-success "><i class="fa fa-search"></i> 搜索</button>
  149. <button type="button" name="export" value="1" id="export" class="btn btn-default">导出
  150. Excel
  151. </button>
  152. </div>
  153. </div>
  154. </div>
  155. </div>
  156. </form>
  157. <div class='panel panel-default'>
  158. <div class='panel-body'>
  159. <table class="table">
  160. <thead>
  161. <div>总数:{{$records->total()}}</div>
  162. <hr style="border: 0.5px solid #d2d6de">
  163. <tr>
  164. <th style='width:20%;'>提现编号</th>
  165. <th style='width:10%;'>粉丝</th>
  166. <th style='width:10%;'>姓名</br>手机号码</th>
  167. <th style='width:10%;'>申请金额</th>
  168. <th style='width:10%;'>申请时间</th>
  169. <th style='width:10%;'>提现状态</th>
  170. <th style='width:10%;'>操作</th>
  171. </tr>
  172. </thead>
  173. <tbody>
  174. @foreach($records as $row)
  175. <tr>
  176. <td title="{{$row->withdraw_sn}}" class="tip">{{$row->withdraw_sn}}</td>
  177. <td><img src="{{tomedia($row->hasOneMember['avatar'])}}"
  178. style="width: 30px; height: 30px;border:1px solid #ccc;padding:1px;">
  179. <br/>
  180. {{$row->hasOneMember['nickname']}}</td>
  181. <td>{{$row->hasOneMember['realname']}}<br/>{{$row->hasOneMember['mobile']}}</td>
  182. <td>{{$row->change}}</td>
  183. <td>{{$row->created_at}}</td>
  184. <td>{{$row->status_name}}</td>
  185. <td>
  186. <a class='btn btn-default'
  187. href="{{yzWebUrl('plugin.integral.Backend.Modules.Integral.Controllers.manual-withdraw.detail', ['id' => $row->id])}}" target = "_blank">详情</a>
  188. </td>
  189. </tr>
  190. @endforeach
  191. </tbody>
  192. </table>
  193. {!! $page !!}
  194. </div>
  195. </div>
  196. <script language='javascript'>
  197. $(function () {
  198. $('#export').click(function () {
  199. $('#route').val("plugin.integral.Backend.Modules.Integral.Controllers.manual-records.export");
  200. $('#form1').submit();
  201. $('#route').val("plugin.integral.Backend.Modules.Integral.Controllers.manual-records");
  202. });
  203. $('#fa-search').click(function () {
  204. $('#form1').attr('action', '{!! yzWebUrl('integral.Backend.Modules.Integral.Controllers.manual-records.index') !!}');
  205. $('#form1').submit();
  206. });
  207. $('#all').change(function() {
  208. $(this).parents('.table').find('input[type="checkbox"]').prop('checked',$(this).prop('checked'));
  209. });
  210. $('.withdraw_success').click(function () {
  211. var process_id = $(document).find('.batch_alipay_form input[name="ids"]').val();
  212. if (typeof(process_id) != 'undefined' || process_id != '' || process_id != 0) {
  213. $('#myModal').modal('hide');
  214. $.ajax({
  215. url: '{!! yzWebUrl('finance.withdraw.updateWidthdrawOrderStatus') !!}',
  216. type: 'get',
  217. data: {ids:process_id},
  218. dataType: 'json',
  219. beforeSend: function () {
  220. $('.loadEffect').show();
  221. }
  222. }).done(function (json) {
  223. if (json.status == 1) {
  224. // alert('更新订单状态成功');
  225. location.reload();
  226. } else {
  227. alert('更新订单状态失败');
  228. }
  229. }).fail(function (message) {
  230. console.log(message);
  231. }).always(function () {
  232. $('.loadEffect').hide();
  233. })
  234. }
  235. });
  236. });
  237. </script>
  238. @endsection