pay-order-list.blade.php 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. @extends('layouts.base')
  2. @section('content')
  3. @section('title', '支付订单列表')
  4. <div class="right-titpos">
  5. <ul class="add-snav">
  6. <li class="active"><a href="#">支付订单列表</a></li>
  7. </ul>
  8. </div>
  9. <div class='panel panel-default'>
  10. <form action="" method="post" class="form-horizontal" id="form1">
  11. <div class="panel panel-info">
  12. <div class="panel-body">
  13. <div class="form-group col-xs-12 col-sm-3">
  14. <input class="form-control" name="search[member_id]" type="text"
  15. value="{{$search['member_id']}}" placeholder="请输入会员ID">
  16. </div>
  17. <div class="form-group col-xs-12 col-sm-3">
  18. <input class="form-control" name="search[member]" type="text"
  19. value="{{$search['member']}}" placeholder="请输入会员昵称/姓名/手机号">
  20. </div>
  21. <div class="form-group col-xs-12 col-sm-3">
  22. <input class="form-control" name="search[pay_no]" type="text"
  23. value="{{$search['pay_no']}}" placeholder="支付号">
  24. </div>
  25. <div class="form-group col-xs-12 col-sm-2 col-md-2 col-lg-2">
  26. <div class="">
  27. <select name="search[order_status]" class="form-control">
  28. <option value="">订单状态</option>
  29. <option value="P1000" @if ($search['order_status'] == 'P1000') selected @endif >交易成功</option>
  30. <option value="P2000" @if ($search['order_status'] == 'P2000') selected @endif >交易失败</option>
  31. <option value="P3000" @if ($search['order_status'] == 'P3000') selected @endif >交易处理中</option>
  32. <option value="P4000" @if ($search['order_status'] == 'P4000') selected @endif >订单已取消</option>
  33. <option value="P5000" @if ($search['order_status'] == 'P5000') selected @endif >风控阻断</option>
  34. <option value="P6000" @if ($search['order_status'] == 'P6000') selected @endif >订单已关闭</option>
  35. </select>
  36. </div>
  37. </div>
  38. <div class="form-group col-xs-12 col-sm-7 col-lg-4">
  39. <div class="">
  40. <button type="button" id="search" class="btn btn-success "><i class="fa fa-search"></i>搜索</button>
  41. {{--<button type="button" id="export" class="btn btn-info">导出 Excel</button>--}}
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. </form>
  47. </div>
  48. <div class='panel panel-default'>
  49. <div class='panel panel-heading'>
  50. <!-- <a class="btn btn-info" style="color: white" href="#"></a> -->
  51. <span>总数:{{$list->total()}}</span>
  52. </div>
  53. <div class='panel panel-body'>
  54. <table class="table table-hover" style="overflow:visible;">
  55. <thead>
  56. <tr>
  57. <th style='width:3%;text-align: center;'>ID</th>
  58. <th style='width:6%;text-align: center;'>时间</th>
  59. <th style='width:3%;text-align: center;'>会员</th>
  60. <th style='width:6%;text-align: center;'>支付号</th>
  61. <th style='width:8%;text-align: center;'>订单状态</th>
  62. <th style='width:4%;text-align: center;'>错误描述</th>
  63. {{--<th style='width:3%;text-align: center;'>操作</th>--}}
  64. </tr>
  65. </thead>
  66. <tbody>
  67. @foreach($list as $row)
  68. <tr>
  69. <td style="text-align: center;">{{$row->id}}</td>
  70. <td style="text-align: center;">{{$row->created_at}}</td>
  71. <td style="text-align: center;">
  72. <img src='{{$row->hasOneMember->avatar}}' style='width:30px;height:30px;padding:1px;border:1px solid #ccc' />
  73. <br/>
  74. <a href="{!! yzWebUrl('member.member.detail',['id' => $row->hasOneMember->uid])!!}">@if ($row->hasOneMember->nickname) {{$row->hasOneMember->nickname}} @else {{$row->hasOneMember->mobile}} @endif</a>
  75. </td>
  76. <td style="text-align: center;">{{$row->pay_no}}</td>
  77. <td style="text-align: center;">{{$row->order_status_name}}</td>
  78. <td style="text-align: center;">{{$row->err_msg}}</td>
  79. </tr>
  80. @endforeach
  81. </tbody>
  82. </table>
  83. {!! $pager !!}
  84. </div>
  85. </div>
  86. <script language="javascript">
  87. $(function () {
  88. $('#export').click(function () {
  89. $('#form1').attr('action', '{!! yzWebUrl('plugin.converge_pay.admin.card-quick-pay.export') !!}');
  90. $('#form1').submit();
  91. });
  92. $('#search').click(function () {
  93. $('#form1').attr('action', '{!! yzWebUrl('plugin.converge_pay.admin.card-quick-pay.index') !!}');
  94. $('#form1').submit();
  95. });
  96. });
  97. </script>
  98. @endsection