outcome.blade.php 27 KB

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