outcome.blade.php 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457
  1. @extends('vip.layouts')
  2. @section('seo_title')
  3. 棒球赛事
  4. @endsection
  5. @section('content')
  6. <script type="text/html" id="newtime">
  7. @{{#if(d.match_id!=null){ }}
  8. <span>@{{ d.match_id}}</span>
  9. @{{#} }}<br>
  10. @{{#if(d.saisname!=null){ }}
  11. <span>@{{ d.saisname}}</span>
  12. @{{#} }}
  13. </script>
  14. <script type="text/html" id="totime">
  15. @{{#if(d.start_time!=null){ }}
  16. <span>@{{ d.start_time}}</span>
  17. @{{#} }}
  18. </script>
  19. <script type="text/html" id="match_score">
  20. <input type="text" style="width:30px;heigth:20px" id="u_home_score@{{d.match_id}}" name="u_home_score" value="@{{d.u_home_score}}">
  21. <input type="text" style="width:30px;heigth:20px" id="u_guest_score@{{d.match_id}}" name="u_guest_score" value="@{{d.u_guest_score}}"> /
  22. <input type="text" style="width:30px;heigth:20px" id="home_score@{{d.match_id}}" name="home_score" value="@{{d.home_score}}">
  23. <input type="text" style="width:30px;heigth:20px" id="guest_score@{{d.match_id}}" name="guest_score" value="@{{d.guest_score}}">
  24. <button class="layui-icon" onclick="teamscore(@{{d.match_id}})"><h6>提交</h6></button>
  25. </script>
  26. <script type="text/html" id="dsnum">
  27. <span><a href="/admin/SoccerNoteList/notelist?type=bq&match_id=@{{d.match_id}}"> 单式</a></span>
  28. </script>
  29. <script type="text/html" id="csnum">
  30. <span><a href="/admin/SoccerStringNoteList/notelist?match_id=@{{d.match_id}}"> 串式</a></span>
  31. </script>
  32. <script type="text/html" id="statusmatch">
  33. @{{#if(d.status==0){ }}
  34. <span>未开始</span>
  35. @{{#} }}
  36. @{{#if(d.status==1){ }}
  37. <span>进行中</span>
  38. @{{#} }}
  39. @{{#if(d.status==2){ }}
  40. <span>已结束</span>
  41. @{{#} }}
  42. @{{#if(d.status==3){ }}
  43. <span>已结算</span>
  44. @{{#} }}
  45. @{{#if(d.status==4){ }}
  46. <span>已作废</span>
  47. @{{#} }}
  48. </script>
  49. <script type="text/html" id="operation">
  50. <a href="javascript:;" onclick="addResult(@{{d.match_id}})" class="layui-btn layui-btn-sm">赛事结果</a>
  51. @{{#if(d.status==2 || d.status==3){ }}
  52. @{{#if(d.status==2){ }}
  53. <a href="javascript:;" onclick="settlement(@{{d.match_id}},1)" class="layui-btn layui-btn-sm">结算</a>
  54. @{{#} }}
  55. @{{#if(d.status==3){ }}
  56. <a href="javascript:;" onclick="settlement(@{{d.match_id}},2)" class="layui-btn layui-btn-sm">再结算</a>
  57. @{{#} }}
  58. @{{#} }}
  59. <!--
  60. @{{#if(d.status!=4 && d.status!=3){ }}
  61. <a href="javascript:;" onclick="revoke(@{{d.match_id}})" class="layui-btn layui-btn-sm layui-btn-danger">作废</a>
  62. @{{#} }}
  63. @{{#if(d.status==4){ }}
  64. <a href="javascript:;" onclick="revoke(@{{d.match_id}})" class="layui-btn layui-btn-sm layui-btn-danger">已作废</a>
  65. @{{#} }}
  66. -->
  67. <a href="javascript:;" onclick="resultLog(@{{d.match_id}})" class="layui-btn layui-btn-sm">赛事结果比分记录</a>
  68. </script>
  69. <script type="text/html" id="status">
  70. @if(checkRriv('/admin/sportsbk/index'))<input type="checkbox" name="status" value="@{{d.id}}" lay-skin="switch" lay-text="进行中|已结束" lay-filter="openStatus" @{{ d.status == '1' ? 'checked' : '' }}>@endif
  71. </script>
  72. <div class="layui-row">
  73. <div class="layui-col-xs12">
  74. <form class="layui-form rewrite" eventType="eventForm" action="">
  75. <div class="layui-form-item">
  76. <div class="layui-inline">
  77. <label class="layui-form-label">{{ trans('sportsbk.sousuo') }}</label>
  78. <div class="layui-input-inline">
  79. <input type="text" name="home_team" id="home_team" eventType="event-query" value="{{ $home_team }}" lay-verify="required" autocomplete="off" class="layui-input" placeholder="输入赛事id,主队,客队名">
  80. </div>
  81. <div class="layui-input-inline checkbox">
  82. <input type="checkbox" name="sureblur" id="form_sureblur" lay-skin="switch" lay-text="精确|模糊" @if(!isset($sureblurs) || $sureblurs=='on') checked @endif class="layui-input" eventType=event-query>
  83. <input type="hidden" name="sureblurs" id="form_sureblurs" lay-verify="required" autocomplete="off" class="layui-input" eventType=event-query value="{{ $sureblurs }}">
  84. </div>
  85. </div>
  86. <div class="layui-inline">
  87. <label class="layui-form-label">{{ trans('sportsbk.status') }}</label>
  88. <div class="layui-input-inline" style="width: 200px">
  89. <select name="status" id="form_status" lay-verify="" autocomplete="off" class="layui-input" eventType=event-query>
  90. <option value="-1">{{ trans('sportsbk.select_status') }}</option>
  91. @foreach(trans('status.match_operation.status') as $k=>$v):
  92. @if($status==$k))
  93. <option value="{{$k}}" selected="selected">{{$v}}</option>
  94. @else
  95. <option value="{{$k}}">{{$v}}</option>
  96. @endif
  97. @endforeach
  98. </select>
  99. </div>
  100. </div>
  101. <div class="layui-inline">
  102. <label class="layui-form-label">{{ trans('sportsfoot.star_time') }}</label>
  103. <div class="layui-input-inline">
  104. <input type="text" name="star_time" value="{{ $star_time }}" id="star_time" placeholder=" - " lay-verify="" autocomplete="off" class="layui-input test-item" eventType=event-query>
  105. </div>
  106. </div>
  107. <div class="layui-inline">
  108. <label class="layui-form-label">{{ trans('sportsfoot.end_time') }}</label>
  109. <div class="layui-input-inline">
  110. <input type="text" name="end_time" value="{{$end_time}}" id="end_time" placeholder=" - " word-break: break-all; lay-verify="" autocomplete="off" class="layui-input test-item" eventType=event-query>
  111. </div>
  112. </div>
  113. <div class="layui-inline">
  114. <a class="layui-btn layui-btn-sm lay-btn-diy" data-type="reload" eventType="event-query-submit" style="opacity: 1; pointer-events: auto;">提交</a>
  115. <a class="layui-btn layui-btn-sm layui-btn-normal reset" data-type="reload" style="opacity: 1; pointer-events: auto;">重置</a>
  116. <a class="layui-btn layui-btn-xs layui-btn-green" data-type="reload" style="opacity: 1; pointer-events: auto;"><i class="layui-icon" onclick="refreshall('bq')">刷新赛事</i></a>
  117. <!--@if(checkRriv('/admin/sportsbk/addoutcome'))<a href="/admin/sportsbk/addoutcome" class="layui-btn layui-btn-sm ">添加</a>@endif-->
  118. @if(checkRriv('/admin/sportsbq/deleteoutcome'))<a href="javascript:delWin('/admin/sportsbq/deleteoutcome?id=');" class="layui-btn layui-btn-sm layui-btn-danger">删除</a>@endif
  119. @if(checkRriv('/admin/sportsbq/Settlementlq'))<a href="javascript:allbalance('/admin/sportsbq/Settlementlq?allhalf=1&id=');" class="layui-btn layui-btn-sm set">结算全场</a>@endif
  120. @if(checkRriv('/admin/sportsbq/Settlementlq'))<a href="javascript:allbalance('/admin/sportsbq/Settlementlq?allhalf=2&id=');" class="layui-btn layui-btn-xs">结算上半场</a>@endif
  121. @if(checkRriv('/admin/sportsbq/Settlementlq'))<a href="javascript:allbalance('/admin/sportsbq/Settlementlq?allhalf=2&id=');" class="layui-btn layui-btn-sm set">重新结算上半场</a>@endif
  122. </div>
  123. </div>
  124. </form>
  125. </div>
  126. </div>
  127. <style>
  128. .layui-btn{
  129. margin: 3px 10px 3px 0px;
  130. }
  131. .layui-btn+.layui-btn {
  132. margin-left: 0px;
  133. }
  134. .log_title{
  135. }
  136. .log_head_div{
  137. font-size: 17px;
  138. margin-bottom: 5px;
  139. }
  140. .log_content_div td{
  141. padding: 5px;
  142. border: 1px solid #888888;
  143. }
  144. hr{
  145. margin: 14px 0;
  146. }
  147. </style>
  148. <script>
  149. $(function () {
  150. $('body').on('click', 'a[eventtype="event-delete"]', function () {
  151. var span = $(this).prev();
  152. var id = span.attr('data-id');
  153. // openWin('/admin/system/AddMenu','{{ trans("menu.menu_edit")}}','600px','500px',id);
  154. })
  155. $('body').on('click','#form_sureblur~.layui-form-switch',function(){
  156. var sus = $('#form_sureblur').next().text();
  157. if(sus=='精确'){
  158. $('#form_sureblurs').val('on');
  159. }else{
  160. $('#form_sureblurs').val('off');
  161. }
  162. })
  163. })
  164. //layer弹窗开始
  165. let conttxt = '';
  166. let layerOpen = '';
  167. function addResult(match_id){
  168. $.ajax({
  169. type: 'POST',
  170. dataType: 'json',
  171. url: '/admin/Sportsbq/Matchresult',
  172. data: {match_id:match_id},
  173. success: function(data) {
  174. conttxt ='<div style="margin-left:80px;margin-top:20px;font-size:18px;line-height:150%;"><input type="hidden" id="match_id" name="match_id" value="'+match_id+'" /><div style="display: flex;"><li>第一局比分(主/客):</li><input style="width:50px;" type="text" id="homea" name="homea" value="'+data.bqresult[1]['home']+'" autocomplete="off">&nbsp;/&nbsp;<input style="width:50px;" type="text" id="guesta" name="guesta" value="'+data.bqresult[1]['guest']+'" autocomplete="off"></div><div style="display: flex;"><li>第二局比分(主/客):</li><input style="width:50px;" type="text" id="homeb" name="homeb" value="'+data.bqresult[2]['home']+'" autocomplete="off">&nbsp;/&nbsp;<input style="width:50px;" type="text" id="guestb" name="guestb" value="'+data.bqresult[2]['guest']+'" autocomplete="off"></div><div style="display: flex;"><li>第三局比分(主/客):</li><input style="width:50px;" type="text" id="homec" name="homec" value="'+data.bqresult[3]['home']+'" autocomplete="off">&nbsp;/&nbsp;<input style="width:50px;" type="text" id="guestc" name="guestc" value="'+data.bqresult[3]['guest']+'" autocomplete="off"></div><div style="display: flex;"><li>第四局比分(主/客):</li><input style="width:50px;" type="text" id="homed" name="homed" value="'+data.bqresult[4]['home']+'" autocomplete="off">&nbsp;/&nbsp;<input style="width:50px;" type="text" id="guestd" name="guestd" value="'+data.bqresult[4]['guest']+'" autocomplete="off"></div><div style="display: flex;"><li>第五局比分(主/客):</li><input style="width:50px;" type="text" id="homee" name="homee" value="'+data.bqresult[5]['home']+'" autocomplete="off">&nbsp;/&nbsp;<input style="width:50px;" type="text" id="gueste" name="gueste" value="'+data.bqresult[5]['guest']+'" autocomplete="off"></div><div style="display: flex;"><li>第六局比分(主/客):</li><input style="width:50px;" type="text" id="homef" name="homef" value="'+data.bqresult[6]['home']+'" autocomplete="off">&nbsp;/&nbsp;<input style="width:50px;" type="text" id="guestf" name="guestf" value="'+data.bqresult[6]['guest']+'" autocomplete="off"></div><div style="display: flex;"><li>第七局比分(主/客):</li><input style="width:50px;" type="text" id="homeg" name="homeg" value="'+data.bqresult[7]['home']+'" autocomplete="off">&nbsp;/&nbsp;<input style="width:50px;" type="text" id="guestg" name="guestg" value="'+data.bqresult[7]['guest']+'" autocomplete="off"></div><div style="display: flex;"><li>第八局比分(主/客):</li><input style="width:50px;" type="text" id="homeh" name="homeh" value="'+data.bqresult[8]['home']+'" autocomplete="off">&nbsp;/&nbsp;<input style="width:50px;" type="text" id="guesth" name="guesth" value="'+data.bqresult[8]['guest']+'" autocomplete="off"></div><div style="display: flex;"><li>第九局比分(主/客):</li><input style="width:50px;" type="text" id="homei" name="homei" value="'+data.bqresult[9]['home']+'" autocomplete="off">&nbsp;/&nbsp;<input style="width:50px;" type="text" id="guesti" name="guesti" value="'+data.bqresult[9]['guest']+'" autocomplete="off"></div><div style="display: flex;"><li>第十局比分(主/客):</li><input style="width:50px;" type="text" id="homej" name="homej" value="'+data.bqresult['other']['home']+'" autocomplete="off">&nbsp;/&nbsp;<input style="width:50px;" type="text" id="guestj" name="guestj" value="'+data.bqresult['other']['guest']+'" autocomplete="off"></div>';
  175. conttxt += '<br><div style="margin-left:230px;"><button class="layui-btn layui-btn-sm set" id="buttonClick" onclick="buttonClick()"><h3>确定</h3></button>&nbsp;<button onclick="czClick()" class="layui-btn layui-btn-sm layui-btn-danger" id="reset"><h3>取消</h3></button></div></div>';
  176. layerOpen = layer.open({
  177. type: 1 //Page层类型
  178. ,area: ['500px', '400px']
  179. ,title: '<h2>赛事结果添加<h2>'
  180. ,shade: 0.6 //遮罩透明度
  181. ,maxmin: true //允许全屏最小化
  182. ,anim: 1 //0-6的动画形式,-1不开启
  183. ,content:conttxt
  184. });
  185. }
  186. })
  187. }
  188. function czClick() {
  189. layer.close(layerOpen)
  190. }
  191. //layer弹窗结束
  192. function buttonClick(){
  193. $("#buttonClick").attr('disabled', true);
  194. var match_id = $("#match_id").val();
  195. var homea = $("#homea").val();
  196. var guesta = $("#guesta").val();
  197. var homeb = $("#homeb").val();
  198. var guestb = $("#guestb").val();
  199. var homec = $("#homec").val();
  200. var guestc = $("#guestc").val();
  201. var homed = $("#homed").val();
  202. var guestd = $("#guestd").val();
  203. var homee = $("#homee").val();
  204. var gueste = $("#gueste").val();
  205. var homef = $("#homef").val();
  206. var guestf = $("#guestf").val();
  207. var homeg = $("#homeg").val();
  208. var guestg = $("#guestg").val();
  209. var homeh = $("#homeh").val();
  210. var guesth = $("#guesth").val();
  211. var homei = $("#homei").val();
  212. var guesti = $("#guesti").val();
  213. var homej = $("#homej").val();
  214. var guestj = $("#guestj").val();
  215. $.ajax({
  216. type: 'POST',
  217. dataType: 'json',
  218. url: '/admin/Sportsbq/addend',
  219. data: {match_id:match_id,homea:homea,guesta:guesta,homeb:homeb,guestb:guestb,homec:homec,guestc:guestc,homed:homed,guestd:guestd,homee:homee,gueste:gueste,homef:homef,guestf:guestf,homeg:homeg,guestg:guestg,homeh:homeh,guesth:guesth,homei:homei,guesti:guesti,homej:homej,guestj:guestj},
  220. success: function(data) {
  221. layer.msg(data.msg);
  222. location. reload()//刷新当前页面
  223. }
  224. })
  225. }
  226. //刷新赛事数据
  227. function refreshall(game_code){
  228. var game_code = game_code;
  229. $.ajax({
  230. type: 'POST',
  231. dataType: 'json',
  232. url: '/setSports',
  233. data: {game_code:game_code},
  234. success: function(data) {
  235. var data = JSON.stringify(data);
  236. if(data){
  237. layer.msg(data.msg);
  238. location. reload()//刷新当前页面
  239. }
  240. }
  241. })
  242. }
  243. //撤销
  244. function revoke(match_id){
  245. var match_id = match_id;
  246. $.ajax({
  247. type: 'POST',
  248. dataType: 'json',
  249. url: '/admin/Sportsbq/revoke',
  250. data: {match_id:match_id},
  251. success: function(data) {
  252. if(data.status==1){
  253. layer.msg(data.msg);
  254. location. reload()//刷新当前页面
  255. }
  256. }
  257. })
  258. }
  259. //结算
  260. function settlement(match_id,type){
  261. var match_id = match_id;
  262. var type = type;
  263. $.ajax({
  264. type: 'POST',
  265. dataType: 'json',
  266. url: '/admin/Sportsbq/Settlement',
  267. data: {match_id:match_id,type:type},
  268. success: function(data) {
  269. if(data.status==1){
  270. layer.msg(data.msg);
  271. location. reload()//刷新当前页面
  272. }else if(data.status==2){
  273. layer.msg(data.msg);
  274. reloadDataTable();return;
  275. }else if(data.status==4){
  276. layer.msg(data.msg);
  277. reloadDataTable();return;
  278. }else{
  279. layer.msg(data.msg);
  280. reloadDataTable();return;
  281. }
  282. }
  283. })
  284. }
  285. //修改赛事比分 only:唯一 num:inputval match_id:match_id
  286. function teamscore(match_id){
  287. var match_id = match_id;
  288. var u_home_score = document.getElementById("u_home_score"+match_id).value;
  289. var u_guest_score = document.getElementById("u_guest_score"+match_id).value;
  290. var home_score = document.getElementById("home_score"+match_id).value;
  291. var guest_score = document.getElementById("guest_score"+match_id).value;
  292. // var reg = /^[0-99]\d*$/;
  293. // if(reg.test(num)==false){
  294. // layer.msg('不能为空值');
  295. // reloadDataTable();return;
  296. // }
  297. $.ajax({
  298. type: 'POST',
  299. dataType: 'json',
  300. url: '/admin/Sportsbq/updatascore',
  301. data: {match_id:match_id,u_home_score:u_home_score,u_guest_score:u_guest_score,home_score:home_score,guest_score:guest_score},
  302. success: function(data) {
  303. if(data.status==1){
  304. layer.msg(data.msg);
  305. location. reload()//刷新当前页面
  306. }
  307. }
  308. })
  309. }
  310. //layer弹窗开始
  311. let resultLogOpen = '';
  312. function resultLog(match_id){
  313. $.ajax({
  314. type: 'POST',
  315. dataType: 'json',
  316. url: '/admin/Sportsbq/resultLog',
  317. data: {match_id:match_id},
  318. success: function(data) {
  319. let length = data.list.length;
  320. if(length <= 0){
  321. layer.alert('该赛事还没有赛事结果比分记录');
  322. return false;
  323. }
  324. let html = '';
  325. let info = '';
  326. for(let i=0; i<length; i++){
  327. info = data['list'][i];
  328. if(info.type == 1){ //结果
  329. html +='<div style="margin-left: 20px;"><div class="log_head_div"><span class="log_title">修改人</span>:'+info['loginname']+'&nbsp;&nbsp;&nbsp;<span class="log_title">添加时间:</span>'+info['create_at']+'&nbsp;&nbsp;&nbsp;<span class="log_title">添加类型</span>:赛事结果</div>'
  330. +'<div class="log_content_div"><table><tr>' +
  331. '<td>第一局比分(主/客)</td>' +
  332. '<td>第二局比分(主/客)</td>' +
  333. '<td>第三局比分(主/客)</td>' +
  334. '<td>第四局比分(主/客)</td>' +
  335. '<td>第五局比分(主/客)</td>' +
  336. '<td>第六局比分(主/客)</td>' +
  337. '<td>第七局比分(主/客)</td>' +
  338. '<td>第八局比分(主/客)</td>' +
  339. '<td>第九局比分(主/客)</td>' +
  340. '<td>第十局比分(主/客)</td>' +
  341. '</tr><tr>' +
  342. '<td>'+info['match_score_t'][1]['home']+'&nbsp;/&nbsp;'+info['match_score_t'][1]['guest']+'</td>' +
  343. '<td>'+info['match_score_t'][2]['home']+'&nbsp;/&nbsp;'+info['match_score_t'][2]['guest']+'</td>' +
  344. '<td>'+info['match_score_t'][3]['home']+'&nbsp;/&nbsp;'+info['match_score_t'][3]['guest']+'</td>' +
  345. '<td>'+info['match_score_t'][4]['home']+'&nbsp;/&nbsp;'+info['match_score_t'][4]['guest']+'</td>' +
  346. '<td>'+info['match_score_t'][5]['home']+'&nbsp;/&nbsp;'+info['match_score_t'][5]['guest']+'</td>' +
  347. '<td>'+info['match_score_t'][6]['home']+'&nbsp;/&nbsp;'+info['match_score_t'][6]['guest']+'</td>' +
  348. '<td>'+info['match_score_t'][7]['home']+'&nbsp;/&nbsp;'+info['match_score_t'][7]['guest']+'</td>' +
  349. '<td>'+info['match_score_t'][8]['home']+'&nbsp;/&nbsp;'+info['match_score_t'][8]['guest']+'</td>' +
  350. '<td>'+info['match_score_t'][9]['home']+'&nbsp;/&nbsp;'+info['match_score_t'][9]['guest']+'</td>' +
  351. '<td>'+info['match_score_t']['other']['home']+'&nbsp;/&nbsp;'+info['match_score_t']['other']['guest']+'</td>' +
  352. '</tr></table></div></div><hr>';
  353. }else{ //比分
  354. html +='<div style="margin-left: 20px"><div class="log_head_div"><span class="log_title">修改人</span>:'+info['loginname']+'&nbsp;&nbsp;&nbsp;<span class="log_title">添加时间:</span>'+info['create_at']+'&nbsp;&nbsp;&nbsp;<span class="log_title">添加类型</span>:赛事比分</div>'
  355. +'<div>上半场比分(主/客):'+info['u_home_score']+'&nbsp;/&nbsp;'+info['u_guest_score']+'</div>'
  356. +'<div>整场比分(主/客):'+info['home_score']+'&nbsp;/&nbsp;'+info['guest_score']+'</div></div><hr>';
  357. }
  358. }
  359. html += '<br><div style="margin:0px auto 10px;width: 112px;"><button class="layui-btn layui-btn-sm set" id="buttonClick" onclick="rlClick()"><h3>确定</h3></button>&nbsp;<button onclick="rlClick()" class="layui-btn layui-btn-sm layui-btn-danger" id="reset"><h3>取消</h3></button></div></div>';
  360. resultLogOpen = layer.open({
  361. type: 1 //Page层类型
  362. ,area: ['900px', '500px']
  363. ,title: '<h2>赛事结果比分记录<h2>'
  364. ,shade: 0.6 //遮罩透明度
  365. ,maxmin: true //允许全屏最小化
  366. ,anim: 1 //0-6的动画形式,-1不开启
  367. ,content:html
  368. });
  369. }
  370. })
  371. }
  372. function rlClick() {
  373. layer.close(resultLogOpen)
  374. }
  375. </script>
  376. @push('dataTableJS')
  377. /*var active = {
  378. reload: function(){
  379. //执行重载
  380. table.reload('{{ $dataId }}', {
  381. page: {
  382. curr: 1 //重新从第 1 页开始
  383. }
  384. ,where: {
  385. account:$("#form_account").val(),
  386. register_ip:$('#form_register_ip').val(),
  387. last_ip:$('#form_last_ip').val(),
  388. register_url:$('#form_register_url').val(),
  389. last_url:$('#form_last_url').val(),
  390. regist_startime:$('#form_regist_startime').val(),
  391. regist_endtime:$('#form_regist_endtime').val(),
  392. statuss:$('#form_statuss').val(),
  393. cash_small:$('#form_cash_small').val(),
  394. cash_big:$('#form_cash_big').val(),
  395. sureblur:$('.layui-form-switch').text(),
  396. }
  397. });
  398. }
  399. };
  400. $('.lay-btn-diy').on('click', function(){
  401. var type = $(this).data('type');
  402. active[type] ? active[type].call(this) : '';
  403. });*/
  404. //重置表单
  405. $('.reset').on('click',function(){
  406. $('input').val('');
  407. $('#form_statuss').val('');
  408. //var type = $(this).data('type');
  409. //active[type] ? active[type].call(this) : '';
  410. });
  411. //刷新表单
  412. $('.set').on('click',function(){
  413. //var type = $(this).data('type');
  414. //active[type] ? active[type].call(this) : '';
  415. });
  416. @endpush
  417. @include('vip.datatable')
  418. @endsection