channel_shield_id_white.blade.php 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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.渠道审核屏蔽ID白名单') }}
  12. </h3>
  13. <nav aria-label="breadcrumb">
  14. <ol class="breadcrumb">
  15. <li class="breadcrumb-item"><a href="#">{{ __('auto.渠道管理') }}</a></li>
  16. <li class="breadcrumb-item active" aria-current="page">{{ __('auto.渠道审核屏蔽ID白名单') }}</li>
  17. </ol>
  18. </nav>
  19. </div>
  20. <div class="row">
  21. <div class="col-lg-12 grid-margin stretch-card">
  22. <div class="card">
  23. <div class="card-body">
  24. <h4 class="card-title">{{ __('auto.渠道审核屏蔽ID白名单') }}</h4>
  25. <button type="button" class="btn btn-sm btn-gradient-success btn-icon-text" onclick="add()">
  26. <i class="mdi mdi-plus btn-icon-prepend"></i>
  27. {{ __('auto.添加游戏') }}ID
  28. </button> &nbsp;&nbsp;&nbsp;
  29. {{-- {{ __('auto.开关:') }}--}}
  30. {{-- @if ($State->StatusValue == 1)--}}
  31. {{-- {{ __('auto.已开启') }}--}}
  32. {{-- <button type="button" class="btn btn-sm btn-gradient-dark btn-icon-text" onclick="updateState(2)">--}}
  33. {{-- {{ __('auto.关闭') }}--}}
  34. {{-- </button>--}}
  35. {{-- @else--}}
  36. {{-- {{ __('auto.已关闭') }}--}}
  37. {{-- <button type="button" class="btn btn-sm btn-gradient-dark btn-icon-text" onclick="updateState(1)">--}}
  38. {{-- {{ __('auto.开启') }}--}}
  39. {{-- </button>--}}
  40. {{-- @endif--}}
  41. <table class="table table-bordered">
  42. <thead>
  43. <tr>
  44. <th width="5%">{{ __('auto.已新增的') }}ID</th>
  45. {{-- <th width="8%">{{ __('auto.审核开关') }}</th>--}}
  46. <th width="8%">{{ __('auto.备注信息') }}</th>
  47. <th width="8%">{{ __('auto.操作') }}</th>
  48. </tr>
  49. </thead>
  50. <tbody>
  51. @foreach($list as $k=>$v)
  52. <tr>
  53. <td>{{$v->GameID}}</td>
  54. {{-- <td>--}}
  55. {{-- @if ($v->State == 1)--}}
  56. {{-- {{ __('auto.开放中') }}--}}
  57. {{-- @else--}}
  58. {{-- {{ __('auto.关闭中') }}--}}
  59. {{-- @endif--}}
  60. {{-- @if ($v->State == 1)--}}
  61. {{-- <button type="button" class="btn btn-sm btn-danger"--}}
  62. {{-- onclick="updateState({{$v->UserID}},2)">--}}
  63. {{-- {{ __('auto.关闭') }}--}}
  64. {{-- </button>--}}
  65. {{-- @elseif ($v->State == 2)--}}
  66. {{-- <button type="button" class="btn btn-sm btn-primary"--}}
  67. {{-- onclick="updateState({{$v->UserID}},1)">--}}
  68. {{-- {{ __('auto.开启') }}--}}
  69. {{-- </button>--}}
  70. {{-- @endif--}}
  71. {{-- </td>--}}
  72. <td contentEditable="true"
  73. onblur="remarks(this,{{$v->UserID}})">{{$v->Remarks}}</td>
  74. <td>
  75. <button class="btn btn-sm btn-gradient-dark" onclick="delFunc({{$v->UserID}})">
  76. {{ __('auto.删除') }}
  77. </button>
  78. </td>
  79. </tr>
  80. @endforeach
  81. </tbody>
  82. </table>
  83. <div class="box-footer clearfix" id="pages">
  84. {{ __('auto.总共') }} <b>{{ $list->appends([
  85. 'list'=>$list,
  86. ])->total() }}</b> {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
  87. {!! $list->links() !!}
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. </div>
  93. </div>
  94. </div>
  95. <script>
  96. function updateState(State) {
  97. myConfirm("{{ __('auto.操作不可逆,是否继续') }}?", function () {
  98. myRequest("/admin/channel/channel_shield_id_white_update_state", "post", {State}, function (res) {
  99. layer.msg(res.msg)
  100. setTimeout(function () {
  101. window.location.reload();
  102. }, 2000)
  103. });
  104. });
  105. }
  106. function delFunc(ID) {
  107. myConfirm("{{ __('auto.操作不可逆,是否继续') }}?", function () {
  108. myRequest("/admin/channel/channel_shield_id_white_del/" + ID, "post", {}, function (res) {
  109. layer.msg(res.msg)
  110. setTimeout(function () {
  111. window.location.reload();
  112. }, 2000)
  113. });
  114. });
  115. }
  116. function remarks(obj, ID) {
  117. let Remarks = $(obj).html();
  118. myRequest("/admin/channel/channel_shield_id_white_edit/" + ID, "post", {Remarks}, function (res) {
  119. layer.msg(res.msg)
  120. setTimeout(function () {
  121. window.location.reload();
  122. }, 1500)
  123. });
  124. }
  125. function update(ChannelType, ChannelIndex, AndroidVersion, ChannelName) {
  126. layer.open({
  127. type: 2,
  128. title: '{{ __('auto.添加备注') }}',
  129. shadeClose: true,
  130. shade: 0.8,
  131. area: ['50%', '50%'],
  132. content: '/admin/channel/update/' + ChannelType + '?ChannelIndex=' + ChannelIndex + '&ChannelName=' + ChannelName + '&AndroidVersion=' + AndroidVersion
  133. });
  134. }
  135. function add() {
  136. layer.open({
  137. type: 2,
  138. title: '{{ __('auto.添加') }}',
  139. shadeClose: true,
  140. shade: 0.8,
  141. area: ['50%', '50%'],
  142. content: '/admin/channel/channel_shield_id_white_add'
  143. });
  144. }
  145. </script>
  146. @endsection