Commit cc12f3d0 authored by 华国豪's avatar 华国豪 🙄
parents 6dcc01f6 5cdc0c1e
...@@ -164,10 +164,10 @@ ...@@ -164,10 +164,10 @@
}); });
var proxy = conn.createHubProxy("annualLeaveHub"); var proxy = conn.createHubProxy("annualLeaveHub");
conn.start().done(data => { conn.start().done(data => {
// ownranking();//自己排名
sendMsg(); sendMsg();
sendScore(); sendScore();
joinGeme() //参加活动 joinGeme() //参加活动
ownranking();//自己排名
}).fail(data => {}); }).fail(data => {});
getMsg() getMsg()
...@@ -199,7 +199,7 @@ ...@@ -199,7 +199,7 @@
$('.status3').css({'display':'none'}); $('.status3').css({'display':'none'});
} }
if(data.status==-1){ if(data.status==-1){
ownranking()
$('.status').css({'display':'none'}); $('.status').css({'display':'none'});
$('.status1').css({'display':'none'}); $('.status1').css({'display':'none'});
$('.status2').css({'display':'none'}); $('.status2').css({'display':'none'});
...@@ -226,11 +226,11 @@ ...@@ -226,11 +226,11 @@
$('.o_ranking').html('第'+data.r+'名') $('.o_ranking').html('第'+data.r+'名')
}else { }else {
$('.o_ranking').html('未上榜') $('.o_ranking').html('未上榜')
} }
//显示统计窗口
}); });
} }
function getMsg() { function getMsg() {
...@@ -279,7 +279,6 @@ ...@@ -279,7 +279,6 @@
}) })
} }
$('.bbb').click(function () { $('.bbb').click(function () {
StartGame() StartGame()
...@@ -412,7 +411,7 @@ ...@@ -412,7 +411,7 @@
window.clearInterval(clock); window.clearInterval(clock);
window.clearInterval(timer1); //清除老鼠 window.clearInterval(timer1); //清除老鼠
sendScore(score) sendScore(score)
ownranking() //获取自己排名 // ownranking() //获取自己排名
$('#rank_mask').css('display','block'); $('#rank_mask').css('display','block');
} }
}, 1000) }, 1000)
......
...@@ -22,7 +22,7 @@ p{ ...@@ -22,7 +22,7 @@ p{
.content{ .content{
width:90% ; width:90% ;
height: 50%; height: 50%;
margin-top: 1.8rem; margin-top: 2rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
......
...@@ -116,9 +116,16 @@ ...@@ -116,9 +116,16 @@
}else { }else {
proxy.invoke("UserVoteProgarm",activity.EmployeeId).done(data => { proxy.invoke("UserVoteProgarm",activity.EmployeeId).done(data => {
console.log(data) console.log(data)
$('.popup').css('display','block') if(data == 2){
$('.popup_bg img').attr('src','../../images/aM/toupiao.png') layer.msg('您已对本节目投过票了');
$('.popup_bg span').html('恭喜你!投票成功') $('.vote_s').css('display','none')
}else {
$('.popup').css('display','block')
$('.popup_bg img').attr('src','../../images/aM/toupiao.png')
$('.popup_bg span').html('恭喜你!投票成功')
}
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment