userlist.blade.php 25 KB

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