Commit 0bf4e56d by libai

ft活动上线

parent 7dcbe0fa
......@@ -678,3 +678,33 @@ iframe {
animation-iteration-count: infinite;
-webkit-animation-iteration-count: infinite;
}
.act-room-bg {
position: relative;
width: 8rem;
height: 3.402rem;
background: url(../images/act-room-bg.png) no-repeat;
background-size: 100% 100%;
float: right;
}
.act-room-p1 {
color: #fff;
font-size: 0.65rem;
text-indent: 0.7rem;
padding-top: 0.6rem;
}
.act-room-p2 {
color: #fff;
font-size: 0.65rem;
text-indent: 0.7rem;
padding-top: 0.2rem;
}
.act-room-bg2 {
position: relative;
width: 5.04rem;
height: 3.402rem;
background: url(../images/act-room-bg2.png) no-repeat;
background-size: 100% 100%;
}
.act-room-bg2 p {
display: none;
}
......@@ -686,5 +686,35 @@ iframe{
-webkit-animation-iteration-count: infinite;
}
.fly-gift-stage3{
}
.act-room-bg{
position: relative;
width: 8rem;
height: 3.402rem;
background: url(../images/act-room-bg.png)no-repeat;
background-size: 100% 100%;
float: right;
}
.act-room-p1{
color: #fff;
font-size: 0.65rem;
text-indent: 0.7rem;
padding-top: 0.6rem;
}
.act-room-p2{
color: #fff;
font-size: 0.65rem;
text-indent: 0.7rem;
padding-top: 0.2rem;
}
.act-room-bg2{
position: relative;
width: 5.04rem;
height: 3.402rem;
background: url(../images/act-room-bg2.png)no-repeat;
background-size: 100% 100%;
p{
display: none;
}
}
\ No newline at end of file
......@@ -338,6 +338,7 @@ $(function(){
}
else if(list.taskStatus==2){
$(".fly-gift"+(i+1)+"").addClass("fly-gift-stage3").attr("data-type",list.taskId)
$(".fly-gift"+(i+1)+"").attr("src","images/gift3.png")
$(".fly-gift"+(i+1)+"").unbind("click")
}
......
......@@ -30,7 +30,10 @@
</head>
<script src="lib/lottie-player.js"></script>
<body style="background: rgba(0, 0, 0, 0);">
<div style="display: none;" class="act-room-bg"></div>
<div style="display: none;" class="act-room-bg act-room-bg2">
<p class="act-room-p1">主播積分 : 8000</p>
<p class="act-room-p2">排名 : 5</p>
</div>
</body>
<script src="lib/jquery-3.1.1.min.js"></script>
<script src="layer-v3.1.0/layer/layer.js"></script>
......@@ -41,8 +44,6 @@ $(function(){
if(sessionStorage.lang!=2){
$(".act-room-bg").fadeIn(200)
}
$(".act-room-bg").on("click",function(){
var obj = {
"cid": 12,
......@@ -50,7 +51,7 @@ $(function(){
"data": {
"msg": '跳转集合功能',
"jumptype": 3,
"url": $url + "/activeFt/Fishing/index.html" + location.search+'',
"url": $url + "/activeFt/luckyFly/index.html" + location.search+'',
}
}
var obj2 = JSON.stringify(obj);
......@@ -59,12 +60,24 @@ $(function(){
$(".dew-exc").on("click",function(){
})
view()
function view(){
$.ajax({
url:$ip+'/actSpaceOdyssey/getRoomPartData.html',
success:function(data){
console.log('圖標數據',data)
if(data.result.userData.signReceive!=0){
$(".act-room-bg").removeClass("act-room-bg2")
}
$(".act-room-p1").text('主播積分 : '+data.result.roomData.score+'')
if(data.result.roomData.rank!=-1)$(".act-room-p2").text('排名 : '+data.result.roomData.rank+'')
else $(".act-room-p2").text('排名 : --')
}
})
}
setInterval(function(){
view()
},60000)
setTimeout(function(){
if(sessionStorage.lang==2)return;
......
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