Commit 4eb71f58 by libai

ft活动上线

parent b5806601
...@@ -39,16 +39,9 @@ ...@@ -39,16 +39,9 @@
<script> <script>
$(function(){ $(function(){
if(sessionStorage.lang!=2){ if(sessionStorage.lang!=2){
$("body").addClass("bg-en")
$(".act-room-bg").fadeIn(200) $(".act-room-bg").fadeIn(200)
// $(".act-room-p1").text("score:")
// $(".act-room-p3").text("goal:")
$(".en-txt1").text("score")
$(".en-txt2").text("PROG")
$(".en-txt3").text("rank")
} }
var jump=1
$(".act-room-bg").on("click",function(){ $(".act-room-bg").on("click",function(){
var obj = { var obj = {
......
.bg-en .act-room-bg2 {
background: url(../images/en/act-room-bg2.png) no-repeat;
background-size: 100% 100%;
}
.act-room-bg { .act-room-bg {
width: 10rem; float: right;
height: 5.577rem; width: 8rem;
background: url(../images/act-room-bg.png) no-repeat; height: 3.352rem;
background: url(../images/act-room1.png) no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
} }
.act-room-bg .act-p1 {
text-indent: 1.2rem;
font-size: 0.8rem;
color: #fff;
padding-top: 1rem;
}
.act-room-bg .act-p1 span {
color: #FFF337;
}
.act-room-bg .act-p2 {
text-indent: 1.2rem;
font-size: 0.8rem;
color: #fff;
padding-top: 0.3rem;
}
.act-room-bg .act-p2 span {
color: #FFF337;
}
.act-room-bg2 {
width: 10rem;
height: 5.577rem;
background: url(../images/act-room-bg2.png) no-repeat;
background-size: 100% 100%;
}
.act-room-bg2 > p {
display: none;
}
.bg-en{
.act-room-bg2{
background: url(../images/en/act-room-bg2.png)no-repeat;
background-size: 100% 100%;
}
}
.act-room-bg{ .act-room-bg{
width: 10rem; float: right;
height: 5.577rem; width: 8rem;
background: url(../images/act-room-bg.png)no-repeat; height: 3.352rem;
background-size: 100% 100%; background: url(../images/act-room1.png)no-repeat;
.act-p1{
text-indent: 1.2rem;
font-size: 0.8rem;
color: #fff;
padding-top: 1rem;
span{
color: #FFF337;
}
}
.act-p2{
text-indent: 1.2rem;
font-size: 0.8rem;
color: #fff;
padding-top: 0.3rem;
span{
color: #FFF337;
}
}
}
.act-room-bg2{
width: 10rem;
height: 5.577rem;
background: url(../images/act-room-bg2.png)no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
>p{
display: none;
}
} }
\ No newline at end of file
...@@ -30,10 +30,7 @@ ...@@ -30,10 +30,7 @@
</head> </head>
<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 style="display: none;" class="act-room-bg act-room-bg2"> <div style="display: none;" class="act-room-bg"></div>
<p class="act-p1"><i class="en-txt1">主播積分</i>: <span>8000</span></p>
<p class="act-p2"><i class="en-txt2">進度</i>: <span class="act-span2" style="margin-right: 0.5rem;">18%</span> <i class="en-txt3">排名</i>: <span class="act-span3">5</span></p>
</div>
</body> </body>
<script src="lib/jquery-3.1.1.min.js"></script> <script src="lib/jquery-3.1.1.min.js"></script>
<script src="lib/fsize.js"></script> <script src="lib/fsize.js"></script>
...@@ -44,14 +41,9 @@ ...@@ -44,14 +41,9 @@
$(function(){ $(function(){
var wsTimer=null var wsTimer=null
if(sessionStorage.lang!=2){ if(sessionStorage.lang!=2){
$("body").addClass("bg-en") $(".act-room-bg").fadeIn(200)
// $(".act-room-p1").text("score:")
// $(".act-room-p3").text("goal:")
$(".en-txt1").text("score")
$(".en-txt2").text("PROG")
$(".en-txt3").text("rank")
} }
var jump=1
$(".act-room-bg").on("click",function(){ $(".act-room-bg").on("click",function(){
var obj = { var obj = {
"cid": 12, "cid": 12,
...@@ -59,7 +51,7 @@ $(function(){ ...@@ -59,7 +51,7 @@ $(function(){
"data": { "data": {
"msg": '跳转集合功能', "msg": '跳转集合功能',
"jumptype": 3, "jumptype": 3,
"url": $url + "/activeFt/lucky777/index.html" + location.search+'&jump='+jump+'', "url": $url + "/activeFt/Fishing/index.html" + location.search+'&jump='+jump+'',
} }
} }
var obj2 = JSON.stringify(obj); var obj2 = JSON.stringify(obj);
...@@ -81,27 +73,11 @@ $(function(){ ...@@ -81,27 +73,11 @@ $(function(){
appCollaboration(obj2); appCollaboration(obj2);
function view(){ function view(){
$.ajax({
url:$ip+'/actLucky777/getRoomPartData.html',
success:function(data){
console.log('圖標數據',data)
if(data.result.userData.signReceive==0){
$(".act-room-bg").fadeIn(200)
return;
}
jump=2
$(".act-room-bg").removeClass("act-room-bg2").fadeIn(200)
$(".act-p1 span").text(data.result.roomData.score)
$(".act-span2").text(Math.floor(data.result.roomData.score/15000*100)+'%')
if(data.result.roomData.rank==-1)$(".act-span3").text('--')
else $(".act-span3").text(data.result.roomData.rank)
} }
})
}
view() view()
setInterval(function(){ setInterval(function(){
view()
},60000) },60000)
setTimeout(function(){ setTimeout(function(){
if(sessionStorage.lang==2)return; if(sessionStorage.lang==2)return;
......
...@@ -43,7 +43,7 @@ if (uid.indexOf("http://localhost:63342") > -1) { ...@@ -43,7 +43,7 @@ if (uid.indexOf("http://localhost:63342") > -1) {
sessionStorage.roomId=23864554 sessionStorage.roomId=23864554
} }
if (uid.indexOf("file:///") > -1) { if (uid.indexOf("file:///") > -1) {
sessionStorage.lang=2 sessionStorage.lang=1
sessionStorage.uid = 155100; sessionStorage.uid = 155100;
sessionStorage.token = 'debug' sessionStorage.token = 'debug'
sessionStorage.roomId=174003; sessionStorage.roomId=174003;
......
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