statelist.blade.php 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. @extends('base.base')
  2. @section('base')
  3. <!-- 内容区域 -->
  4. <div class="main-panel">
  5. <div class="content-wrapper">
  6. <div class="page-header">
  7. <h3 class="page-title">
  8. <span class="page-title-icon bg-gradient-primary text-white mr-2">
  9. <i class="mdi mdi-settings"></i>
  10. </span>
  11. {{ __('auto.卡茶叶列表') }}
  12. </h3>
  13. </div>
  14. <div class="row">
  15. <div class="col-lg-12 grid-margin stretch-card">
  16. <div class="card">
  17. <div class="card-body">
  18. <table class="table table-bordered">
  19. <thead>
  20. <tr>
  21. <th width="15%">OrderID</th>
  22. <th width="10%">{{ __('auto.用户') }}ID</th>
  23. <th width="15%">{{ __('auto.时间') }}</th>
  24. <th width="5%">{{ __('auto.订单状态') }}</th>
  25. <th width="15%">{{ __('auto.操作') }}</th>
  26. </tr>
  27. </thead>
  28. <tbody>
  29. @foreach($list as $k=>$v)
  30. <tr id="{{$v->OrderId}}">
  31. <td>{{ $v->OrderId }}</td>
  32. <td>
  33. <a href="/admin/global/id_find?UserID={{$v->UserID}}">{{$v->UserID}}</a>
  34. </td>
  35. <td>{{ $v->CreateDate }}</td>
  36. <td>{{ $v->State }}</td>
  37. <td><button type="button"
  38. class="btn btn-sm btn-google btn-icon-text"
  39. onclick="resetOrder('{{$v->OrderId}}')">
  40. {{ __('auto.重置') }}
  41. </button></td>
  42. </tr>
  43. @endforeach
  44. </tbody>
  45. </table>
  46. </div>
  47. </div>
  48. </div>
  49. </div>
  50. </div>
  51. </div>
  52. <script>
  53. function resetOrder(id) {
  54. myRequest("/admin/withdrawal/resetstate", "post", {OrderId:id}, function (res) {
  55. console.log(res)
  56. document.getElementById(res.id).style.display="none"
  57. });
  58. }
  59. </script>
  60. @endsection