Commit 8ea04ff0 by libai

ft活动上线

parent 83430208
...@@ -497,13 +497,6 @@ iframe { ...@@ -497,13 +497,6 @@ iframe {
text-align: center; text-align: center;
color: #FFFF50; color: #FFFF50;
} }
.act-room-bg1 {
width: 8rem;
height: 10.375rem;
background: url(../images/act-room-bg.png) no-repeat;
background-size: 100% 100%;
float: right;
}
.layer-game { .layer-game {
display: none; display: none;
width: 10rem; width: 10rem;
...@@ -512,3 +505,23 @@ iframe { ...@@ -512,3 +505,23 @@ iframe {
background-size: 100% 100%; background-size: 100% 100%;
position: relative; position: relative;
} }
.act-room-bg1 {
width: 8rem;
height: 10.375rem;
background: url(../images/act-room-bg.png) no-repeat;
background-size: 100% 100%;
float: right;
}
.act-room-bg1 .num-box {
position: absolute;
right: 0.2rem;
top: 1.25rem;
width: 2rem;
height: 2rem;
border-radius: 50%;
font-size: 1.3rem;
text-align: center;
line-height: 2rem;
font-weight: 700;
color: #f0ff25;
}
...@@ -511,14 +511,6 @@ iframe{ ...@@ -511,14 +511,6 @@ iframe{
text-align: center; text-align: center;
color: #FFFF50; color: #FFFF50;
} }
.act-room-bg1{
width: 8rem;
height: 10.375rem;
background: url(../images/act-room-bg.png)no-repeat;
background-size: 100% 100%;
float: right;
}
.layer-game{ .layer-game{
display: none; display: none;
width: 10rem; width: 10rem;
...@@ -527,3 +519,26 @@ iframe{ ...@@ -527,3 +519,26 @@ iframe{
background-size: 100% 100%; background-size: 100% 100%;
position: relative; position: relative;
} }
.act-room-bg1{
width: 8rem;
height: 10.375rem;
background: url(../images/act-room-bg.png)no-repeat;
background-size: 100% 100%;
float: right;
.num-box{
position: absolute;
right: 0.2rem;
top: 1.25rem;
width: 2rem;
height: 2rem;
// background: pink;
border-radius: 50%;
font-size: 1.3rem;
text-align: center;
line-height: 2rem;
font-weight: 700;
color: rgb(240, 255, 37);
}
}
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<script src="lib/lottie-player.js"></script> <script src="lib/lottie-player.js"></script>
<body style="background: rgba(0, 0, 0, 0);"> <body style="background: rgba(0, 0, 0, 0);">
<div class="act-room-bg1 "> <div class="act-room-bg1 ">
<div class="num-box">0</div>
</div> </div>
</body> </body>
<script src="lib/jquery-3.1.1.min.js"></script> <script src="lib/jquery-3.1.1.min.js"></script>
...@@ -61,9 +61,18 @@ $(function(){ ...@@ -61,9 +61,18 @@ $(function(){
} }
function view(){ function view(){
$.ajax({
url:$ip+'/actSecretGarden/getRoomPartData.html',
success:function(data){
console.log('圖標數據',data)
$(".num-box").text(data.result.roomData.flowerNum)
} }
})
}
view()
setInterval(function(){
view()
},60000)
function getData(roomid) { function getData(roomid) {
var opts = { var opts = {
reconnectionDelay: 5000, reconnectionDelay: 5000,
......
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 sign in to comment