score_change.blade.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  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-wrench"></i>
  10. </span>
  11. {{ __('auto.会员金额变化明细') }}
  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.会员金额变化明细') }}</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.会员金额变化明细') }}</h4>
  25. <form class="well form-inline margin-top-20" method="get" action='/admin/user/score_change'>
  26. <spen style="padding-left: 10px">{{ __('auto.变化原因:') }}</spen>
  27. {{-- <input class="form-control" type="text" name="describe" style="width: 10%; " value="{{$describe}}" placeholder="{{ __('auto.输入变化原因') }}">--}}
  28. <select name="describe" id="" class="form-control">
  29. <option value="">{{ __('auto.请选择原因') }}</option>
  30. <option value="-1" @if (-1 == $describe)
  31. selected
  32. @endif>{{ __('auto.全部彩金') }}
  33. </option>
  34. @foreach($Reason as $v)
  35. <option value="{{$v->Reason}}" @if ($v->Reason == $describe)
  36. selected
  37. @endif>{{$v->Describe}}</option>
  38. @endforeach
  39. </select>
  40. <span style="padding-left: 10px">{{ __('auto.会员ID:') }}</span>
  41. <input class="form-control" type="text" name="UserID" style="width: 10%; "
  42. value="{{$UserID}}" placeholder="{{ __('auto.输入会员') }}ID">
  43. <spen style="padding-left: 10px">{{ __('auto.选择时间:') }}</spen>
  44. <input type="date" step="01" name="start_time" class="form-control"
  45. value="{{$start_time}}"/>&nbsp;&nbsp;
  46. <input type="date" step="01" name="end_time" class="form-control"
  47. value="{{$end_time}}"/>&nbsp;&nbsp;
  48. <spen style="padding-left: 10px">{{ __('auto.变化金豆范围:') }}</spen>
  49. <input type="number" value="{{$ChangeScoreMin}}" style="color: black;width: 10%;"
  50. class="form-control required" name="ChangeScoreMin">-
  51. <input type="number" value="{{$ChangeScoreMax}}" style="color: black;width: 10%;"
  52. class="form-control required" name="ChangeScoreMax">
  53. <input type="hidden" name="ChangeScoreSort" value="{{$ChangeScoreSort}}">
  54. <input type="submit" class="btn btn-sm btn-gradient-dark btn-icon-text" value="{{ __('auto.搜索') }}"/>&nbsp;&nbsp;
  55. <a href="/admin/user/score_change"
  56. class="btn btn-sm btn-gradient-warning btn-icon-text">{{ __('auto.重置') }}</a>&nbsp;&nbsp;
  57. <!-- <a href="/admin/user/list/" class="btn btn-sm btn-gradient-info btn-icon-text">返回</a> -->
  58. </form>
  59. <table class="table table-bordered">
  60. <thead>
  61. <tr>
  62. <th>{{ __('auto.会员') }}ID</th>
  63. <th>{{ __('auto.金额变化时间') }}</th>
  64. <th>{{ __('auto.变化原因') }}</th>
  65. <th>{{ __('auto.变化前金豆') }}</th>
  66. <th>
  67. <div class="ChangeScore">
  68. {{ __('auto.变化金豆') }}
  69. <svg t="1611284352657" class="icon2" onclick="ChangeScoreSort(this,'asc')"
  70. viewBox="0 0 1024 1024" version="1.1"
  71. xmlns="http://www.w3.org/2000/svg" p-id="4118" width="14">
  72. <path
  73. d="M541.866667 285.866667l345.6 345.6c17.066667 17.066667 17.066667 42.666667 0 59.733333-8.533333 8.533333-19.2 12.8-29.866667 12.8H168.533333c-23.466667 0-42.666667-19.2-42.666666-42.666667 0-10.666667 4.266667-21.333333 12.8-29.866666l343.466666-345.6c17.066667-17.066667 42.666667-17.066667 59.733334 0z"
  74. p-id="4119" fill="#707072">
  75. </path>
  76. </svg>
  77. <svg t="1611283709864" class="icon1" onclick="ChangeScoreSort(this,'desc')"
  78. viewBox="0 0 1024 1024" version="1.1"
  79. xmlns="http://www.w3.org/2000/svg" p-id="3148" width="14">
  80. <path
  81. d="M482.133333 738.133333L136.533333 392.533333c-17.066667-17.066667-17.066667-42.666667 0-59.733333 8.533333-8.533333 19.2-12.8 29.866667-12.8h689.066667c23.466667 0 42.666667 19.2 42.666666 42.666667 0 10.666667-4.266667 21.333333-12.8 29.866666L541.866667 738.133333c-17.066667 17.066667-42.666667 17.066667-59.733334 0z"
  82. p-id="3149" fill="#707071">
  83. </path>
  84. </svg>
  85. </div>
  86. </th>
  87. <th>{{ __('auto.变化后金豆') }}</th>
  88. <th>{{ __('auto.操作人') }}</th>
  89. </tr>
  90. </thead>
  91. <tbody>
  92. @foreach($list as $k=>$v)
  93. <tr>
  94. <td style="width: 13%">
  95. {{-- <a href="/admin/global/id_find?UserID={{$v->UserID}}">--}}
  96. {{-- {{$v->GameID}}--}}
  97. {{-- </a>--}}
  98. <a href="javascript:void(0)" onclick="idFindFunc({{$v->UserID}})">{{$v->GameID}}</a>
  99. </td>
  100. <td style="width: 13%">{{ $v->UpdateTime }}</td>
  101. <td style="width: 10%">
  102. {{ $v->Describe}} <br>
  103. {{$v->ServerName}}
  104. </td>
  105. <td style="width: 10%">{{ $v->BeforeScore}}</td>
  106. <td style="width: 10%">{{ $v->ChangeScore}}</td>
  107. <td style="width: 10%">{{ $v->AfterScore}}</td>
  108. <td style="width: 10%">{{ __('auto.系统') }}</td>
  109. </tr>
  110. @endforeach
  111. </tbody>
  112. </table>
  113. <div class="box-footer clearfix">
  114. {{ __('auto.总共') }}
  115. <b>{{ $list->appends([
  116. 'describe'=>$describe,
  117. 'UserID'=>$UserID,
  118. 'start_time'=>$start_time,
  119. 'end_time'=>$end_time,
  120. 'ChangeScoreMin' => $ChangeScoreMin,
  121. 'ChangeScoreMax' => $ChangeScoreMax,
  122. 'ChangeScoreSort' => $ChangeScoreSort
  123. ])->total() }}</b>
  124. {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
  125. {!! $list->links() !!}
  126. </div>
  127. </div>
  128. </div>
  129. </div>
  130. </div>
  131. </div>
  132. </div>
  133. <script>
  134. var data_obj = {
  135. 'describe': "{{$describe}}",
  136. 'UserID':"{{$UserID}}",
  137. 'start_time':"{{$start_time}}",
  138. 'end_time':"{{$end_time}}",
  139. 'ChangeScoreMax':"{{$ChangeScoreMax}}",
  140. 'ChangeScoreMin':"{{$ChangeScoreMin}}"
  141. }
  142. function idFindFunc(UserID) {
  143. var page = layer.open({
  144. type: 2,
  145. title: '{{ __('auto.用户控制面板') }}',
  146. shadeClose: true,
  147. shade: 0.8,
  148. area: ['100%', '100%'],
  149. content: '/admin/global/id_find?UserID=' + UserID+'&OpenPage=1'
  150. });
  151. }
  152. var that = this
  153. function ChangeScoreSort(obj, val) {
  154. if (val == 'asc') {
  155. $(".ChangeScore svg:eq(1)").children('path').attr('fill', '#707071');
  156. $(obj).children('path').attr('fill', 'red')
  157. } else {
  158. $(obj).children('path').attr('fill', 'red')
  159. $(".ChangeScore svg:eq(0)").children('path').attr('fill', '#707071');
  160. }
  161. that.data_obj.ChangeScoreSort = val
  162. $.ajax({
  163. type: "get",
  164. url: "/admin/user/score_change",
  165. headers: {
  166. 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
  167. },
  168. data: that.data_obj,
  169. success: function (msg) {
  170. if (msg) {
  171. $(".main-panel").html(msg)
  172. }
  173. }
  174. })
  175. }
  176. function publish(id) {
  177. myConfirm("{{ __('auto.是否继续') }}?", function () {
  178. var myselect = document.getElementById("state" + id);
  179. var index = myselect.selectedIndex;
  180. var data = {state: myselect.options[index].value}
  181. myRequest("/admin/shop/update/" + id, "post", data, function (res) {
  182. layer.msg(res.msg)
  183. setTimeout(function () {
  184. window.location.reload();
  185. }, 1500)
  186. });
  187. });
  188. }
  189. $('.menu-switch').click(function () {
  190. id = $(this).attr('id');
  191. state = $(this).attr('state');
  192. if (state == "on") {
  193. $('.pid-' + id).hide();
  194. $(this).attr("state", "off")
  195. $(this).removeClass('mdi-menu-down').addClass('mdi-menu-right');
  196. } else {
  197. $('.pid-' + id).show();
  198. $(this).attr("state", "on")
  199. $(this).removeClass('mdi-menu-right').addClass('mdi-menu-down');
  200. }
  201. })
  202. </script>
  203. @endsection