verify_final.blade.php 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  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. <h4 class="card-title">{{ __('auto.推广佣金已审核单') }}</h4>
  25. <form class="well form-inline margin-top-20" method="get" action='/admin/extension/verify_final'>
  26. <spen style="padding-left: 10px">{{ __('auto.会员ID:') }}</spen>
  27. <input class="form-control" type="text" name="GameID" style="width: 10%; "
  28. value="{{$GameID}}">
  29. <spen style="padding-left: 10px">{{ __('auto.手机号:') }}</spen>
  30. <input class="form-control" type="text" name="mobile" style="width: 10%; "
  31. value="{{$mobile}}">
  32. <spen style="padding-left: 10px">{{ __('auto.上级ID:') }}</spen>
  33. <input class="form-control" type="text" name="SpreaderID" style="width: 10%; "
  34. value="{{$SpreaderID}}">
  35. <spen style="padding-left: 10px">{{ __('auto.昵称:') }}</spen>
  36. <input class="form-control" type="text" name="NickName" style="width: 10%; "
  37. value="{{$NickName}}">
  38. <spen style="padding-left: 10px">{{ __('auto.选择注册时间:') }}</spen>
  39. <input type="datetime-local" step="01" name="start_time" class="form-control"
  40. value="{{$start_time}}" id="start_time" onclick="start_times()"/>&nbsp;&nbsp;
  41. <input type="datetime-local" step="01" name="end_time" class="form-control"
  42. value="{{$end_time}}" id="end_time" onclick="end_times()"/>&nbsp;&nbsp;
  43. <spen style="padding-left: 10px">{{ __('auto.审核通过时间:') }}</spen>
  44. <input type="datetime-local" step="01" name="CreateTimeStart" class="form-control"
  45. value="{{$CreateTimeStart}}" id="CreateTimeStart" onclick="CreateTimeStarts()"/>&nbsp;&nbsp;
  46. <input type="datetime-local" step="01" name="CreateTimeEnd" class="form-control"
  47. value="{{$CreateTimeEnd}}" id="CreateTimeEnd" onclick="CreateTimeEnds()"/>&nbsp;&nbsp;
  48. <span style="padding-left: 10px">{{ __('auto.类型:') }}</span>
  49. <select name="Type" id="" class="form-control">
  50. <option>{{ __('auto.请选择') }}</option>
  51. <option value="1" @if ($Type == 1)
  52. selected
  53. @endif>{{ __('auto.邀请好友注册') }}</option>
  54. <option value="2" @if ($Type == 2)
  55. selected
  56. @endif>{{ __('auto.邀请好友对局') }}</option>
  57. </select>
  58. <input type="submit" class="btn btn-sm btn-gradient-dark btn-icon-text" value="{{ __('auto.搜索') }}"/>&nbsp;&nbsp;
  59. <a href="/admin/extension/verify_final"
  60. class="btn btn-sm btn-gradient-warning btn-icon-text">{{ __('auto.清空') }}</a>&nbsp;&nbsp;
  61. </form>
  62. <br>
  63. <table class="table table-bordered">
  64. <thead>
  65. <tr>
  66. <th>{{ __('auto.会员') }}ID</th>
  67. <th>TA{{ __('auto.的上级') }}ID</th>
  68. <th>{{ __('auto.总奖励') }}</th>
  69. <th>{{ __('auto.历史通过审核金') }}</th>
  70. <th>{{ __('auto.可领金额') }}</th>
  71. <th>{{ __('auto.账号创建时间') }}</th>
  72. <th>{{ __('auto.通过时金额') }}</th>
  73. <th>{{ __('auto.金额类型') }}</th>
  74. <th>{{ __('auto.是否达成额度') }}</th>
  75. <th>{{ __('auto.来源玩家') }}</th>
  76. <th>{{ __('auto.所有下级人数') }}</th>
  77. <th>{{ __('auto.直属下级') }}</th>
  78. <th>{{ __('auto.下下级') }}</th>
  79. <th>{{ __('auto.审核通过时间') }}</th>
  80. <th>{{ __('auto.用户额度达成时间') }}</th>
  81. <th>{{ __('auto.备注') }}</th>
  82. </tr>
  83. </thead>
  84. <tbody>
  85. @foreach($list as $k=>$v)
  86. <tr>
  87. <td>
  88. <a href="/admin/global/id_find?UserID={{$v->UserID}}">
  89. {{$v->GameID}}
  90. </a>
  91. </td>
  92. <td>{{ $v->SpreaderID }}</td>
  93. <td>{{$v->Total}}</td>
  94. <td>{{ $v->FinalScore }}</td>
  95. <td>{{CollectableScore($v->UserID,$v->Type)}}</td>
  96. <td>{{$v->RegisterDate}}</td>
  97. <td>{{$v->AgreeScore}}</td>
  98. <td>
  99. @if ($v->Type == 1)
  100. {{ __('auto.注册') }}
  101. @elseif($v->Type == 2)
  102. {{ __('auto.对局') }}
  103. @endif
  104. </td>
  105. <td>{{$v->logFinalScore}}</td>
  106. <td>
  107. @if ($v->count > 0)
  108. <a href="javascript:void(0)"
  109. onclick="userSourceFunc({{$v->OrderID}},{{$v->UserID}},{{$v->Type}})">{{$v->count}}</a>
  110. @else
  111. {{$v->count}}
  112. @endif
  113. </td>
  114. <td>{{$v->downCount1 + $v->downCount2}}</td>
  115. <td>
  116. @if ($v->downCount1 > 0)
  117. <a href="/admin/user/bind_list?Higher1ID={{$v->UserID}}&source=2&start_time={{$start_time}}&end_time={{$end_time}}&GameID={{$GameID}}&SpreaderID={{$SpreaderID}}&NickName={{$NickName}}&Type={{$Type}}&Sort={{$Sort}}">
  118. {{$v->downCount1}}
  119. </a>
  120. @else
  121. {{$v->downCount1}}
  122. @endif
  123. </td>
  124. <td>
  125. @if ($v->downCount2 > 0)
  126. <a href="/admin/user/bind_list?Higher2ID={{$v->UserID}}&source=2&start_time={{$start_time}}&end_time={{$end_time}}&GameID={{$GameID}}&SpreaderID={{$SpreaderID}}&NickName={{$NickName}}&Type={{$Type}}&Sort={{$Sort}}">
  127. {{$v->downCount2}}
  128. </a>
  129. @else
  130. {{$v->downCount2}}
  131. @endif
  132. </td>
  133. <td>{{$v->CreateTime}}</td>
  134. <td>{{$v->UpdateTime}}</td>
  135. <td contentEditable="true"
  136. onblur="remarks(this,{{$v->id}})" style="vertical-align: top">{{$v->Remarks}}
  137. </td>
  138. </tr>
  139. @endforeach
  140. </tbody>
  141. </table>
  142. <div class="box-footer clearfix">
  143. {{ __('auto.总共') }} <b>{{ $list->appends([
  144. 'start_time' => $start_time,
  145. 'end_time' => $end_time,
  146. 'GameID' => $GameID,
  147. 'SpreaderID' => $SpreaderID,
  148. 'NickName' => $NickName,
  149. 'Type' => $Type,
  150. 'Sort' => $Sort,
  151. 'mobile'=>$mobile,
  152. 'CreateTimeStart' => $CreateTimeStart,
  153. 'CreateTimeEnd' => $CreateTimeEnd
  154. ])->total() }}</b> {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
  155. {!! $list->links() !!}
  156. </div>
  157. </div>
  158. </div>
  159. </div>
  160. </div>
  161. </div>
  162. </div>
  163. <script>
  164. var dataObj = {
  165. 'GameID': '{{$GameID}}',
  166. 'mobile': '{{$mobile}}',
  167. 'SpreaderID': '{{$SpreaderID}}',
  168. 'NickName': '{{$NickName}}',
  169. 'start_time': '{{$start_time}}',
  170. 'end_time': '{{$end_time}}',
  171. 'Sort':'{{$Sort}}'
  172. }
  173. // 类型搜索
  174. function typeFunc() {
  175. //这样获取的是一个数组
  176. var ci = document.getElementsByName("Type");
  177. var type = ''
  178. // 遍历复选框数组 如果被选中ci[i].checked的值就是true
  179. for (var i = 0; i < ci.length; i++) {
  180. if (ci[i].checked == true) {
  181. type += ci[i].value + ','
  182. }
  183. }
  184. dataObj.Type = type
  185. $.ajax({
  186. type: "get",
  187. url: "/admin/extension/verify",
  188. headers: {
  189. 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
  190. },
  191. data: dataObj,
  192. success: function (msg) {
  193. if (msg) {
  194. $(".main-panel").html(msg)
  195. }
  196. }
  197. })
  198. console.log(type)
  199. }
  200. // 奖励来源
  201. function userSourceFunc(OrderID, UserID,Type) {
  202. var page = layer.open({
  203. type: 2,
  204. title: '{{ __('auto.奖金来源') }}',
  205. shadeClose: true,
  206. shade: 0.8,
  207. area: ['90%', '80%'],
  208. content: '/admin/extension/user_source?OrderID=' + OrderID + '&UserID=' + UserID+'&Type='+Type
  209. });
  210. }
  211. // 上下排序
  212. function totalScoreFunc(obj, val) {
  213. if (val == 'asc') {
  214. $(".TotalScore svg:eq(1)").children('path').attr('fill', '#707071');
  215. $(obj).children('path').attr('fill', 'red')
  216. } else {
  217. $(obj).children('path').attr('fill', 'red')
  218. $(".TotalScore svg:eq(0)").children('path').attr('fill', '#707071');
  219. }
  220. dataObj.Sort = val
  221. $.ajax({
  222. type: "get",
  223. url: "/admin/extension/verify",
  224. headers: {
  225. 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
  226. },
  227. data: dataObj,
  228. success: function (msg) {
  229. if (msg) {
  230. $(".main-panel").html(msg)
  231. }
  232. }
  233. })
  234. }
  235. function remarks(obj, id) {
  236. var Remarks = $(obj).html();
  237. myRequest("/admin/extension/verify_final_remarks/" + id, "post", {Remarks}, function (res) {
  238. layer.msg(res.msg)
  239. // setTimeout(function () {
  240. // window.location.reload();
  241. // }, 1500)
  242. });
  243. }
  244. function start_times() {
  245. getFormat('00', '00', '00');
  246. document.getElementById("start_time").value = format
  247. }
  248. function end_times() {
  249. getFormat('23', '59', '59');
  250. document.getElementById("end_time").value = format
  251. }
  252. function CreateTimeStarts() {
  253. getFormat('00', '00', '00');
  254. document.getElementById("CreateTimeStart").value = format
  255. }
  256. function CreateTimeEnds() {
  257. getFormat('23', '59', '59');
  258. document.getElementById("CreateTimeEnd").value = format
  259. }
  260. </script>
  261. @endsection