彭俊 il y a 6 ans
Parent
commit
317a865a3d

+ 1 - 0
app/Http/Controllers/Admin/SportsbkController.php

@@ -221,6 +221,7 @@ class SportsbkController extends Controller {
 //		);
 		$array =array(
 			'lqresult' => json_decode($newapp['inning'],true),
+			'newapp' => $newapp,
 		);
 		return $array;
 	}

+ 1 - 0
app/Http/Controllers/Admin/SportsbqController.php

@@ -222,6 +222,7 @@ class SportsbqController extends Controller {
 
 		$jieguo =array(
 			'bqresult' => json_decode($newapp['match_score_t'],true),
+			'newapp' => $newapp,
 		);
 		return $jieguo;
 	}

+ 1 - 0
app/Http/Controllers/Admin/SportswqController.php

@@ -233,6 +233,7 @@ class SportswqController extends Controller {
 
 		$array =array(
 			'wqresult' => json_decode($newapp['inning'],true),
+			'newapp' => $newapp,
 		);
 		return $array;
 	}

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
resources/views/admin/Sportsbq/outcome.blade.php


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
resources/views/admin/Sportswq/outcome.blade.php


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
resources/views/admin/sportsbk/outcome.blade.php


+ 15 - 11
resources/views/admin/sportsfoot/outcome.blade.php

@@ -224,8 +224,8 @@
                 url: '/admin/Sportsfoot/Matchresult',
                 data: {match_id:match_id},
                 success: function(data) {
-                    console.log(data);
-                    conttxt ='<div style="margin-left:100px;margin-top:20px;font-size:18px;line-height:150%;"><input type="hidden" id="matchid" name="matchid" value="'+match_id+'" /><div style="display: flex;"><li>主队全场角球:</li><input type="text" id="homeallcorner" name="homeallcorner" value="'+data.corner_ball.home+'" autocomplete="off"></div><div style="display: flex;"><li>客队全场角球:</li><input type="text" id="guestallcorner" name="guestallcorner" value="'+data.corner_ball.guest+'" autocomplete="off"></div><div style="display: flex;"><li>主队半场角球:</li><input type="text" id="homehalfcorner" name="homehalfcorner" value="'+data.corner_ball.home_half+'" autocomplete="off"></div><div style="display: flex;"><li>客队半场角球:</li><input type="text" id="guesthalfcorner" name="guesthalfcorner" value="'+data.corner_ball.guest_half+'" autocomplete="off"></div><div style="display: flex;"><li>主队全场罚牌:</li><input type="text" id="homeallcard" name="homeallcard" value="'+data.penalty_card.home+'" autocomplete="off"></div><div style="display: flex;"><li>客队全场罚牌:</li><input type="text" id="guestallcard" name="guestallcard" value="'+data.penalty_card.guest+'" autocomplete="off"></div><div style="display: flex;"><li>主队半场罚牌:</li><input type="text" id="homehalfcard" name="homehalfcard" value="'+data.penalty_card.home_half+'" autocomplete="off"></div><div style="display: flex;"><li>客队半场罚牌:</li><input type="text" id="guesthalfcard" name="guesthalfcard" value="'+data.penalty_card.guest_half+'" autocomplete="off"></div>';
+                    //console.log(data);
+                    conttxt ='<div id="scores" style="margin-left:100px;margin-top:20px;font-size:18px;line-height:150%;"><input type="hidden" id="matchid" name="matchid" value="'+match_id+'" /><div style="display: flex;"><li>主队全场角球:</li><input type="text" id="homeallcorner" name="homeallcorner" value="'+data.corner_ball.home+'" autocomplete="off"></div><div style="display: flex;"><li>客队全场角球:</li><input type="text" id="guestallcorner" name="guestallcorner" value="'+data.corner_ball.guest+'" autocomplete="off"></div><div style="display: flex;"><li>主队半场角球:</li><input type="text" id="homehalfcorner" name="homehalfcorner" value="'+data.corner_ball.home_half+'" autocomplete="off"></div><div style="display: flex;"><li>客队半场角球:</li><input type="text" id="guesthalfcorner" name="guesthalfcorner" value="'+data.corner_ball.guest_half+'" autocomplete="off"></div><div style="display: flex;"><li>主队全场罚牌:</li><input type="text" id="homeallcard" name="homeallcard" value="'+data.penalty_card.home+'" autocomplete="off"></div><div style="display: flex;"><li>客队全场罚牌:</li><input type="text" id="guestallcard" name="guestallcard" value="'+data.penalty_card.guest+'" autocomplete="off"></div><div style="display: flex;"><li>主队半场罚牌:</li><input type="text" id="homehalfcard" name="homehalfcard" value="'+data.penalty_card.home_half+'" autocomplete="off"></div><div style="display: flex;"><li>客队半场罚牌:</li><input type="text" id="guesthalfcard" name="guesthalfcard" value="'+data.penalty_card.guest_half+'" autocomplete="off"></div>';
                     if (data.newapp.home_score!=0 || data.newapp.guest_score!=0){
                         conttxt += '<div style="display: flex;"><li>首 进 球 时 间:</li><input type="text" id="onescoretime" name="onescoretime" value="'+data.first_score.scoretime+'" autocomplete="off"></div>';
 //                        conttxt += '<div style="display: flex;"><li>首 进 球 时 间:</li><input type="text" id="onescoretime" name="onescoretime" value="'+data.first_score.scoretime+'" autocomplete="off"></div><div style="display: flex;"><li>最终获胜球队:</li><input type="text" id="matchwiner" name="matchwiner" value="'+data.newapp.match_winer+'" autocomplete="off"></div><div style="display: flex;"><li>最先进球球队:</li><select name="firstscore" id="firstscore">';
@@ -255,15 +255,19 @@
                     }
                     conttxt += '<div style="display: flex;"><li>上半场比分(主/客):</li><input style="width:50px;" type="text" id="homehalf" name="homehalf" value="'+data.newapp.u_home_score+'" autocomplete="off">&nbsp;/&nbsp;<input style="width:50px;" type="text" id="guesthalf" name="guesthalf" value="'+data.newapp.u_guest_score+'" autocomplete="off"></div><div style="display: flex;"><li style="margin-left:1.1rem;">全场比分(主/客):</li><input style="width:50px;" type="text" id="homeall" name="homeall" value="'+data.newapp.home_score+'" autocomplete="off">&nbsp;/&nbsp;<input style="width:50px;" type="text" id="guestall" name="guestall" value="'+data.newapp.guest_score+'" autocomplete="off"></div><br><div style="margin-left:230px;"><button class="layui-btn layui-btn-sm set" 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>';
 
-                layerOpen = layer.open({
-                  type: 1 //Page层类型
-                  ,area: ['600px', '60%']
-                  ,title: '<h2>赛事结果修改<h2>'
-                  ,shade: 0.6 //遮罩透明度
-                  ,maxmin: true //允许全屏最小化
-                  ,anim: 1 //0-6的动画形式,-1不开启
-                  ,content:conttxt
-                });
+                    layerOpen = layer.open({
+                      type: 1 //Page层类型
+                      ,area: ['600px', '60%']
+                      ,title: '<h2>赛事结果修改<h2>'
+                      ,shade: 0.6 //遮罩透明度
+                      ,maxmin: true //允许全屏最小化
+                      ,anim: 1 //0-6的动画形式,-1不开启
+                      ,content:conttxt
+                    });
+
+                    if(data.newapp.status == 0 || data.newapp.status == 1 || data.newapp.status == 6){
+                        $('#scores input').val('');
+                    }
                 }
             })
         }

