|
|
@@ -170,6 +170,7 @@
|
|
|
@{{#if(d.status==4){ }}
|
|
|
<span><li class="layui-btn layui-btn-sm layui-btn-danger" onclick="lqrevoke(@{{d.match_id}})">已作废</li></span>
|
|
|
@{{#} }}
|
|
|
+ <button onclick="resultLog(@{{d.match_id}})" class="layui-btn layui-btn-sm layui-btn-green set">赛事结果比分记录</button>
|
|
|
</script>
|
|
|
|
|
|
<script type="text/html" id="sectionone_two">
|
|
|
@@ -305,6 +306,26 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
+ <style>
|
|
|
+
|
|
|
+ .log_title{
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ .log_head_div{
|
|
|
+ font-size: 17px;
|
|
|
+ margin-bottom: 5px;
|
|
|
+ }
|
|
|
+ .log_content_div td{
|
|
|
+ padding: 10px;
|
|
|
+ border: 1px solid #888888;
|
|
|
+ }
|
|
|
+
|
|
|
+ hr{
|
|
|
+ margin: 14px 0;
|
|
|
+ }
|
|
|
+ </style>
|
|
|
+
|
|
|
<script type="text/javascript">
|
|
|
$(function () {
|
|
|
$('body').on('click', 'a[eventtype="event-delete"]', function () {
|
|
|
@@ -525,6 +546,63 @@
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+ //layer弹窗开始
|
|
|
+ let resultLogOpen = '';
|
|
|
+ function resultLog(match_id){
|
|
|
+ $.ajax({
|
|
|
+ type: 'POST',
|
|
|
+ dataType: 'json',
|
|
|
+ url: '/admin/Sportsbk/resultLog',
|
|
|
+ data: {match_id:match_id},
|
|
|
+ success: function(data) {
|
|
|
+ let length = data.list.length;
|
|
|
+ if(length <= 0){
|
|
|
+ layer.alert('该赛事还没有赛事结果比分记录');
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ let html = '';
|
|
|
+ let info = '';
|
|
|
+ for(let i=0; i<length; i++){
|
|
|
+ info = data['list'][i];
|
|
|
+ if(info.type == 2){ //比分
|
|
|
+
|
|
|
+ html +='<div style="margin-left: 20px;"><div class="log_head_div"><span class="log_title">修改人</span>:'+info['loginname']+' <span class="log_title">添加时间:</span>'+info['create_at']+' <span class="log_title">添加类型</span>:赛事结果</div>'
|
|
|
+ +'<div class="log_content_div"><table><tr>' +
|
|
|
+ '<td>第一节比分(主/客)</td>' +
|
|
|
+ '<td>第二节比分(主/客)</td>' +
|
|
|
+ '<td>第三节比分(主/客)</td>' +
|
|
|
+ '<td>第四节比分(主/客)</td>' +
|
|
|
+ '</tr><tr>' +
|
|
|
+ '<td>'+info['home_score'][1]+' / '+info['guest_score'][1]+'</td>' +
|
|
|
+ '<td>'+info['home_score'][2]+' / '+info['guest_score'][2]+'</td>' +
|
|
|
+ '<td>'+info['home_score'][3]+' / '+info['guest_score'][3]+'</td>' +
|
|
|
+ '<td>'+info['home_score'][4]+' / '+info['guest_score'][4]+'</td>' +
|
|
|
+ '</tr></table></div></div><hr>';
|
|
|
+ }else{ //结果
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ html += '<br><div style="margin:0px auto 10px;width: 112px;"><button class="layui-btn layui-btn-sm layui-btn-green set" id="buttonClick" onclick="rlClick()"><h3>确定</h3></button> <button onclick="rlClick()" class="layui-btn layui-btn-sm layui-btn-danger" id="reset"><h3>取消</h3></button></div></div>';
|
|
|
+
|
|
|
+ resultLogOpen = layer.open({
|
|
|
+ type: 1 //Page层类型
|
|
|
+ ,area: ['640px', '500px']
|
|
|
+ ,title: '<h2>赛事结果比分记录<h2>'
|
|
|
+ ,shade: 0.6 //遮罩透明度
|
|
|
+ ,maxmin: true //允许全屏最小化
|
|
|
+ ,anim: 1 //0-6的动画形式,-1不开启
|
|
|
+ ,content:html
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ function rlClick() {
|
|
|
+ layer.close(resultLogOpen)
|
|
|
+ }
|
|
|
+
|
|
|
</script>
|
|
|
@push('dataTableJS')
|
|
|
/*var active = {
|