Commit c1b2c738 authored by 罗超's avatar 罗超

补充了数钞票的部分内容

parent 32e7af99
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
</head> </head>
<body style="height: 100%;overflow: hidden;width: 100%;position: fixed;"> <body style="height: 100%;overflow: hidden;width: 100%;position: fixed;">
<audio src="video/welcom_money.mp3" autoplay></audio> <audio src="video/welcom_money.mp3" 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="money_count">
<div class="useropera"> <div class="useropera">
<div class="content-opt-title"> <div class="content-opt-title">
...@@ -73,31 +74,36 @@ ...@@ -73,31 +74,36 @@
</div> </div>
</div> </div>
</div> </div>
<div class="rank_mask rank_mask2" id="notice"> <div class="rank_mask rank_mask2" id="notice" style="display: flex;">
<div class="zhezao"></div> <div class="zhezao"></div>
<div class="notice_box"> <div class="notice_box">
<img src="../../images/aM/all_d.png" alt="" class="notice_top"> <img src="../../images/aM/all_d.png" alt="" class="notice_top">
<span>恭喜你获得支付宝口令红包</span> <span>恭喜你获得支付宝口令红包</span>
<div class="notice_content"> <input class="notice_content" id="tokenReadPackage" readonly="readonly" value="哈哈哈哈" />
<span id="tokenReadPackage"></span> <button class="all_Receive" id="getAliPay" data-clipboard-action="copy" data-clipboard-target="#tokenReadPackage">
</div> 复制并领取
<div class="all_Receive"> </button>
<span>立即领取</span>
</div>
<div class="all_Close"></div> <div class="all_Close"></div>
</div> </div>
</div> </div>
</body> </body>
<script type="text/javascript" src="../../js/jquery-1.10.2.js"></script> <script type="text/javascript" src="../../js/jquery-1.10.2.js"></script>
<script src="../../js/moveJs/jquery.signalR.min.js"></script> <script src="../../js/moveJs/jquery.signalR.min.js"></script>
<script src="js/clipboard.min.js"></script>
<script> <script>
let conn; let conn;
let proxy; let proxy;
let status=0; let status=0;
let clock=null; let clock=null;
let isWinning=false; let isWinning=false;
// clipboard.on('success', function(e) {
// console.log(e);
// });
// clipboard.on('error', function(e) {
// console.log(e);
// });
function getMyRank(){ function getMyRank(){
proxy.invoke('GetUserRank','Money').done(r=>{ proxy.invoke('GetUserRank','Money','1951_Money').done(r=>{
if(r.r!=-1){ if(r.r!=-1){
$('#myTop').html(r); $('#myTop').html(r);
}else{ }else{
...@@ -159,13 +165,14 @@ ...@@ -159,13 +165,14 @@
proxy.on("notifyWinning",function(d){ proxy.on("notifyWinning",function(d){
//alert("恭喜你中奖了:"+d); //alert("恭喜你中奖了:"+d);
$('#notice').css('display','flex'); $('#notice').css('display','flex');
$('#tokenReadPackage').text(d); $('#tokenReadPackage').val(d);
$("#smm").css('display','none'); $("#smm").css('display','none');
}) })
} }
this.initConnection() this.initConnection()
$(function () { $(function () {
var clipboard = new Clipboard('.all_Receive');
var music=document.getElementById('music'); var music=document.getElementById('music');
var money_en = $("body"); var money_en = $("body");
//传递后台的分数 //传递后台的分数
...@@ -199,6 +206,11 @@ ...@@ -199,6 +206,11 @@
$('.close').click(function(){ $('.close').click(function(){
$('.rank_mask').css('display','none'); $('.rank_mask').css('display','none');
}); });
$('#getAliPay').click(function(){
setTimeout(function(){
$('#goali')[0].click();
},500);
});
//点击查看排行榜 //点击查看排行榜
$('#rankBtn').click(function(){ $('#rankBtn').click(function(){
$('#smm').css('display','block'); $('#smm').css('display','block');
...@@ -246,6 +258,13 @@ ...@@ -246,6 +258,13 @@
$('.tipsDiv').css('display','block'); $('.tipsDiv').css('display','block');
$('.play_tips').css('display','none'); $('.play_tips').css('display','none');
var clockReady = window.setInterval(function(){ var clockReady = window.setInterval(function(){
if(Count==5){
$('.circleCount').html("Ready");
}else if(Count==1){
$('.circleCount').html("GO");
}else{
$('.circleCount').html(Count-1);
}
Count--; Count--;
$('.circleCount').html(Count); $('.circleCount').html(Count);
if(Count==0){ if(Count==0){
......
...@@ -604,19 +604,16 @@ body { ...@@ -604,19 +604,16 @@ body {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
margin-top: 1.66rem; margin-top: 1.66rem;
}
.notice_content span {
width: 100%;
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
margin-top: 0;
white-space: nowrap; white-space: nowrap;
font-size: 1.2rem; font-size: 1.2rem;
text-align: center; text-align: center;
outline: none;
display: block;
} }
.all_Receive { .all_Receive {
width: 12.5rem; width: 12.5rem;
height: 2.5rem; height: 2.5rem;
...@@ -626,13 +623,10 @@ body { ...@@ -626,13 +623,10 @@ body {
justify-content: center; justify-content: center;
margin-top: 1.2rem; margin-top: 1.2rem;
border-radius: 1.35rem; border-radius: 1.35rem;
}
.all_Receive span {
color: #893630; color: #893630;
font-size: 1.1rem; font-size: 1.1rem;
margin-top: 0; border: none;
outline: none;
} }
.all_Close { .all_Close {
......
This diff is collapsed.
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