game_list.blade.php 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. @extends('base.base')
  2. @section('base')
  3. <!-- 内容区域 -->
  4. <style type="text/css">
  5. .table th{
  6. padding: 0.8375rem;
  7. vertical-align: top;
  8. border-top: 1px solid #ebedf2;
  9. }
  10. .card{
  11. width: 100%;
  12. /*使用overflow-y:auto剪裁,详情请见w3cschool
  13. http://www.w3school.com.cn/cssref/pr_overflow-y.asp
  14. */
  15. overflow-y: auto;
  16. }
  17. .card table{
  18. width: 120%;
  19. border-collapse:collapse;
  20. }
  21. .card table tr{
  22. border-bottom: 0.01rem solid #B2B2B2;
  23. }
  24. .card table tr td span{
  25. width: 1.32rem;
  26. height: 0.18rem;
  27. display: run-in;
  28. background-color: red;
  29. }
  30. </style>
  31. <div class="main-panel">
  32. <div class="content-wrapper">
  33. <div class="page-header">
  34. <h3 class="page-title">
  35. <span class="page-title-icon bg-gradient-primary text-white mr-2">
  36. <i class="mdi mdi-settings"></i>
  37. </span>
  38. {{ __('auto.游戏日志') }}
  39. </h3>
  40. <nav aria-label="breadcrumb">
  41. <ol class="breadcrumb">
  42. <li class="breadcrumb-item"><a href="#">{{ __('auto.金币场管理') }}</a></li>
  43. <li class="breadcrumb-item active" aria-current="page">{{ __('auto.游戏日志') }}</li>
  44. </ol>
  45. </nav>
  46. </div>
  47. <div class="row">
  48. <div class="col-lg-12 grid-margin stretch-card">
  49. <div class="card">
  50. <div class="card-body">
  51. <h4 class="card-title">{{ __('auto.游戏日志') }}</h4>
  52. <form class="well form-inline margin-top-20" method="get" action='/admin/gold/game'>
  53. <span style="padding-left: 5px" >{{ __('auto.游戏:') }}</span >
  54. <select class="form-control" name="kind_id" value="{{$kind_id}}" id="select" onchange="gradeChange(this.options[this.options.selectedIndex].value)">
  55. <option value="">{{ __('auto.选择游戏') }}</option>
  56. @foreach($game_name as $k=>$v)
  57. <option value="{{$k}}" @if($k==$kind_id) selected @endif >{{$v}}</option>
  58. @endforeach
  59. </select>
  60. <span style="padding-left: 5px" >{{ __('auto.房间:') }}</span >
  61. <select class="form-control" name="game_level" value="" id="game_level">
  62. <option value="">{{ __('auto.选择房间') }}</option>
  63. @foreach($room_list as $k=>$v)
  64. <option value="{{$v->ServerID}}" @if($v->ServerID==$game_level) selected @endif>{{$v->ServerName}}</option>
  65. @endforeach
  66. </select> &nbsp;&nbsp;
  67. <spen style="padding-left: 10px" >{{ __('auto.选择时间:') }}</spen>
  68. <input type="date" step="01" name="start_time" class="form-control" value="{{$start_time}}" />&nbsp;&nbsp;
  69. <input type="date" step="01" name="end_time" class="form-control" value="{{$end_time}}" />&nbsp;&nbsp;
  70. <input type="submit" class="btn btn-sm btn-gradient-dark btn-icon-text" value="{{ __('auto.搜索') }}"/>&nbsp;&nbsp;
  71. <a href="/admin/gold/game" class="btn btn-sm btn-gradient-warning btn-icon-text">{{ __('auto.清空') }}</a>&nbsp;&nbsp;
  72. <a href="/admin/gold/game?excel=1&start_time={{$start_time}}&end_time={{$end_time}}&kind_id={{$kind_id}}&room_type={{$room_type}}" class="btn btn-sm btn-gradient-light btn-icon-text">{{ __('auto.导出') }}</a>
  73. </form>
  74. <table class="table table-bordered">
  75. <thead>
  76. <tr>
  77. <th width="6%">{{ __('auto.时间') }}</th>
  78. <th width="4%">{{ __('auto.星期') }}</th>
  79. <th width="6%">{{ __('auto.游戏总局数') }}</th>
  80. <th width="6%">{{ __('auto.参游人次') }}</th>
  81. <th width="6%">{{ __('auto.人均局数') }}</th>
  82. <th width="6%">{{ __('auto.破产用户数') }}</th>
  83. <th width="6%">{{ __('auto.破产率') }}</th>
  84. <th width="6%">{{ __('auto.充值用户总局数') }}</th>
  85. <th width="6%">{{ __('auto.充值用户人均局数') }}</th>
  86. <th width="6%">{{ __('auto.登录用户携带金币量') }}</th>
  87. <th width="6%">{{ __('auto.付费用户携带金币量') }}</th>
  88. <th width="6%">{{ __('auto.总流水') }}</th>
  89. <th width="6%">{{ __('auto.总税收') }}</th>
  90. <th width="6%">{{ __('auto.人均流水') }}</th>
  91. <th width="6%">{{ __('auto.均局流水') }}</th>
  92. <th width="6%">{{ __('auto.机器人输赢') }}</th>
  93. <th width="6%">{{ __('auto.税收流水比') }}</th>
  94. </tr>
  95. </thead>
  96. <tbody>
  97. @foreach($list as $k=>$v)
  98. <tr>
  99. <td>{{ $v->RecordDate }}</td>
  100. <td>{{ $v->week }}</td>
  101. <td>{{ $v->PlayCount }}</td>
  102. <td>{{ $v->PlayersCount }}</td>
  103. <td>{{ $v->AverageCount }}</td>
  104. <td>{{ $v->BankruptcyPlayersCount}}</td>
  105. <td>{{ $v->BankruptcyRate}}</td>
  106. <td>{{ $v->PayPlayCount}}</td>
  107. <td>{{ $v->PayAverageCount}}</td>
  108. <td>{{ $v->AllLoginScore}}</td>
  109. <td>{{ $v->PayUserScore}}</td>
  110. <td>{{ $v->AllWorkingScore}}</td>
  111. <td>{{ $v->AllRevenue}}</td>
  112. <td>{{ $v->AverageUserScore}}</td>
  113. <td>{{ $v->AveragePlayScore}}</td>
  114. <td>{{ $v->AndroidScore}}</td>
  115. <td>{{ $v->Percentage}}</td>
  116. </tr>
  117. @endforeach
  118. </tbody>
  119. </table>
  120. <div class="box-footer clearfix">
  121. {{ __('auto.总共') }} <b>{{ $list->appends(['start_time'=>$start_time,'end_time'=>$end_time,'kind_id'=>$kind_id,'room_type'=>$room_type])->total() }}</b> {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
  122. {!! $list->links() !!}
  123. </div>
  124. </div>
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129. </div>
  130. <script type="text/javascript">
  131. function gradeChange(value){
  132. console.log(value)
  133. myRequest("/admin/gold/roomlist","post",{'GameID':value},function(res){
  134. // layer.msg(res.msg)
  135. var data = res.data
  136. var html = ''
  137. for (var i of data){
  138. html += '<option value='+i['ServerID'] +'>'+i['ServerName']+'</option>'
  139. }
  140. $("#game_level").html(html)
  141. });
  142. }
  143. </script>
  144. <script>
  145. // (function(doc, win) {
  146. // var docEl = doc.documentElement,
  147. // isIOS = navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),
  148. // dpr = isIOS ? Math.min(win.devicePixelRatio, 3) : 1,
  149. // dpr = window.top === window.self ? dpr : 1, //被iframe引用时,禁止缩放
  150. // dpr = 1,
  151. // scale = 1 / dpr,
  152. // resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize';
  153. // docEl.dataset.dpr = dpr;
  154. // var metaEl = doc.createElement('meta');
  155. // metaEl.name = 'viewport';
  156. // metaEl.content = 'initial-scale=' + scale + ',maximum-scale=' + scale + ', minimum-scale=' + scale;
  157. // docEl.firstElementChild.appendChild(metaEl);
  158. // var recalc = function() {
  159. // var width = docEl.clientWidth;
  160. // if (width / dpr > 750) {
  161. // width = 750 * dpr;
  162. // }
  163. // // 乘以100,
  164. // px : rem = 100 : 1
  165. // docEl.style.fontSize = 100 * (width / 750) + 'px';
  166. // };
  167. // recalc()
  168. // if (!doc.addEventListener) return;
  169. // win.addEventListener(resizeEvt, recalc, false);
  170. // })(document, window);
  171. </script>
  172. @endsection