callbackList.blade.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. @extends('admin.layouts')
  2. @section('css')
  3. <link href="/assets/global/vendor/bootstrap-table/bootstrap-table.min.css" type="text/css" rel="stylesheet">
  4. @endsection
  5. @section('content')
  6. <div class="page-content container-fluid">
  7. <div class="panel">
  8. <div class="panel-heading">
  9. <h2 class="panel-title">回调日志
  10. <small>(在线支付)</small>
  11. </h2>
  12. </div>
  13. <div class="panel-body">
  14. <div class="form-row">
  15. <div class="form-group col-lg-3 col-sm-6">
  16. <input type="number" class="form-control" name="out_trade_no" id="out_trade_no"
  17. value="{{Request::get('out_trade_no')}}" placeholder="本地订单号" autocomplete="off"/>
  18. </div>
  19. <div class="form-group col-lg-3 col-sm-6">
  20. <input type="number" class="form-control" name="trade_no" id="trade_no"
  21. value="{{Request::get('trade_no')}}" placeholder="外部订单号" autocomplete="off"/>
  22. </div>
  23. <div class="form-group col-lg-2 col-sm-4">
  24. <select class="form-control" name="type" id="type" onChange="Search()">
  25. <option value="" hidden>支付方式</option>
  26. <option value="f2fpay">当面付</option>
  27. <option value="codepay">码支付</option>
  28. <option value="payjs">PayJs</option>
  29. <option value="bitpayx">麻瓜宝</option>
  30. <option value="paypal">PayPal</option>
  31. <option value="epay">易支付</option>
  32. </select>
  33. </div>
  34. <div class="form-group col-lg-2 col-sm-4">
  35. <select class="form-control" name="trade_status" id="trade_status" onChange="Search()">
  36. <option value="" hidden>交易状态</option>
  37. <option value="1">成功</option>
  38. <option value="0">失败</option>
  39. </select>
  40. </div>
  41. <div class="form-group col-lg-2 col-sm-4 btn-group">
  42. <button class="btn btn-primary" onclick="Search()">搜 索</button>
  43. <a href="/payment/callbackList" class="btn btn-danger">重 置</a>
  44. </div>
  45. </div>
  46. <table class="text-md-center" data-toggle="table" data-mobile-responsive="true">
  47. <thead class="thead-default">
  48. <tr>
  49. <th> #</th>
  50. <th> 支付方式</th>
  51. <th> 平台订单号</th>
  52. <th> 本地订单号</th>
  53. <th> 交易金额</th>
  54. <th> 状态</th>
  55. </tr>
  56. </thead>
  57. <tbody>
  58. @foreach($list as $vo)
  59. <tr>
  60. <td> {{$vo->id}} </td>
  61. <td> {{$vo->type_label}} </td>
  62. <td> {{$vo->trade_no}} </td>
  63. <td>
  64. <a href="/admin/orderList?order_sn={{$vo->out_trade_no}}"
  65. target="_blank"> {{$vo->out_trade_no}} </a>
  66. </td>
  67. <td> {{$vo->amount}}元</td>
  68. <td> {!! $vo->trade_status_label !!} </td>
  69. <td> {{$vo->created_at}} </td>
  70. </tr>
  71. @endforeach
  72. </tbody>
  73. </table>
  74. </div>
  75. <div class="panel-footer">
  76. <div class="row">
  77. <div class="col-sm-4">
  78. 共 <code>{{$list->total()}}</code> 个账号
  79. </div>
  80. <div class="col-sm-8">
  81. <nav class="Page navigation float-right">
  82. {{$list->links()}}
  83. </nav>
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. @endsection
  90. @section('script')
  91. <script src="/assets/global/vendor/bootstrap-table/bootstrap-table.min.js" type="text/javascript"></script>
  92. <script src="/assets/global/vendor/bootstrap-table/extensions/mobile/bootstrap-table-mobile.min.js"
  93. type="text/javascript"></script>
  94. <script type="text/javascript">
  95. $(document).ready(function () {
  96. $('#type').val({{Request::get('type')}});
  97. $('#trade_status').val({{Request::get('trade_status')}});
  98. });
  99. //回车检测
  100. $(document).on("keypress", "input", function (e) {
  101. if (e.which === 13) {
  102. Search();
  103. return false;
  104. }
  105. });
  106. // 搜索
  107. function Search() {
  108. window.location.href = '/payment/callbackList?out_trade_no=' + $("#trade_no").val() + '&trade_no=' + $("#out_trade_no").val() + '&type=' + $("#type option:selected").val() + '&trade_status=' + $("#trade_status option:selected").val();
  109. }
  110. </script>
  111. @endsection