outcome.blade.php 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453
  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. <button onclick="addResult(@{{d.match_id}})" class="layui-btn layui-btn-sm set">赛事结果</button>
  51. @{{#if(d.status==2 || d.status==3){ }}
  52. @{{#if(d.status==2){ }}
  53. <span><li class="layui-btn layui-btn-sm set" onclick="settlement(@{{d.match_id}},1)">结算</li></span>
  54. @{{#} }}
  55. @{{#if(d.status==3){ }}
  56. <span><li class="layui-btn layui-btn-sm reset" onclick="settlement(@{{d.match_id}},2)">再结算</li></span>
  57. @{{#} }}
  58. @{{#} }}
  59. <!--
  60. @{{#if(d.status!=4 && d.status!=3){ }}
  61. <span><li class="layui-btn layui-btn-sm layui-btn-danger" onclick="revoke(@{{d.match_id}})">作废</li></span>
  62. @{{#} }}
  63. @{{#if(d.status==4){ }}
  64. <span><li class="layui-btn layui-btn-sm layui-btn-danger" onclick="revoke(@{{d.match_id}})">已作废</li></span>
  65. @{{#} }}
  66. -->
  67. <button onclick="resultLog(@{{d.match_id}})" class="layui-btn layui-btn-sm set">赛事结果比分记录</button>
  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: 1px 0px;
  130. }
  131. .log_title{
  132. }
  133. .log_head_div{
  134. font-size: 17px;
  135. margin-bottom: 5px;
  136. }
  137. .log_content_div td{
  138. padding: 5px;
  139. border: 1px solid #888888;
  140. }
  141. hr{
  142. margin: 14px 0;
  143. }
  144. </style>
  145. <script>
  146. $(function () {
  147. $('body').on('click', 'a[eventtype="event-delete"]', function () {
  148. var span = $(this).prev();
  149. var id = span.attr('data-id');
  150. // openWin('/admin/system/AddMenu','{{ trans("menu.menu_edit")}}','600px','500px',id);
  151. })
  152. $('body').on('click','#form_sureblur~.layui-form-switch',function(){
  153. var sus = $('#form_sureblur').next().text();
  154. if(sus=='精确'){
  155. $('#form_sureblurs').val('on');
  156. }else{
  157. $('#form_sureblurs').val('off');
  158. }
  159. })
  160. })
  161. //layer弹窗开始
  162. let conttxt = '';
  163. let layerOpen = '';
  164. function addResult(match_id){
  165. $.ajax({
  166. type: 'POST',
  167. dataType: 'json',
  168. url: '/admin/Sportsbq/Matchresult',
  169. data: {match_id:match_id},
  170. success: function(data) {
  171. 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>';
  172. 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>';
  173. layerOpen = layer.open({
  174. type: 1 //Page层类型
  175. ,area: ['500px', '400px']
  176. ,title: '<h2>赛事结果添加<h2>'
  177. ,shade: 0.6 //遮罩透明度
  178. ,maxmin: true //允许全屏最小化
  179. ,anim: 1 //0-6的动画形式,-1不开启
  180. ,content:conttxt
  181. });
  182. }
  183. })
  184. }
  185. function czClick() {
  186. layer.close(layerOpen)
  187. }
  188. //layer弹窗结束
  189. function buttonClick(){
  190. $("#buttonClick").attr('disabled', true);
  191. var match_id = $("#match_id").val();
  192. var homea = $("#homea").val();
  193. var guesta = $("#guesta").val();
  194. var homeb = $("#homeb").val();
  195. var guestb = $("#guestb").val();
  196. var homec = $("#homec").val();
  197. var guestc = $("#guestc").val();
  198. var homed = $("#homed").val();
  199. var guestd = $("#guestd").val();
  200. var homee = $("#homee").val();
  201. var gueste = $("#gueste").val();
  202. var homef = $("#homef").val();
  203. var guestf = $("#guestf").val();
  204. var homeg = $("#homeg").val();
  205. var guestg = $("#guestg").val();
  206. var homeh = $("#homeh").val();
  207. var guesth = $("#guesth").val();
  208. var homei = $("#homei").val();
  209. var guesti = $("#guesti").val();
  210. var homej = $("#homej").val();
  211. var guestj = $("#guestj").val();
  212. $.ajax({
  213. type: 'POST',
  214. dataType: 'json',
  215. url: '/admin/Sportsbq/addend',
  216. 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},
  217. success: function(data) {
  218. layer.msg(data.msg);
  219. location. reload()//刷新当前页面
  220. }
  221. })
  222. }
  223. //刷新赛事数据
  224. function refreshall(game_code){
  225. var game_code = game_code;
  226. $.ajax({
  227. type: 'POST',
  228. dataType: 'json',
  229. url: '/setSports',
  230. data: {game_code:game_code},
  231. success: function(data) {
  232. var data = JSON.stringify(data);
  233. if(data){
  234. layer.msg(data.msg);
  235. location. reload()//刷新当前页面
  236. }
  237. }
  238. })
  239. }
  240. //撤销
  241. function revoke(match_id){
  242. var match_id = match_id;
  243. $.ajax({
  244. type: 'POST',
  245. dataType: 'json',
  246. url: '/admin/Sportsbq/revoke',
  247. data: {match_id:match_id},
  248. success: function(data) {
  249. if(data.status==1){
  250. layer.msg(data.msg);
  251. location. reload()//刷新当前页面
  252. }
  253. }
  254. })
  255. }
  256. //结算
  257. function settlement(match_id,type){
  258. var match_id = match_id;
  259. var type = type;
  260. $.ajax({
  261. type: 'POST',
  262. dataType: 'json',
  263. url: '/admin/Sportsbq/Settlement',
  264. data: {match_id:match_id,type:type},
  265. success: function(data) {
  266. if(data.status==1){
  267. layer.msg(data.msg);
  268. location. reload()//刷新当前页面
  269. }else if(data.status==2){
  270. layer.msg(data.msg);
  271. reloadDataTable();return;
  272. }else if(data.status==4){
  273. layer.msg(data.msg);
  274. reloadDataTable();return;
  275. }else{
  276. layer.msg(data.msg);
  277. reloadDataTable();return;
  278. }
  279. }
  280. })
  281. }
  282. //修改赛事比分 only:唯一 num:inputval match_id:match_id
  283. function teamscore(match_id){
  284. var match_id = match_id;
  285. var u_home_score = document.getElementById("u_home_score"+match_id).value;
  286. var u_guest_score = document.getElementById("u_guest_score"+match_id).value;
  287. var home_score = document.getElementById("home_score"+match_id).value;
  288. var guest_score = document.getElementById("guest_score"+match_id).value;
  289. // var reg = /^[0-99]\d*$/;
  290. // if(reg.test(num)==false){
  291. // layer.msg('不能为空值');
  292. // reloadDataTable();return;
  293. // }
  294. $.ajax({
  295. type: 'POST',
  296. dataType: 'json',
  297. url: '/admin/Sportsbq/updatascore',
  298. 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},
  299. success: function(data) {
  300. if(data.status==1){
  301. layer.msg(data.msg);
  302. location. reload()//刷新当前页面
  303. }
  304. }
  305. })
  306. }
  307. //layer弹窗开始
  308. let resultLogOpen = '';
  309. function resultLog(match_id){
  310. $.ajax({
  311. type: 'POST',
  312. dataType: 'json',
  313. url: '/admin/Sportsbq/resultLog',
  314. data: {match_id:match_id},
  315. success: function(data) {
  316. let length = data.list.length;
  317. if(length <= 0){
  318. layer.alert('该赛事还没有赛事结果比分记录');
  319. return false;
  320. }
  321. let html = '';
  322. let info = '';
  323. for(let i=0; i<length; i++){
  324. info = data['list'][i];
  325. if(info.type == 1){ //结果
  326. 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>'
  327. +'<div class="log_content_div"><table><tr>' +
  328. '<td>第一局比分(主/客)</td>' +
  329. '<td>第二局比分(主/客)</td>' +
  330. '<td>第三局比分(主/客)</td>' +
  331. '<td>第四局比分(主/客)</td>' +
  332. '<td>第五局比分(主/客)</td>' +
  333. '<td>第六局比分(主/客)</td>' +
  334. '<td>第七局比分(主/客)</td>' +
  335. '<td>第八局比分(主/客)</td>' +
  336. '<td>第九局比分(主/客)</td>' +
  337. '<td>第十局比分(主/客)</td>' +
  338. '</tr><tr>' +
  339. '<td>'+info['match_score_t'][1]['home']+'&nbsp;/&nbsp;'+info['match_score_t'][1]['guest']+'</td>' +
  340. '<td>'+info['match_score_t'][2]['home']+'&nbsp;/&nbsp;'+info['match_score_t'][2]['guest']+'</td>' +
  341. '<td>'+info['match_score_t'][3]['home']+'&nbsp;/&nbsp;'+info['match_score_t'][3]['guest']+'</td>' +
  342. '<td>'+info['match_score_t'][4]['home']+'&nbsp;/&nbsp;'+info['match_score_t'][4]['guest']+'</td>' +
  343. '<td>'+info['match_score_t'][5]['home']+'&nbsp;/&nbsp;'+info['match_score_t'][5]['guest']+'</td>' +
  344. '<td>'+info['match_score_t'][6]['home']+'&nbsp;/&nbsp;'+info['match_score_t'][6]['guest']+'</td>' +
  345. '<td>'+info['match_score_t'][7]['home']+'&nbsp;/&nbsp;'+info['match_score_t'][7]['guest']+'</td>' +
  346. '<td>'+info['match_score_t'][8]['home']+'&nbsp;/&nbsp;'+info['match_score_t'][8]['guest']+'</td>' +
  347. '<td>'+info['match_score_t'][9]['home']+'&nbsp;/&nbsp;'+info['match_score_t'][9]['guest']+'</td>' +
  348. '<td>'+info['match_score_t']['other']['home']+'&nbsp;/&nbsp;'+info['match_score_t']['other']['guest']+'</td>' +
  349. '</tr></table></div></div><hr>';
  350. }else{ //比分
  351. 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>'
  352. +'<div>上半场比分(主/客):'+info['u_home_score']+'&nbsp;/&nbsp;'+info['u_guest_score']+'</div>'
  353. +'<div>整场比分(主/客):'+info['home_score']+'&nbsp;/&nbsp;'+info['guest_score']+'</div></div><hr>';
  354. }
  355. }
  356. 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>';
  357. resultLogOpen = layer.open({
  358. type: 1 //Page层类型
  359. ,area: ['900px', '500px']
  360. ,title: '<h2>赛事结果比分记录<h2>'
  361. ,shade: 0.6 //遮罩透明度
  362. ,maxmin: true //允许全屏最小化
  363. ,anim: 1 //0-6的动画形式,-1不开启
  364. ,content:html
  365. });
  366. }
  367. })
  368. }
  369. function rlClick() {
  370. layer.close(resultLogOpen)
  371. }
  372. </script>
  373. @push('dataTableJS')
  374. /*var active = {
  375. reload: function(){
  376. //执行重载
  377. table.reload('{{ $dataId }}', {
  378. page: {
  379. curr: 1 //重新从第 1 页开始
  380. }
  381. ,where: {
  382. account:$("#form_account").val(),
  383. register_ip:$('#form_register_ip').val(),
  384. last_ip:$('#form_last_ip').val(),
  385. register_url:$('#form_register_url').val(),
  386. last_url:$('#form_last_url').val(),
  387. regist_startime:$('#form_regist_startime').val(),
  388. regist_endtime:$('#form_regist_endtime').val(),
  389. statuss:$('#form_statuss').val(),
  390. cash_small:$('#form_cash_small').val(),
  391. cash_big:$('#form_cash_big').val(),
  392. sureblur:$('.layui-form-switch').text(),
  393. }
  394. });
  395. }
  396. };
  397. $('.lay-btn-diy').on('click', function(){
  398. var type = $(this).data('type');
  399. active[type] ? active[type].call(this) : '';
  400. });*/
  401. //重置表单
  402. $('.reset').on('click',function(){
  403. $('input').val('');
  404. $('#form_statuss').val('');
  405. //var type = $(this).data('type');
  406. //active[type] ? active[type].call(this) : '';
  407. });
  408. //刷新表单
  409. $('.set').on('click',function(){
  410. //var type = $(this).data('type');
  411. //active[type] ? active[type].call(this) : '';
  412. });
  413. @endpush
  414. @include('vip.datatable')
  415. @endsection