Commit 4eb71f58 by libai

ft活动上线

parent b5806601
......@@ -39,16 +39,9 @@
<script>
$(function(){
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(){
var obj = {
......
.bg-en .act-room-bg2 {
background: url(../images/en/act-room-bg2.png) no-repeat;
background-size: 100% 100%;
}
.act-room-bg {
width: 10rem;
height: 5.577rem;
background: url(../images/act-room-bg.png) no-repeat;
float: right;
width: 8rem;
height: 3.352rem;
background: url(../images/act-room1.png) no-repeat;
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{
width: 10rem;
height: 5.577rem;
background: url(../images/act-room-bg.png)no-repeat;
float: right;
width: 8rem;
height: 3.352rem;
background: url(../images/act-room1.png)no-repeat;
background-size: 100% 100%;
.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%;
>p{
display: none;
}
}
\ No newline at end of file
......@@ -30,10 +30,7 @@
</head>
<script src="lib/lottie-player.js"></script>
<body style="background: rgba(0, 0, 0, 0)">
<div style="display: none;" class="act-room-bg act-room-bg2">
<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>
<div style="display: none;" class="act-room-bg"></div>
</body>
<script src="lib/jquery-3.1.1.min.js"></script>
<script src="lib/fsize.js"></script>
......@@ -44,14 +41,9 @@
$(function(){
var wsTimer=null
if(sessionStorage.lang!=2){
$("body").addClass("bg-en")
// $(".act-room-p1").text("score:")
// $(".act-room-p3").text("goal:")
$(".en-txt1").text("score")
$(".en-txt2").text("PROG")
$(".en-txt3").text("rank")
$(".act-room-bg").fadeIn(200)
}
var jump=1
$(".act-room-bg").on("click",function(){
var obj = {
"cid": 12,
......@@ -59,7 +51,7 @@ $(function(){
"data": {
"msg": '跳转集合功能',
"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);
......@@ -81,27 +73,11 @@ $(function(){
appCollaboration(obj2);
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()
setInterval(function(){
view()
},60000)
setTimeout(function(){
if(sessionStorage.lang==2)return;
......
......@@ -43,7 +43,7 @@ if (uid.indexOf("http://localhost:63342") > -1) {
sessionStorage.roomId=23864554
}
if (uid.indexOf("file:///") > -1) {
sessionStorage.lang=2
sessionStorage.lang=1
sessionStorage.uid = 155100;
sessionStorage.token = 'debug'
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