userlist.blade.php 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437
  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. <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. {{-- @if ($user_tab != '')--}}
  25. {{-- <div>--}}
  26. {{-- <a href="#" onclick="javascript:history.back(-1);">{{ __('auto.返回到上一页') }}</a>--}}
  27. {{-- </div>--}}
  28. {{-- @endif--}}
  29. <h4 class="card-title">{{ __('auto.用户数据') }}</h4>
  30. <form class="well form-inline margin-top-20" method="post" action='/admin/global/userlist'>
  31. <div>
  32. @csrf
  33. <span style="padding-left: 10px" >{{ __('auto.会员ID:') }}</span>
  34. <input class="form-control" type="text" name="GameID" id="GameID" style="width: 10%; " value="{{$gameID}}" >
  35. <span style="padding-left: 10px" >{{ __('auto.设备ID:') }}</span>
  36. <input class="form-control" type="text" name="MachineID" id="MachineID" style="width: 10%; " value="{{$MachineID}}" >
  37. <span style="padding-left: 10px" >{{ __('auto.手机号:') }}</span>
  38. <input class="form-control" type="text" name="PhoneNum" id="RegisterMobile" style="width: 10%; " value="{{$phoneNum}}" >
  39. <span style="padding-left: 10px" >{{ __('auto.上级ID:') }}</span>
  40. <input class="form-control" type="text" name="SpreaderID" id="SpreaderID" style="width: 10%; " value="{{$spreaderID}}" >
  41. <span style="padding-left: 10px" >{{ __('auto.昵称:') }}</span>
  42. <input class="form-control" type="text" name="NickName" id="Compellation" style="width: 10%; " value="{{$nickName}}">
  43. <span style="padding-left: 10px" >{{ __('auto.注册时间:') }}</span>
  44. <input type="datetime-local" step="01" name="start_time" id="start_time" class="form-control" value="{{$startTime}}" onclick="start_times()"/>
  45. <input type="datetime-local" step="01" name="end_time" id='end_time' class="form-control" value="{{$endTime}}" onclick="end_times()"/><br>
  46. <span style="padding-left: 10px" >{{ __('auto.上次离线时间') }}</span>
  47. <input type="datetime-local" step="01" name="start_logintime" id="start_logintime" class="form-control" value="{{$startLoginTime}}" onclick="start_times('start_logintime')"/>
  48. <input type="datetime-local" step="01" name="end_logintime" id='end_logintime' class="form-control" value="{{$endLoginTime}}" onclick="end_times('end_logintime')"/><br>
  49. <span style="padding-left: 10px" >{{ __('auto.渠道名称:') }}</span>
  50. <select class="form-control" name="channel" value="{{$channel}}" style="color: black">
  51. <option value="">{{ __('auto.全部渠道') }}</option>
  52. @foreach($channels as $key=>$val)
  53. <option value="{{$val}}" @if ( $channel == $val )
  54. selected
  55. @endif>{{$val}}</option>
  56. @endforeach
  57. </select> &nbsp;&nbsp;
  58. <input type="hidden" name="user_tab" value="{{$user_tab}}">
  59. <span style="padding-left: 10px" >VIP{{ __('auto.筛选:') }}</span>
  60. <select class="form-control" name="vip" value="{{$vip}}" style="color: black">
  61. <option value="">{{ __('auto.请选择') }}</option>
  62. @for($i=1;$i<=6;$i++)
  63. @if($vip==$i)
  64. <option value="{{$i}}" selected>VIP {{$i}}</option>
  65. @else
  66. <option value="{{$i}}" >VIP {{$i}}</option>
  67. @endif
  68. @endfor
  69. </select> &nbsp;&nbsp;
  70. <span style="padding-left: 10px" >{{ __('auto.账号筛选:') }}</span>
  71. <select class="form-control" name="accounts_type" value="{{$accounts_type}}" style="color: black">
  72. <option value="">{{ __('auto.请选择') }}</option>
  73. @foreach($webLogonTimes as $key=>$val)
  74. @if($accounts_type==$key)
  75. <option value="{{$key}}" selected>{{$val}}</option>
  76. @else
  77. <option value="{{$key}}" >{{$val}}</option>
  78. @endif
  79. @endforeach
  80. </select> &nbsp;&nbsp;
  81. <span style="padding-left: 10px" >{{ __('auto.包名筛选:') }}</span>
  82. <select class="form-control" name="PackgeName" value="{{$packgeName}}" style="color: black">
  83. <option value="">{{ __('auto.请选择') }}</option>
  84. @foreach($ChannelPackageName as $val)
  85. @if($packgeName==$val)
  86. <option value="{{$val}}" selected>{{$val}}</option>
  87. @else
  88. <option value="{{$val}}" >{{$val}}</option>
  89. @endif
  90. @endforeach
  91. </select> &nbsp;&nbsp;
  92. <a href="/admin/global/userlist" class="btn btn-sm btn-gradient-warning btn-icon-text">{{ __('auto.清空') }}</a>
  93. <input type="submit" class="btn btn-sm btn-gradient-dark btn-icon-text" value="{{ __('auto.搜索') }}"/>&nbsp;&nbsp;
  94. <br>
  95. <input type="hidden" value="{{$quickSearch}}">
  96. @foreach($typeList as $key=>$val)
  97. <input class="form-control" type="checkbox" name="obj" id="radio" value="{{$key}}" @if (strpos(','.$quickSearch.',', ','.$key.',') !== false)
  98. checked
  99. @endif onclick="quickSearchFun(this,{{$key}})">{{$val}}
  100. @endforeach
  101. <a href="/admin/global/userlist?excel=1
  102. &GameID={{$gameID}}
  103. &PhoneNum={{$phoneNum}}
  104. &SpreaderID={{$spreaderID}}
  105. &NickName={{$nickName}}
  106. &start_time={{$startTime}}
  107. &end_time={{$endTime}}
  108. &vip={{$vip}}
  109. &channel={{$channel}}"
  110. class="btn btn-sm btn-gradient-light btn-icon-text">{{ __('auto.导出') }}</a>
  111. @if (!session()->has('hidden'))
  112. <input type="button" onclick="ban(1)" class="btn btn-sm btn-gradient-dark btn-icon-text" value="{{ __('auto.批量封号') }}"/>&nbsp;&nbsp;
  113. <input type="button" onclick="ban(2)" class="btn btn-sm btn-gradient-dark btn-icon-text" value="{{ __('auto.批量解封') }}"/>&nbsp;&nbsp;
  114. @endif
  115. </div>
  116. </form>
  117. <table class="table table-bordered">
  118. <thead>
  119. <tr>
  120. <th width="6%">
  121. <center>
  122. <button type="button" id="quan" onclick="checkboxFunc()" class="btn btn-sm btn-gradient-primary btn-icon-text">
  123. {{ __('auto.反选') }}
  124. </button>
  125. </center>
  126. </th>
  127. <th width="6%">{{ __('auto.会员') }}ID</th>
  128. <th width="4%">{{ __('auto.昵称') }}</th>
  129. <th width="6%">{{ __('auto.手机号') }}</th>
  130. <th width="9%">
  131. <div class="sort_money">
  132. {{ __('auto.余额') }}
  133. <svg t="1611284352657" class="icon2" onclick="sort_money_func(this,'asc')"
  134. viewBox="0 0 1024 1024" version="1.1"
  135. xmlns="http://www.w3.org/2000/svg" p-id="4118" width="14">
  136. <path
  137. 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"
  138. p-id="4119" fill="#707072">
  139. </path>
  140. </svg>
  141. <svg t="1611283709864" class="icon1" onclick="sort_money_func(this,'desc')"
  142. viewBox="0 0 1024 1024" version="1.1"
  143. xmlns="http://www.w3.org/2000/svg" p-id="3148" width="14">
  144. <path
  145. 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"
  146. p-id="3149" fill="#707071">
  147. </path>
  148. </svg>
  149. </div>
  150. </th>
  151. <th width="6%">{{ __('auto.总输赢') }}</th>
  152. <th width="6%">{{ __('auto.最高分') }}</th>
  153. <th width="6%">{{ __('auto.最多赢分') }}</th>
  154. <th width="6%">{{ __('auto.今日/历史充值') }}</th>
  155. <th width="6%">{{ __('auto.今日/历史茶叶') }}</th>
  156. <th width="6%">{{ __('auto.今日/历史彩金') }}</th>
  157. <th width="6%">{{ __('auto.可茶叶金额') }}</th>
  158. <th width="6%">IP</th>
  159. <th width="6%">{{ __('auto.在线状态') }}</th>
  160. <th width="6%">{{ __('auto.上次离线时间') }}</th>
  161. <th width="6%">{{ __('auto.注册日期') }}({{ __('auto.当地') }})</th>
  162. {{-- <th width="6%">{{ __('auto.注册日期') }}({{ __('auto.中国') }})</th>--}}
  163. <th width="6%">{{ __('auto.渠道名称') }}</th>
  164. <th width="6%">{{ __('auto.包名') }}</th>
  165. <th width="6%">{{ __('auto.账号') }}</th>
  166. <th width="8%">{{ __('auto.账号状态') }}</th>
  167. <th width="6%">{{ __('auto.设置') }}</th>
  168. </tr>
  169. </thead>
  170. <tbody class="search_checkbox">
  171. @foreach($list as $k=>$item)
  172. <tr>
  173. <td>
  174. <input class="form-control" type="checkbox" name="checkbox" id="{{$item->UserID}}" value="" >
  175. </td>
  176. <td>
  177. <a href="/admin/global/id_find?UserID={{$item->UserID}}">
  178. {{$item->GameID}}
  179. </a>
  180. </td>
  181. <td>{{$item->NickName}}</td>
  182. <td>{{$item->PhoneNum}}</td>
  183. <td>{{ $item->Score }}</td>
  184. <td>{{ $item->totalScore ?? 0 }}</td>
  185. <td>{{ $item->MaxScore ?? 0 }}</td>
  186. <td>{{ $item->MaxWinScore ?? 0 }}</td>
  187. <td>{{$item->todayRecharge ?? 0}}/{{ $item->totalRecharge ?? 0 }}</td>
  188. <td>{{$item->todayWithdraw ?? 0}}/{{ $item->totalWithdraw ?? 0 }}</td>
  189. <td>{{$item->todayHandsel ?? 0}}/{{ $item->totalHandsel ?? 0 }}</td>
  190. <td>{{$item->CashAble}}</td>
  191. <td>
  192. <p>{{$item->RegisterIP}}({{ipAddress($item->RegisterIP)}})</p>
  193. </td>
  194. <td>
  195. @if($item->ServerName != null)
  196. {{ __('auto.游戏中') }}({{$item->ServerName}})
  197. @else
  198. {{ __('auto.离线') }}
  199. @endif
  200. </td>
  201. <td>{{ date('Y-m-d H:i:s',strtotime($item->LastLogonDate))}}</td>
  202. <td>{{ date('Y-m-d H:i:s',strtotime($item->RegisterDate))}}</td>
  203. {{-- <td>{{ dateConvert($item->RegisterDate) }}</td>--}}
  204. <td>{{$item->Channel}}</td>
  205. <td></td>
  206. <td>
  207. @if ($item->WebLogonTimes == 2 || !empty($item->PhoneNum) )
  208. {{ __('auto.手机号') }}
  209. @elseif($item->WebLogonTimes == 0)
  210. facebook
  211. @elseif($item->WebLogonTimes == 1)
  212. {{ __('auto.游客') }}
  213. @endif
  214. </td>
  215. <td>{!! $item->Nullity !!}</td>
  216. <td>
  217. <button type="button" class="btn btn-sm btn-gradient-dark btn-icon-text" onclick="update({{$item->UserID}})">
  218. {{ __('auto.修改') }}
  219. <i class="mdi mdi-file-check btn-icon-append"></i>
  220. </button>
  221. </td>
  222. </tr>
  223. @endforeach
  224. </tbody>
  225. </table>
  226. <div class="box-footer clearfix" id = "pages">
  227. {{ __('auto.总共') }} <b>{{ $list->appends([
  228. 'list'=>$list,
  229. 'PhoneNum'=>$phoneNum,
  230. 'SpreaderID'=>$spreaderID,
  231. 'NickName'=>$nickName,
  232. 'start_time'=>$startTime,
  233. 'end_time'=>$endTime,
  234. 'start_logintime'=>$startLoginTime,
  235. 'end_logintime'=>$endLoginTime,
  236. 'vip'=>$vip,
  237. 'accounts_type' => $accounts_type,
  238. 'Score' => $score,
  239. 'user_tab' => $user_tab,
  240. 'channel' => $channel,
  241. 'PackgeName'=>$packgeName,
  242. 'quickSearch' => $quickSearch
  243. ])->total() }}</b> {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
  244. {!! $list->links() !!}
  245. </div>
  246. </div>
  247. </div>
  248. </div>
  249. </div>
  250. </div>
  251. </div>
  252. <script type="text/javascript">
  253. var quickSearch = '';
  254. function quickSearchFun(obj,key){
  255. if ($(obj).is(':checked')){
  256. quickSearch = quickSearch + key + ','
  257. }else {
  258. quickSearch = quickSearch.replace(key+',','')
  259. }
  260. $.ajax({
  261. type:"get",
  262. url:"/admin/global/userlist",
  263. headers: {
  264. 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
  265. },
  266. data:{quickSearch},
  267. success:function(msg){
  268. if(msg){
  269. $(".main-panel").html(msg)
  270. }
  271. }
  272. })
  273. }
  274. </script>
  275. <script>
  276. var search_arr = [];
  277. var search_arr1 = [];
  278. var first_str = '';
  279. var data = {
  280. 'GameID':"{{$gameID}}",
  281. 'PhoneNum':"{{$phoneNum}}",
  282. 'SpreaderID':"{{$spreaderID}}",
  283. 'NickName':"{{$nickName}}",
  284. 'start_time':"{{$startTime}}",
  285. 'end_time':"{{$endTime}}",
  286. 'obj':"{{$obj}}",
  287. 'vip':"{{$vip}}",
  288. 'accounts_type':"{{$accounts_type}}",
  289. 'Score':"{{$score}}",
  290. 'channel':"{{$channel}}",
  291. 'user_tab':"{{$user_tab}}",
  292. 'PackgeName':"{{$packgeName}}",
  293. 'quickSearch':"{{$quickSearch}}",
  294. };
  295. //同时获取该checkbox后面的值,以在后面的name属性为value的input里面的值,并且拼接成json字符串
  296. function start_times() {
  297. getFormat('00', '00', '00');
  298. document.getElementById("start_time").value = format
  299. }
  300. function end_times() {
  301. getFormat('23', '59', '59');
  302. document.getElementById("end_time").value = format
  303. }
  304. function update(id){
  305. var page = layer.open({
  306. type: 2,
  307. title: '{{ __('auto.修改配置') }}',
  308. shadeClose: true,
  309. shade: 0.8,
  310. area: ['70%', '90%'],
  311. content: '/admin/global/user_update?id='+id
  312. });
  313. }
  314. function del(id){
  315. myConfirm("{{ __('auto.删除操作不可逆,是否继续') }}?",function(){
  316. myRequest("/admin/accusation/del/"+id,"post",{},function(res){
  317. layer.msg(res.msg)
  318. setTimeout(function(){
  319. window.location.reload();
  320. },1500)
  321. });
  322. });
  323. }
  324. function checkboxFunc(){
  325. var num=document.getElementsByName('checkbox');
  326. for(var i=0;i<num.length;i++){
  327. if(num[i].checked){
  328. num[i].checked=false;
  329. }else{
  330. num[i].checked=true;
  331. }
  332. }
  333. }
  334. function ban(ban){
  335. //1封号 2解封
  336. var num=document.getElementsByName('checkbox');
  337. var str='';
  338. for(var i=0;i<num.length;i++){
  339. if(num[i].checked){
  340. str=str+num[i].id+',';
  341. }
  342. }
  343. if (str==''){
  344. alert('{{ __('auto.请选择要操作的数据') }}');return false;
  345. }
  346. var id=str.substr(0,str.length-1);
  347. myConfirm("{{ __('auto.是否继续账户操作') }}?",function(){
  348. myRequest("/admin/global/ban","post",{id:id,ban:ban},function(res){
  349. layer.msg(res.msg)
  350. setTimeout(function(){
  351. window.location.reload();
  352. },1500)
  353. });
  354. });
  355. return false;
  356. }
  357. function sort_money_func(obj, val) {
  358. if (val == 'asc') {
  359. $(".sort_money svg:eq(1)").children('path').attr('fill', '#707071');
  360. $(obj).children('path').attr('fill', 'red')
  361. } else {
  362. $(obj).children('path').attr('fill', 'red')
  363. $(".sort_money svg:eq(0)").children('path').attr('fill', '#707071');
  364. }
  365. data.Score = val
  366. $.ajax({
  367. type: "post",
  368. url: "/admin/global/userlist",
  369. headers: {
  370. 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
  371. },
  372. data: data,
  373. success: function (msg) {
  374. if (msg) {
  375. $(".main-panel").html(msg)
  376. }
  377. }
  378. })
  379. }
  380. </script>
  381. @endsection