aggame_data.blade.php 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. @extends('vip.layouts')
  2. @section('content')
  3. <style>
  4. .layui-laydate-range {
  5. width: auto;
  6. }
  7. .layui-form-switch em {
  8. width: auto;
  9. }
  10. .layui-form-switch {
  11. width: 44px;
  12. line-height: 23px;
  13. }
  14. .layui-form-item .checkbox {
  15. width: auto;
  16. }
  17. .statistics{
  18. margin: 0 auto;
  19. text-align: center;
  20. margin-bottom: 5px;
  21. }
  22. .red{
  23. color: red;
  24. font-weight: bold;
  25. }
  26. .layui-inline{
  27. margin-bottom: 10px;
  28. }
  29. .pull-left{
  30. float: left;
  31. width: 100%;
  32. }
  33. p{line-height: 25px;}
  34. </style>
  35. <!---注单管理-->
  36. <div class="layui-row">
  37. <div class="layui-col-sm12 layui-col-md12 text" >
  38. <div class="layui-form-item">
  39. <div class="layui-inline pull-left" style="margin-bottom: 30px;">
  40. <div class="layui-input-inline" style="width: 100%;" id="AGIN">
  41. <p>
  42. <a class="layui-btn layui-btn-sm" id="btn" onclick="rec()" style="opacity: 1; pointer-events: auto;">下载AG最新流水</a>
  43. <a class="layui-btn layui-btn-disabled" id="btn2" style="display:none; opacity: 1; pointer-events: auto;">下载AG最新流水</a>
  44. (共有5类游戏需要下载)
  45. </p>
  46. <p id="AGIN_txt" style="display: none;">#1:AG电子、真人数据下载中......,请不要做任何操作,耐心等待数据下载完毕。</p>
  47. <p id="AGIN_load" style="display: none;"><img src='/admin/image/loading.gif' /></p>
  48. </div>
  49. </div>
  50. <div class="layui-inline pull-left" style="margin-bottom: 30px;">
  51. <div class="layui-input-inline" style="width: 100%;" id="HUNTER">
  52. <p id="HUNTER_txt" style="display: none;">#2:AG捕鱼数据下载中......,请不要做任何操作,耐心等待数据下载完毕。</p>
  53. <p id="HUNTER_load" style="display: none;"><img src='/admin/image/loading.gif' /></p>
  54. </div>
  55. </div>
  56. <div class="layui-inline pull-left" style="margin-bottom: 30px;">
  57. <div class="layui-input-inline" style="width: 100%;" id="SBTA">
  58. <p id="SBTA_txt" style="display: none;">#3:AG体育数据下载中......,请不要做任何操作,耐心等待数据下载完毕。</p>
  59. <p id="SBTA_load" style="display: none;"><img src='/admin/image/loading.gif' /></p>
  60. </div>
  61. </div>
  62. <div class="layui-inline pull-left" style="margin-bottom: 30px;">
  63. <div class="layui-input-inline" style="width: 100%;" id="XIN">
  64. <p id="XIN_txt" style="display: none;">#4:AG XIN电子数据下载中......,请不要做任何操作,耐心等待数据下载完毕。</p>
  65. <p id="XIN_load" style="display: none;"><img src='/admin/image/loading.gif' /></p>
  66. </div>
  67. </div>
  68. <div class="layui-inline pull-left" style="margin-bottom: 30px;">
  69. <div class="layui-input-inline" style="width: 100%;" id="YOPLAY">
  70. <p id="YOPLAY_txt" style="display: none;">#5:AG街机游戏数据下载中......,请不要做任何操作,耐心等待数据下载完毕。</p>
  71. <p id="YOPLAY_load" style="display: none;"><img src='/admin/image/loading.gif' /></p>
  72. </div>
  73. </div>
  74. <div class="layui-inline pull-leftl" style="display:none; margin-bottom: 30px;" id="download">
  75. <div class="layui-input-inline" style="width: 100%;" >
  76. <p><a class="layui-btn layui-btn-sm" id="save_btn" onclick="saveRec()" style=" opacity: 1; pointer-events: auto;">读取并存储AG最新流水</a></p>
  77. <p id="save_txt" style="display: none;">读取并存储AG最新数据中......,请不要做任何操作,耐心等待数据存储完毕。</p>
  78. <p id="save_load" style="display: none;"><img src='/admin/image/loading.gif' /></p>
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. <script>
  85. function rec()
  86. {
  87. getRec('AGIN',1,'AG电子、真人');
  88. setTimeout(function(){
  89. getRec('HUNTER',2,'AG捕鱼');
  90. },2000);
  91. setTimeout(function(){
  92. getRec('SBTA',3,'AG体育');
  93. },4000);
  94. setTimeout(function(){
  95. getRec('XIN',4,'AG XIN电子');
  96. },6000);
  97. setTimeout(function(){
  98. getRec('YOPLAY',5,'AG街机游戏');
  99. },8000);
  100. }
  101. function getRec(type,num,text)
  102. {
  103. $('#btn').hide();
  104. $('#btn2').show();
  105. $('#'+ type +'_txt').show();
  106. $('#'+ type +'_load').show();
  107. const surl = '{{$host}}/api/aggameDownloadFile?token={{$token}}&type='+ type +'';
  108. $.ajax({
  109. url: surl,
  110. dataType: 'json',
  111. data: {},
  112. type: 'get',
  113. success:function(data){
  114. if(data.status == 1)
  115. {
  116. var txt = '#'+ num +':'+ text +'';
  117. $('#'+ type +'_txt').text(txt+''+data.msg);
  118. $('#'+ type +'_load').hide();
  119. if(type == 'YOPLAY')
  120. {
  121. $('#download').show();
  122. }
  123. }
  124. else
  125. {
  126. layer.msg(data.msg);
  127. }
  128. }
  129. });
  130. }
  131. function saveRec()
  132. {
  133. $('#save_txt').show();
  134. $('#save_load').show();
  135. const surl = '{{$host}}/api/aggameReadFile?token={{$token}}';
  136. $.ajax({
  137. url: surl,
  138. dataType: 'json',
  139. data: {},
  140. type: 'post',
  141. success:function(data){
  142. if(data.status == 1)
  143. {
  144. $('#btn').removeAttr('disabled');
  145. $('#save_btn').hide();
  146. $('#save_txt').text(data.msg);
  147. $('#save_load').hide();
  148. setTimeout(function(){
  149. location.reload();
  150. },2000);
  151. }
  152. else
  153. {
  154. layer.msg(data.msg);
  155. }
  156. }
  157. });
  158. }
  159. </script>
  160. @endsection