get_info.blade.php 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. @extends('vip.layouts')
  2. @section('content')
  3. <style>
  4. .layui-laydate-range {
  5. width: auto;
  6. }
  7. </style>
  8. <script type="text/html" id="opt">
  9. <div style="float: left; width: 150px;" id="@{{ d.game_type }}">@{{ d.money }}</div>
  10. <a class="layui-btn layui-btn-sm layui-btn-normol" onclick="getAgentMoney('@{{ d.game_type }}')" data-type="reload"
  11. style="margin-left: 5px;opacity: 1; pointer-events: auto;">刷新</a>
  12. </script>
  13. <!---注单管理-->
  14. <div class="layui-row">
  15. <div class="layui-col-xs12 layui-col-sm12 layui-col-md12">
  16. <form class="layui-form rewrite" eventType="eventForm" action="">
  17. <div class="layui-form-item">
  18. <div class="layui-inline">
  19. <label class="layui-form-label">游戏类型</label>
  20. <div class="layui-input-inline" style="width: 200px">
  21. <select name="game_type" id="form_gametype" lay-verify="" autocomplete="off" class="layui-input" eventType=event-query>
  22. <option value="all" @if($game_type=='all') selected @endif eventType=event-query>全部平台</option>
  23. <option value="oggame" @if($game_type=='oggame') selected @endif eventType=event-query>OG视讯</option>
  24. <option value="kygame" @if($game_type=='kygame') selected @endif eventType=event-query>开元棋牌</option>
  25. <option value="aggame" @if($game_type=='aggame') selected @endif eventType=event-query>AG视讯</option>
  26. <option value="lcqpgame" @if($game_type=='lcqpgame') selected @endif eventType=event-query>龙城棋牌</option>
  27. <option value="lygame" @if($game_type=='lygame') selected @endif eventType=event-query>乐游棋牌</option>
  28. <option value="hjgame" @if($game_type=='hjgame') selected @endif eventType=event-query>皇家视讯</option>
  29. </select>
  30. </div>
  31. </div>
  32. <div class="layui-inline">
  33. <a class="layui-btn layui-btn-sm lay-btn-diy" data-type="reload" eventType=event-query-submit
  34. style="opacity: 1; pointer-events: auto;">提交</a>
  35. <a class="layui-btn layui-btn-sm layui-btn-normal reset" data-type="reload"
  36. style="opacity: 1; pointer-events: auto;">重置</a>
  37. <a class="layui-btn layui-btn-sm layui-btn-green set" data-type="reload"
  38. style="opacity: 1; pointer-events: auto;"><i class="layui-icon">ဂ</i></a>
  39. </div>
  40. </div>
  41. </form>
  42. </div>
  43. @push('dataTableJS')
  44. @endpush
  45. @include('vip.datatable')
  46. <link rel="stylesheet" href="{{ asset('/css/untablelist.css') }}" />
  47. </div>
  48. </div>
  49. <script>
  50. /**
  51. * 获取游戏代理商余额
  52. * @param gametype
  53. */
  54. function getAgentMoney(gametype)
  55. {
  56. $('#'+gametype+'').text('获取中...');
  57. $.ajax({
  58. url: '/admin/RgameCash/getAgentMoney',
  59. dataType: 'json',
  60. data: {game_type:gametype},
  61. type: 'post',
  62. success:function(data){
  63. if(data.status == 1)
  64. {
  65. $('#'+gametype+'').text(data.data.money);
  66. }
  67. else
  68. {
  69. $('#'+gametype+'').text('查询失败,请刷新页面重试');
  70. }
  71. }
  72. });
  73. }
  74. getAgentMoney('kygame'); //获取开元棋牌代理商余额
  75. getAgentMoney('lcqpgame'); //获取龙城棋牌代理商余额
  76. getAgentMoney('lygame'); //获取龙城棋牌代理商余额
  77. getAgentMoney('Hjgame'); //获取皇家视讯代理商余额
  78. </script>
  79. @endsection