Commit c45fa465 authored by Mac's avatar Mac
parents cae1962f 0a53675c
......@@ -181,7 +181,7 @@
$("#bg_box").css("top", `${(WindowH - 1020) * 0.5}px`)
$("#bg_box").css("transform", `scale(${WindowW / 1813}, ${WindowH / 1020})`)
}
var conn = $.hubConnection("http://192.168.2.65:7838/signalr", {
var conn = $.hubConnection("http://192.168.2.66:7838/signalr", {
qs: `i=888888&n=印象之旅&p=${encodeURIComponent(
"http://imgfile.oytour.com/New/Upload/User/20191018150051176.png"
)}`
......
......@@ -13,7 +13,7 @@
<title>疯狂数钞票</title>
</head>
<body style="height: 100%;overflow: hidden;width: 100%;position: fixed;">
<audio src="video/welcom_money.mp3" autoplay></audio>
<audio src="video/welcom_money.mp3" id="sound" autoplay></audio>
<a id="goali" href="alipays://platformapi/startapp" target="_blank" style="position: absolute;z-index: -1;">GO</a>
<div class="money_count">
<div class="useropera">
......@@ -74,12 +74,12 @@
</div>
</div>
</div>
<div class="rank_mask rank_mask2" id="notice" style="display: flex;">
<div class="rank_mask rank_mask2" id="notice">
<div class="zhezao"></div>
<div class="notice_box">
<img src="../../images/aM/all_d.png" alt="" class="notice_top">
<span>恭喜你获得支付宝口令红包</span>
<input class="notice_content" id="tokenReadPackage" readonly="readonly" value="哈哈哈哈" />
<input class="notice_content" id="tokenReadPackage" readonly="readonly" value="" />
<button class="all_Receive" id="getAliPay" data-clipboard-action="copy" data-clipboard-target="#tokenReadPackage">
复制并领取
</button>
......@@ -104,8 +104,9 @@
// });
function getMyRank(){
proxy.invoke('GetUserRank','Money','1951_Money').done(r=>{
console.log(r);
if(r.r!=-1){
$('#myTop').html(r);
$('#myTop').html(r.r);
}else{
$('#myTop').html('未上榜');
}
......@@ -164,6 +165,7 @@
function winning(){
proxy.on("notifyWinning",function(d){
//alert("恭喜你中奖了:"+d);
$("#sound").attr("src","video/zhongjiang.mp3");
$('#notice').css('display','flex');
$('#tokenReadPackage').val(d);
$("#smm").css('display','none');
......@@ -204,7 +206,7 @@
// });
//点击关闭统计弹窗
$('.close').click(function(){
$('.rank_mask').css('display','none');
$('#smm').css('display','none');
});
$('#getAliPay').click(function(){
setTimeout(function(){
......@@ -241,26 +243,27 @@
clock=null;
getMyRank();
//显示统计窗口
$('.rank_mask').css('display','block');
$('#smm').css('display','block');
$('.play_tips').css('display','none');
$('.tipsDiv').text('游戏已经结束咯');
$('.tipsDiv').css('display','block');
$("#sound").attr("src","video/gameover.mp3");
}
}
})
//游戏开始
function StartGame(){
$("#sound").attr("src","video/ready321go.mp3");
//$("#sound").play();
//3秒倒计时
$('.circleCount').html(3);
Count=3;
$('.circleCount').html("Ready");
Count=4;
Count2=30;
$('.circleCount').css('display','block');
$('.tipsDiv').css('display','block');
$('.play_tips').css('display','none');
var clockReady = window.setInterval(function(){
if(Count==5){
$('.circleCount').html("Ready");
}else if(Count==1){
if(Count==1){
$('.circleCount').html("GO");
}else{
$('.circleCount').html(Count-1);
......@@ -285,7 +288,7 @@
if (Count2 === 0) {
window.clearInterval(clock);
//显示统计窗口
$('.rank_mask').css('display','block');
$('#smm').css('display','block');
}
}, 1000)
}
......
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