You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
2.1 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. @extends('admin.layouts.app')
  2. @section('title', '提现申请列表')
  3. @section('content')
  4. <h2 class="sub-header">提现申请列表</h2>
  5. <form name="listarc"><div class="table-responsive"><table class="table table-hover">
  6. <thead><tr class="info">
  7. <th>ID</th>
  8. <th>用户名</th>
  9. <th>提现金额</th>
  10. <th>姓名</th>
  11. <th>收款方式</th>
  12. <th>收款账号</th>
  13. <th>申请时间</th>
  14. <th>状态</th>
  15. <th>操作</th>
  16. </tr></thead>
  17. <tbody>
  18. <?php if($posts){foreach($posts as $row){ ?><tr>
  19. <td><?php echo $row->id; ?></td>
  20. <td><?php echo $row->user->user_name; ?><?php if($row->user->mobile){echo '<br>TEL:'.$row->user->mobile;} ?></td>
  21. <td><font color="red"><?php echo $row->money; ?></font></td>
  22. <td><?php echo $row->name; ?></td>
  23. <td><?php echo $row->method; ?></td>
  24. <td>账号:<?php echo $row->account;if($row->bank_name){echo '<br>银行名称:'.$row->bank_name;}if($row->bank_place){echo '<br>开户行:'.$row->bank_place;} ?></td>
  25. <td><?php echo date('Y-m-d H:i:s',$row->add_time); ?></td>
  26. <td><?php echo $row->status_text; ?></td>
  27. <td><?php if($row->status==0){ ?><a href="javascript:change_status(<?php echo $row->id; ?>,'1');">成功</a>&nbsp;<a href="javascript:change_status(<?php echo $row->id; ?>,'0');">拒绝</a><?php } ?></td>
  28. </tr><?php }} ?>
  29. </tbody></table></div><!-- 表格结束 --></form><!-- 表单结束 -->
  30. <nav aria-label="Page navigation">{{ $posts->links() }}</nav>
  31. <script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/layer/layer.js"></script>
  32. <script>
  33. function change_status(id,type)
  34. {
  35. //询问框
  36. layer.confirm('您确定要执行此操作吗?', {
  37. btn: ['确定','取消'] //按钮
  38. }, function(){
  39. var url = window.location.href;
  40. $.post('<?php echo route('admin_userwithdraw_change_status'); ?>',{id:id,type:type},function(res){
  41. if(res.code==0)
  42. {
  43. location.href = url;
  44. }
  45. else
  46. {
  47. }
  48. //提示层
  49. layer.msg(res.msg,{
  50. time: 20000, //2s后自动关闭
  51. });
  52. });
  53. }, function(){
  54. });
  55. }
  56. </script>
  57. @endsection