+ 17 - 0
sql.sql

@@ -58,3 +58,20 @@ ALTER TABLE money_buy_match ADD COLUMN home_score int2 NOT NULL DEFAULT 0;
 COMMENT ON COLUMN "money_buy_match"."home_score" IS '当是滚球投注时 当前主队得分';
 ALTER TABLE money_buy_match ADD COLUMN guest_score int2 NOT NULL DEFAULT 0;
 COMMENT ON COLUMN "money_buy_match"."guest_score" IS '当是滚球投注时 当前客队得分';
+
+/**
+Tank.peng
+2019/11/13
+追加字段
+*/
+ALTER TABLE st_zq_result ADD COLUMN manual_result json DEFAULT '{"half_corner":{"home":"","guest":""},"all_corner":{"home":"","guest":""},"half_penalty":{"home":"","guest":""},"all_penalty":{"home":"","guest":""},"half":{"home":"","guest":""},"all":{"home":"","guest":""},"first_score":{"time":""}}'::json;
+COMMENT ON COLUMN "st_zq_result"."manual_result" IS '当手动修改比分时,存储调整后的结果json';
+
+ALTER TABLE st_lq_result ADD COLUMN manual_result json DEFAULT '{"1":{"home":"","guest":""},"2":{"home":"","guest":""},"3":{"home":"","guest":""},"4":{"home":"","guest":""},"5":{"home":"","guest":""},"6":{"home":"","guest":""},"all":{"home":"","guest":""}}'::json;
+COMMENT ON COLUMN "st_lq_result"."manual_result" IS '当手动修改比分时,存储调整后的结果json';
+
+ALTER TABLE st_wq_result ADD COLUMN manual_result json DEFAULT '{"1":{"home":"","guest":""},"2":{"home":"","guest":""},"3":{"home":"","guest":""},"4":{"home":"","guest":""},"5":{"home":"","guest":""},"all":{"home":"","guest":""}}'::json;
+COMMENT ON COLUMN "st_wq_result"."manual_result" IS '当手动修改比分时,存储调整后的结果json';
+
+ALTER TABLE st_bq_result ADD COLUMN manual_result json DEFAULT '{"1":{"home":"","guest":""},"2":{"home":"","guest":""},"3":{"home":"","guest":""},"4":{"home":"","guest":""},"5":{"home":"","guest":""},"6":{"home":"","guest":""},"7":{"home":"","guest":""},"8":{"home":"","guest":""},"9":{"home":"","guest":""},"other":{"home":"","guest":""},"five":{"home":"","guest":""},"all":{"home":"","guest":""}}'::json;
+COMMENT ON COLUMN "st_bq_result"."manual_result" IS '当手动修改比分时,存储调整后的结果json';

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff