|
@@ -121,7 +121,31 @@
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|
|
|
|
|
|
|
|
- <!-- match_score -->
|
|
|
|
|
|
|
+ <script type="text/html" id="newtime">
|
|
|
|
|
+ @{{#if(d.match_id!=null){ }}
|
|
|
|
|
+ <span>@{{ d.match_id}}</span>
|
|
|
|
|
+ @{{#} }}<br>
|
|
|
|
|
+ @{{#if(d.saisname!=null){ }}
|
|
|
|
|
+ <span>@{{ d.saisname}}</span>
|
|
|
|
|
+ @{{#} }}
|
|
|
|
|
+ </script>
|
|
|
|
|
+
|
|
|
|
|
+ <script type="text/html" id="totime">
|
|
|
|
|
+ @{{#if(d.start_time!=null){ }}
|
|
|
|
|
+ <span>@{{ d.start_time}}</span>
|
|
|
|
|
+ @{{#} }}
|
|
|
|
|
+ </script>
|
|
|
|
|
+
|
|
|
|
|
+ <script type="text/html" id="match_score">
|
|
|
|
|
+ <input type="text" style="width:30px;heigth:20px" id="u_home_score@{{d.id}}" name="u_home_score" value="@{{d.u_home_score}}" onchange="teamscore(1, event.target.value,@{{d.match_id}})">
|
|
|
|
|
+ <input type="text" style="width:30px;heigth:20px" id="u_guest_score@{{d.id}}" name="u_guest_score" value="@{{d.u_guest_score}}" onchange="teamscore(2, event.target.value,@{{d.match_id}})"> /
|
|
|
|
|
+ <input type="text" style="width:30px;heigth:20px" id="home_score@{{d.id}}" name="home_score" value="@{{d.home_score}}" onchange="teamscore(3, event.target.value,@{{d.match_id}})">
|
|
|
|
|
+ <input type="text" style="width:30px;heigth:20px" id="guest_score@{{d.id}}" name="guest_score" value="@{{d.guest_score}}" onchange="teamscore(4, event.target.value,@{{d.match_id}})">
|
|
|
|
|
+ </script>
|
|
|
|
|
+
|
|
|
|
|
+ <script type="text/html" id="dsnum">
|
|
|
|
|
+ <span><a href="/admin/SoccerNoteList/notelist?type=bq&match_id=@{{d.match_id}}"> 单式</a></span>
|
|
|
|
|
+ </script>
|
|
|
|
|
|
|
|
<script type="text/html" id="statusmatch">
|
|
<script type="text/html" id="statusmatch">
|
|
|
@{{#if(d.status==0){ }}
|
|
@{{#if(d.status==0){ }}
|
|
@@ -230,7 +254,23 @@
|
|
|
<div class="modal-body">
|
|
<div class="modal-body">
|
|
|
<p style="text-align:left;color:#5f7788;">请认真填写赛事结果,将会按照改结果结算</p><br>
|
|
<p style="text-align:left;color:#5f7788;">请认真填写赛事结果,将会按照改结果结算</p><br>
|
|
|
<div style="text-align:left;">
|
|
<div style="text-align:left;">
|
|
|
- <div style="display:flex;heigth:20px">
|
|
|
|
|
|
|
+ <div style="display: flex;">
|
|
|
|
|
+ <li>最先进球球队:</li>
|
|
|
|
|
+ <select name="firstscoreplayer" id="firstscoreplayer">
|
|
|
|
|
+ </select>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div style="display: flex;">
|
|
|
|
|
+ <li>最后进球球队:</li>
|
|
|
|
|
+ <select name="lastscoreplayer" id="lastscoreplayer">
|
|
|
|
|
+ </select>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div style="display: flex;">
|
|
|
|
|
+ <li>获 胜 球 队:</li>
|
|
|
|
|
+ <select name="matchwinerplayer" id="matchwinerplayer">
|
|
|
|
|
+ </select>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- <div style="display:flex;heigth:20px">
|
|
|
<li style="width: 110px;">第一局比分</li>
|
|
<li style="width: 110px;">第一局比分</li>
|
|
|
<div>
|
|
<div>
|
|
|
<input type="text" style="width:50px;heigth:15px;" id="u_home_score@{{d.id}}" name="u_home_score" value="@{{d.u_home_score}}" onchange="inputFunc(@{{d.id}}, event.target.value,@{{d.match_id}})"> -
|
|
<input type="text" style="width:50px;heigth:15px;" id="u_home_score@{{d.id}}" name="u_home_score" value="@{{d.u_home_score}}" onchange="inputFunc(@{{d.id}}, event.target.value,@{{d.match_id}})"> -
|
|
@@ -278,7 +318,7 @@
|
|
|
<input type="text" style="width:50px;heigth:15px" id="u_home_score@{{d.id}}" name="u_home_score" value="@{{d.u_home_score}}" onchange="inputFunc(@{{d.id}}, event.target.value,@{{d.match_id}})"> -
|
|
<input type="text" style="width:50px;heigth:15px" id="u_home_score@{{d.id}}" name="u_home_score" value="@{{d.u_home_score}}" onchange="inputFunc(@{{d.id}}, event.target.value,@{{d.match_id}})"> -
|
|
|
<input type="text" style="width:50px;heigth:15px" id="u_home_score@{{d.id}}" name="u_home_score" value="@{{d.u_home_score}}" onchange="inputFunc(@{{d.id}}, event.target.value,@{{d.match_id}})">
|
|
<input type="text" style="width:50px;heigth:15px" id="u_home_score@{{d.id}}" name="u_home_score" value="@{{d.u_home_score}}" onchange="inputFunc(@{{d.id}}, event.target.value,@{{d.match_id}})">
|
|
|
</div>
|
|
</div>
|
|
|
- </div>
|
|
|
|
|
|
|
+ </div> -->
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="modal-footer">
|
|
<div class="modal-footer">
|
|
@@ -306,30 +346,51 @@
|
|
|
|
|
|
|
|
function addResult($match_id){
|
|
function addResult($match_id){
|
|
|
$(":input",$("#myModal")).each(function(i){ $(this).val('');});
|
|
$(":input",$("#myModal")).each(function(i){ $(this).val('');});
|
|
|
- var match_id = $match_id;//alert(match_id);
|
|
|
|
|
|
|
+ var match_id = $match_id;
|
|
|
document.getElementById("matchid").value=$match_id;//赋值个弹窗
|
|
document.getElementById("matchid").value=$match_id;//赋值个弹窗
|
|
|
|
|
|
|
|
$.ajax({
|
|
$.ajax({
|
|
|
type: 'POST',
|
|
type: 'POST',
|
|
|
dataType: 'json',
|
|
dataType: 'json',
|
|
|
- url: '/admin/Sportsfoot/Matchresult',
|
|
|
|
|
|
|
+ url: '/admin/Sportsbq/Matchresult',
|
|
|
data: {match_id:match_id},
|
|
data: {match_id:match_id},
|
|
|
success: function(data) {
|
|
success: function(data) {
|
|
|
- document.getElementById("matchwiner").value=data.newapp.match_winer;
|
|
|
|
|
- document.getElementById("homeallcard").value=data.penalty_card.home;
|
|
|
|
|
- document.getElementById("guestallcard").value=data.penalty_card.guest;
|
|
|
|
|
- document.getElementById("homehalfcard").value=data.penalty_card.home_half;
|
|
|
|
|
- document.getElementById("guesthalfcard").value=data.penalty_card.guest_half;
|
|
|
|
|
- document.getElementById("homeallcorner").value=data.corner_ball.home;
|
|
|
|
|
- document.getElementById("guestallcorner").value=data.corner_ball.guest;
|
|
|
|
|
- document.getElementById("homehalfcorner").value=data.corner_ball.home_half;
|
|
|
|
|
- document.getElementById("guesthalfcorner").value=data.corner_ball.guest_half;
|
|
|
|
|
-
|
|
|
|
|
- addqd = "<option value='' selected=''>请选择最后进球</option><option value=" +data.newapp.home_team + ">" + data.newapp.home_team + "</option><option value=" +data.newapp.guest_team + ">" + data.newapp.guest_team + "</option>";
|
|
|
|
|
- $("#addqd").html(addqd);
|
|
|
|
|
-
|
|
|
|
|
- addzd = "<option value='' selected=''>请选择最后进球</option><option value=" + data.newapp.home_team + ">" + data.newapp.home_team + "</option><option value=" + data.newapp.guest_team + ">" + data.newapp.guest_team + "</option>";
|
|
|
|
|
- $("#addzd").html(addzd);
|
|
|
|
|
|
|
+ // document.getElementById("matchwiner").value=data.newapp.match_winer;
|
|
|
|
|
+ // document.getElementById("homeallcard").value=data.penalty_card.home;
|
|
|
|
|
+ // document.getElementById("guestallcard").value=data.penalty_card.guest;
|
|
|
|
|
+ // document.getElementById("homehalfcard").value=data.penalty_card.home_half;
|
|
|
|
|
+ // document.getElementById("guesthalfcard").value=data.penalty_card.guest_half;
|
|
|
|
|
+ // document.getElementById("homeallcorner").value=data.corner_ball.home;
|
|
|
|
|
+ // document.getElementById("guestallcorner").value=data.corner_ball.guest;
|
|
|
|
|
+ // document.getElementById("homehalfcorner").value=data.corner_ball.home_half;
|
|
|
|
|
+ // document.getElementById("guesthalfcorner").value=data.corner_ball.guest_half;
|
|
|
|
|
+
|
|
|
|
|
+ firstscoreplayer = "<option value='"+data.bqresult.first_score+"' selected=''>";
|
|
|
|
|
+ if (data.bqresult.first_score != 0){
|
|
|
|
|
+ firstscoreplayer += data.bqresult.first_score;
|
|
|
|
|
+ }else{
|
|
|
|
|
+ firstscoreplayer += '请选择最先进球';
|
|
|
|
|
+ }
|
|
|
|
|
+ firstscoreplayer += "</option><option value=" + data.bqresult.home_team + ">" + data.bqresult.home_team + "</option><option value=" + data.bqresult.guest_team + ">" + data.bqresult.guest_team + "</option>";
|
|
|
|
|
+ $("#firstscoreplayer").html(firstscoreplayer);
|
|
|
|
|
+
|
|
|
|
|
+ lastscoreplayer = "<option value='"+data.bqresult.last_score+"' selected=''>";
|
|
|
|
|
+ if (data.bqresult.last_score != 0){
|
|
|
|
|
+ lastscoreplayer += data.bqresult.last_score;
|
|
|
|
|
+ }else{
|
|
|
|
|
+ lastscoreplayer += '请选择最后进球';
|
|
|
|
|
+ }
|
|
|
|
|
+ lastscoreplayer += "</option><option value=" + data.bqresult.home_team + ">" + data.bqresult.home_team + "</option><option value=" + data.bqresult.guest_team + ">" + data.bqresult.guest_team + "</option>";
|
|
|
|
|
+ $("#lastscoreplayer").html(lastscoreplayer);
|
|
|
|
|
+
|
|
|
|
|
+ matchwinerplayer = "<option value='"+data.bqresult.match_winer+"' selected=''>";
|
|
|
|
|
+ if (data.bqresult.match_winer != 0){
|
|
|
|
|
+ matchwinerplayer += data.bqresult.match_winer;
|
|
|
|
|
+ }else{
|
|
|
|
|
+ matchwinerplayer += '请选择最后胜利球队';
|
|
|
|
|
+ }
|
|
|
|
|
+ matchwinerplayer += "</option><option value=" + data.bqresult.home_team + ">" + data.bqresult.home_team + "</option><option value=" + data.bqresult.guest_team + ">" + data.bqresult.guest_team + "</option>";
|
|
|
|
|
+ $("#matchwinerplayer").html(matchwinerplayer);
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
|
|
@@ -370,32 +431,23 @@
|
|
|
|
|
|
|
|
function buttonClick(){
|
|
function buttonClick(){
|
|
|
var matchid = $("#matchid").val();
|
|
var matchid = $("#matchid").val();
|
|
|
- var firstscore = $("#firstscore").val();
|
|
|
|
|
- var lastscore = $("#lastscore").val();
|
|
|
|
|
- var matchwiner = $("#matchwiner").val();
|
|
|
|
|
- var homeallcard = $("#homeallcard").val();
|
|
|
|
|
- var guestallcard = $("#guestallcard").val();
|
|
|
|
|
- var homehalfcard = $("#homehalfcard").val();
|
|
|
|
|
- var guesthalfcard = $("#guesthalfcard").val();
|
|
|
|
|
- var homeallcorner = $("#homeallcorner").val();
|
|
|
|
|
- var guestallcorner = $("#guestallcorner").val();
|
|
|
|
|
- var homehalfcorner = $("#homehalfcorner").val();
|
|
|
|
|
- var guesthalfcorner = $("#guesthalfcorner").val();
|
|
|
|
|
- var reg = /^[0-99]\d*$/;
|
|
|
|
|
|
|
+ var firstscoreplayer = $("#firstscoreplayer").val();
|
|
|
|
|
+ var lastscoreplayer = $("#lastscoreplayer").val();
|
|
|
|
|
+ var matchwinerplayer = $("#matchwinerplayer").val();
|
|
|
|
|
|
|
|
$.ajax({
|
|
$.ajax({
|
|
|
type: 'POST',
|
|
type: 'POST',
|
|
|
dataType: 'json',
|
|
dataType: 'json',
|
|
|
- url: '/admin/Sportsfoot/onlyresult',
|
|
|
|
|
|
|
+ url: '/admin/Sportsbq/onlyresult',
|
|
|
data: {matchid:matchid},
|
|
data: {matchid:matchid},
|
|
|
success: function(data) {
|
|
success: function(data) {
|
|
|
var allnum = data.home_score+ data.guest_score;
|
|
var allnum = data.home_score+ data.guest_score;
|
|
|
|
|
|
|
|
if(allnum>0){
|
|
if(allnum>0){
|
|
|
- if(firstscore.length==0){
|
|
|
|
|
|
|
+ if(firstscoreplayer.length==0){
|
|
|
alert("请输入最先进球");return;
|
|
alert("请输入最先进球");return;
|
|
|
}
|
|
}
|
|
|
- if(lastscore.length==0){
|
|
|
|
|
|
|
+ if(lastscoreplayer.length==0){
|
|
|
alert("请输入最后进球");return;
|
|
alert("请输入最后进球");return;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -403,11 +455,10 @@
|
|
|
$.ajax({
|
|
$.ajax({
|
|
|
type: 'POST',
|
|
type: 'POST',
|
|
|
dataType: 'json',
|
|
dataType: 'json',
|
|
|
- url: '/admin/Sportsfoot/addend',
|
|
|
|
|
- data: {matchid:matchid,firstscore:firstscore,lastscore:lastscore,matchwiner:matchwiner,homeallcard:homeallcard,guestallcard:guestallcard,homehalfcard:homehalfcard,guesthalfcard:guesthalfcard,homeallcorner:homeallcorner,guestallcorner:guestallcorner,homehalfcorner:homehalfcorner,guesthalfcorner:guesthalfcorner},
|
|
|
|
|
|
|
+ url: '/admin/Sportsbq/addend',
|
|
|
|
|
+ data: {matchid:matchid,firstscoreplayer:firstscoreplayer,lastscoreplayer:lastscoreplayer,matchwinerplayer:matchwinerplayer},
|
|
|
success: function(data) {
|
|
success: function(data) {
|
|
|
|
|
|
|
|
-
|
|
|
|
|
layer.msg(data.msg);
|
|
layer.msg(data.msg);
|
|
|
location. reload()//刷新当前页面
|
|
location. reload()//刷新当前页面
|
|
|
|
|
|
|
@@ -463,7 +514,6 @@
|
|
|
url: '/admin/Sportsbq/Settlement',
|
|
url: '/admin/Sportsbq/Settlement',
|
|
|
data: {match_id:match_id,type:type},
|
|
data: {match_id:match_id,type:type},
|
|
|
success: function(data) {
|
|
success: function(data) {
|
|
|
- // alert(data);
|
|
|
|
|
if(data.status==1){
|
|
if(data.status==1){
|
|
|
layer.msg(data.msg);
|
|
layer.msg(data.msg);
|
|
|
location. reload()//刷新当前页面
|
|
location. reload()//刷新当前页面
|
|
@@ -481,14 +531,6 @@
|
|
|
var num = num;
|
|
var num = num;
|
|
|
var match_id = match_id;
|
|
var match_id = match_id;
|
|
|
var reg = /^[0-99]\d*$/;
|
|
var reg = /^[0-99]\d*$/;
|
|
|
- var okteamscore = $("#okteamscore"+match_id).val();
|
|
|
|
|
- var ozteamscore = $("#ozteamscore"+match_id).val();
|
|
|
|
|
- var tkteamscore = $("#tkteamscore"+match_id).val();
|
|
|
|
|
- var tzteamscore = $("#tzteamscore"+match_id).val();
|
|
|
|
|
- var skteamscore = $("#skteamscore"+match_id).val();
|
|
|
|
|
- var szteamscore = $("#szteamscore"+match_id).val();
|
|
|
|
|
- var akteamscore = $("#akteamscore"+match_id).val();
|
|
|
|
|
- var azteamscore = $("#azteamscore"+match_id).val();
|
|
|
|
|
|
|
|
|
|
if(reg.test(num)==false){
|
|
if(reg.test(num)==false){
|
|
|
layer.msg('不能为空值');
|
|
layer.msg('不能为空值');
|
|
@@ -499,7 +541,7 @@
|
|
|
type: 'POST',
|
|
type: 'POST',
|
|
|
dataType: 'json',
|
|
dataType: 'json',
|
|
|
url: '/admin/Sportsbq/updatascore',
|
|
url: '/admin/Sportsbq/updatascore',
|
|
|
- data: {only:only,num:num,match_id:match_id,okteamscore:okteamscore,ozteamscore:ozteamscore,tkteamscore:tkteamscore,tzteamscore:tzteamscore,skteamscore:skteamscore,szteamscore:szteamscore,akteamscore:akteamscore,azteamscore:azteamscore},
|
|
|
|
|
|
|
+ data: {only:only,num:num,match_id:match_id},
|
|
|
success: function(data) {
|
|
success: function(data) {
|
|
|
if(data.status==1){
|
|
if(data.status==1){
|
|
|
layer.msg(data.msg);
|
|
layer.msg(data.msg);
|