Commit c0aab38b by libai

ft活动上线

parent 37d8a322
.bg-en .act-room-bg2 { .bg-en .act-room-bg2 {
background: url(../images/en/act-room-bg2.png) no-repeat; background: url(../images/en/act-room-bg2.png) no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
width: 8.5rem;
} }
.act-room-bg { .act-room-bg {
width: 10rem; width: 10rem;
height: 5.646rem; height: 5.577rem;
background: url(../images/act-room-bg.png) no-repeat; background: url(../images/act-room-bg.png) no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
} }
.act-room-bg2 { .act-room-bg .act-p1 {
width: 8rem; text-indent: 1.2rem;
height: 4.393rem;
float: right;
background: url(../images/act-room-bg2.png) no-repeat;
background-size: 100% 100%;
}
.act-room-bg2 > div,
.act-room-bg2 > p {
font-size: 0;
}
.act-room-p1 {
width: 5rem;
text-align: center;
color: #467EEE;
font-size: 0.8rem; font-size: 0.8rem;
position: absolute; color: #fff;
top: 1.85rem; padding-top: 1rem;
left: 0.5rem;
} }
.act-room-p2 { .act-room-bg .act-p1 span {
width: 5rem; color: #FFF337;
text-align: left;
color: #FF5000;
font-size: 0.8rem;
position: absolute;
top: 1.9rem;
left: 4.9rem;
font-weight: 700;
} }
.act-room-p3 { .act-room-bg .act-p2 {
width: 5rem; text-indent: 1.2rem;
text-align: center;
color: #467EEE;
font-size: 0.8rem; font-size: 0.8rem;
position: absolute; color: #fff;
top: 3.3rem; padding-top: 0.3rem;
left: 0.5rem;
} }
.act-room-p4 { .act-room-bg .act-p2 span {
width: 5rem; color: #FFF337;
text-align: left;
color: #FF5000;
font-size: 0.8rem;
position: absolute;
top: 3.3rem;
left: 4.9rem;
font-weight: 700;
} }
.act-title { .act-room-bg2 {
position: absolute;
top: 0.2rem;
width: 10rem; width: 10rem;
text-align: center; height: 5.577rem;
font-size: 0.8rem; background: url(../images/act-room-bg2.png) no-repeat;
font-weight: 700; background-size: 100% 100%;
color: #FFFFFF; }
text-shadow: -0.06rem 0.06rem 0.06rem #1B55EC, -0.06rem 0.06rem 0.06rem #1B55EC, -0.06rem 0.06rem 0.06rem #1B55EC; .act-room-bg2 > p {
display: none;
} }
...@@ -2,70 +2,41 @@ ...@@ -2,70 +2,41 @@
.act-room-bg2{ .act-room-bg2{
background: url(../images/en/act-room-bg2.png)no-repeat; background: url(../images/en/act-room-bg2.png)no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
width: 8.5rem;
} }
} }
.act-room-bg{ .act-room-bg{
width: 10rem; width: 10rem;
height: 5.646rem; height: 5.577rem;
background: url(../images/act-room-bg.png)no-repeat; background: url(../images/act-room-bg.png)no-repeat;
background-size: 100% 100%; 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{ .act-room-bg2{
width: 8rem; width: 10rem;
height: 4.393rem; height: 5.577rem;
float: right;
background: url(../images/act-room-bg2.png)no-repeat; background: url(../images/act-room-bg2.png)no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
>div,>p{ >p{
font-size: 0; display: none;
} }
} }
\ No newline at end of file
.act-room-p1{
width: 5rem;
text-align: center;
color: #467EEE;
font-size: 0.8rem;
position: absolute;
top: 1.85rem;
left: 0.5rem;
}
.act-room-p2{
width: 5rem;
text-align: left;
color: #FF5000;
font-size: 0.8rem;
position: absolute;
top: 1.9rem;
left: 4.9rem;
font-weight: 700;
}
.act-room-p3{
width: 5rem;
text-align: center;
color: #467EEE;
font-size: 0.8rem;
position: absolute;
top: 3.3rem;
left: 0.5rem;
}
.act-room-p4{
width: 5rem;
text-align: left;
color: #FF5000;
font-size: 0.8rem;
position: absolute;
top: 3.3rem;
left: 4.9rem;
font-weight: 700;
}
.act-title{
position: absolute;
top: 0.2rem;
width: 10rem;
text-align: center;
font-size: 0.8rem;
font-weight: 700;
color: #FFFFFF;
text-shadow: -0.06rem 0.06rem 0.06rem #1B55EC,-0.06rem 0.06rem 0.06rem #1B55EC,-0.06rem 0.06rem 0.06rem #1B55EC;
}
\ No newline at end of file

19.2 KB | W: | H:

27 KB | W: | H:

ftIcon/action2/images/act-room-bg.png
ftIcon/action2/images/act-room-bg.png
ftIcon/action2/images/act-room-bg.png
ftIcon/action2/images/act-room-bg.png
  • 2-up
  • Swipe
  • Onion skin

13.7 KB | W: | H:

24.6 KB | W: | H:

ftIcon/action2/images/act-room-bg2.png
ftIcon/action2/images/act-room-bg2.png
ftIcon/action2/images/act-room-bg2.png
ftIcon/action2/images/act-room-bg2.png
  • 2-up
  • Swipe
  • Onion skin

15.2 KB | W: | H:

24.7 KB | W: | H:

ftIcon/action2/images/en/act-room-bg2.png
ftIcon/action2/images/en/act-room-bg2.png
ftIcon/action2/images/en/act-room-bg2.png
ftIcon/action2/images/en/act-room-bg2.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<link rel="stylesheet" href="css/base.css"> <link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/layer.css"> <link rel="stylesheet" href="css/layer.css">
<link rel="stylesheet" href="css/daily.css"> <link rel="stylesheet" href="css/daily.css">
<link rel="stylesheet" href="css/index.css?v=2024083101"> <link rel="stylesheet" href="css/index.css?v=2024092701">
<link rel="stylesheet" href="css/liMarquee.css"> <link rel="stylesheet" href="css/liMarquee.css">
<style> <style>
.layui-layer-shade { .layui-layer-shade {
...@@ -31,11 +31,8 @@ ...@@ -31,11 +31,8 @@
<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 act-room-bg2">
<div class="act-title"></div> <p class="act-p1"><i class="en-txt1">主播積分</i>: <span>8000</span></p>
<p class="act-room-p1">主播積分:</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>
<p class="act-room-p2"></p>
<p class="act-room-p3">目標積分:</p>
<p class="act-room-p4"></p>
</div> </div>
</body> </body>
<script src="lib/jquery-3.1.1.min.js"></script> <script src="lib/jquery-3.1.1.min.js"></script>
...@@ -48,145 +45,75 @@ $(function(){ ...@@ -48,145 +45,75 @@ $(function(){
var wsTimer=null var wsTimer=null
if(sessionStorage.lang!=2){ if(sessionStorage.lang!=2){
$("body").addClass("bg-en") $("body").addClass("bg-en")
$(".act-room-p1").text("score:") // $(".act-room-p1").text("score:")
$(".act-room-p3").text("goal:") // $(".act-room-p3").text("goal:")
} $(".en-txt1").text("score")
var obj = { $(".en-txt2").text("PROG")
"cid": 43, $(".en-txt3").text("rank")
"reqCode": new Date().getTime(), }
"data": { var jump=1
"type":1, $(".act-room-bg").on("click",function(){
// "width":314,
"width":120,
"height":69,
'unit':2,
"position":1
}
}
var obj2 = JSON.stringify(obj);
appCollaboration(obj2);
if(sessionStorage.lang==2)var titleName=['','新秀出道','閃亮新星','星光熠熠','璀璨佳人','風華絕代','傾國傾城']
else var titleName=['','Lv.1','Lv.2','Lv.3','Lv.4','Lv.5','Lv.6']
function view(){
$.ajax({
url:$ip+'/actStarSearchTour/getRoomPartData.html',
success:function(data){
console.log('圖標數據',data)
if(data.result.userData.isPaid==0||data.result.userData.isNewUserGiftVoucher==1){
//進入新人流程
if(data.result.userData.newUserAwardTaskNum<5){
$(".act-room-bg").fadeIn(200)
if(data.result.userData.isNewUserGiftSend==0){
goPop=2
$(".act-room-bg").unbind("click").on("click",function(){
$.ajax({
url:$ip+'/actSecretGarden/openPopup.html',
data:{
width:'0',
popupUrl:$url + "/activeFt/newMan/pop.html" + location.search+'',
height:'0.5',
heightR:'70',
x:'0',
y:'0.5',
},
success:function(){
}
})
})
}
else{
$(".act-room-bg").unbind("click").on("click",function(){
var obj = {
"cid": 12,
"reqCode": new Date().getTime(),
"data": {
"msg": '跳转集合功能',
"jumptype": 3,
"url": $url + "/activeFt/newMan/index.html" + location.search+'&jump=1',
}
}
var obj2 = JSON.stringify(obj);
appCollaboration(obj2);
})
}
}
//已經完成了五個任務
else{
$(".act-room-bg").fadeIn(200).removeClass("act-room-bg2")
$(".act-room-bg").unbind("click").on("click",function(){
var obj = { var obj = {
"cid": 12, "cid": 12,
"reqCode": new Date().getTime(), "reqCode": new Date().getTime(),
"data": { "data": {
"msg": '跳转集合功能', "msg": '跳转集合功能',
"jumptype": 3, "jumptype": 3,
"url": $url + "/activeFt/newMan/index.html" + location.search+'&', "url": $url + "/activeFt/lucky777/index.html" + location.search+'&jump='+jump+'',
} }
} }
var obj2 = JSON.stringify(obj); var obj2 = JSON.stringify(obj);
appCollaboration(obj2); appCollaboration(obj2);
}) })
if(data.result.userData.isBuyMonthlyCard==0){
goPop=1
}
}
}else{
$(".act-room-bg").fadeIn(200).removeClass("act-room-bg2")
$(".act-room-bg").unbind("click").on("click",function(){
var obj = { var obj = {
"cid": 12, "cid": 43,
"reqCode": new Date().getTime(), "reqCode": new Date().getTime(),
"data": { "data": {
"msg": '跳转集合功能', "type":1,
"jumptype": 3, // "width":314,
"url": $url + "/activeFt/newMan/index.html" + location.search+'&', "width":120,
"height":68,
'unit':2,
"position":1
} }
} }
var obj2 = JSON.stringify(obj); var obj2 = JSON.stringify(obj);
appCollaboration(obj2); appCollaboration(obj2);
})
if(data.result.userData.isBuyMonthlyCard==0){
goPop=1
}
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)
} }
$(".act-title").text(titleName[data.result.roomData.level])
$(".act-room-p2").text(data.result.roomData.score)
$(".act-room-p4").text(data.result.roomData.levelScore)
}
}) })
} }
view() view()
setInterval(function(){ setInterval(function(){
view() view()
},60000) },60000)
setTimeout(function() { setTimeout(function(){
if(goPop==2){ if(sessionStorage.lang==2)return;
setTimeout(function() { if(localStorage.lucky777==undefined||localStorage.lucky777<new Date().getTime()){
$.ajax({ localStorage.lucky777=(Number(new Date().getTime())+86400000)
url:$ip+'/actStarSearchTour/triggerOpenPopup.html',
data:{
},
success:function(){
}
})
}, 300000);
}
if(goPop==1){
if(localStorage.newManLayer==undefined||localStorage.newManLayer<new Date().getTime()){
localStorage.newManLayer=(Number(new Date().getTime())+86400000)
setTimeout(function() {
$.ajax({ $.ajax({
url:$ip+'/actSecretGarden/openPopup.html', url:$ip+'/actSecretGarden/openPopup.html',
data:{ data:{
width:'0', width:'0',
popupUrl:$url + "/activeFt/newMan/pop2.html" + location.search+'', popupUrl:$url + "/activeFt/lucky777/pop.html",
height:'0.5', height:'0.5',
heightR:'110', heightR:'75',
x:'0', x:'0',
y:'0.5', y:'0.5',
}, },
...@@ -194,11 +121,8 @@ $(function(){ ...@@ -194,11 +121,8 @@ $(function(){
} }
}) })
}, 60000);
}
} }
}, 3000); },30000)
function getData(roomid) { function getData(roomid) {
var opts = { var opts = {
reconnectionDelay: 5000, reconnectionDelay: 5000,
......
...@@ -43,10 +43,10 @@ if (uid.indexOf("http://localhost:63342") > -1) { ...@@ -43,10 +43,10 @@ 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=1 sessionStorage.lang=2
sessionStorage.uid = 155100; sessionStorage.uid = 155100;
sessionStorage.token = 'debug' sessionStorage.token = 'debug'
sessionStorage.roomId=11134747; sessionStorage.roomId=174003;
sessionStorage.version=8890 sessionStorage.version=8890
sessionStorage.cid='web' sessionStorage.cid='web'
sessionStorage.pkg='h5' sessionStorage.pkg='h5'
......
...@@ -127,63 +127,45 @@ i { ...@@ -127,63 +127,45 @@ i {
} }
.act-room-bg { .act-room-bg {
width: 10rem; width: 10rem;
height: 10.079rem; height: 8.563rem;
background: url(../images/act-room-bg.png) no-repeat; background: url(../images/act-room-bg.png) no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
position: relative; position: relative;
} }
.act-room-bg2 { .act-room-bg2 {
width: 8rem; width: 10rem;
height: 4.393rem; height: 5.577rem;
float: right;
background: url(../images/act-room-bg2.png) no-repeat; background: url(../images/act-room-bg2.png) no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
} }
.act-room-bg2 > div,
.act-room-bg2 > p { .act-room-bg2 > p {
font-size: 0; display: none;
} }
.act-room-p1 { .act-p1 {
width: 10rem; color: #fff;
text-align: center; text-align: center;
color: #467EEE; width: 10rem;
font-size: 0.8rem; font-size: 0.8rem;
position: absolute; position: absolute;
top: 2.4rem; top: 1.2rem;
} }
.act-room-p2 { .act-p1 span {
width: 10rem; width: 10rem;
text-align: center;
color: #FF5000;
font-size: 0.8rem;
position: absolute; position: absolute;
top: 3.95rem; color: #FFF337;
top: 2.3rem;
left: 0;
font-size: 1rem;
font-weight: 700; font-weight: 700;
} }
.act-room-p3 { .act-p2 {
width: 10rem; color: #fff;
text-align: center; text-align: center;
color: #467EEE;
font-size: 0.8rem;
position: absolute;
top: 5.6rem;
}
.act-room-p4 {
width: 10rem; width: 10rem;
text-align: center;
color: #FF5000;
font-size: 0.8rem; font-size: 0.8rem;
position: absolute; position: absolute;
top: 7.25rem; top: 6rem;
font-weight: 700;
} }
.act-title { .act-p2 span {
position: absolute; color: #FFF337;
top: 0.2rem;
width: 10rem;
text-align: center;
font-size: 0.8rem;
font-weight: 700;
color: #FFFFFF;
text-shadow: -0.06rem 0.06rem 0.06rem #1B55EC, -0.06rem 0.06rem 0.06rem #1B55EC, -0.06rem 0.06rem 0.06rem #1B55EC;
} }
...@@ -144,62 +144,45 @@ i{ ...@@ -144,62 +144,45 @@ i{
//活動 //活動
.act-room-bg{ .act-room-bg{
width: 10rem; width: 10rem;
height: 10.079rem; height: 8.563rem;
background: url(../images/act-room-bg.png)no-repeat; background: url(../images/act-room-bg.png)no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
position: relative; position: relative;
} }
.act-room-bg2{ .act-room-bg2{
width: 8rem; width: 10rem;
height: 4.393rem; height: 5.577rem;
float: right;
background: url(../images/act-room-bg2.png)no-repeat; background: url(../images/act-room-bg2.png)no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
>div,>p{ >p{
font-size: 0; display: none;
} }
} }
.act-room-p1{ .act-p1{
width: 10rem; color: #fff;
text-align: center; text-align: center;
color: #467EEE; width: 10rem;
font-size: 0.8rem; font-size: 0.8rem;
position: absolute; position: absolute;
top: 2.4rem; top: 1.2rem;
} span{
.act-room-p2{
width: 10rem; width: 10rem;
text-align: center;
color: #FF5000;
font-size: 0.8rem;
position: absolute; position: absolute;
top: 3.95rem; color: #FFF337;
top: 2.3rem;
left: 0;
font-size: 1rem;
font-weight: 700; font-weight: 700;
}
} }
.act-room-p3{ .act-p2{
width: 10rem; color: #fff;
text-align: center; text-align: center;
color: #467EEE;
font-size: 0.8rem;
position: absolute;
top: 5.6rem;
}
.act-room-p4{
width: 10rem; width: 10rem;
text-align: center;
color: #FF5000;
font-size: 0.8rem; font-size: 0.8rem;
position: absolute; position: absolute;
top: 7.25rem; top: 6rem;
font-weight: 700; span{
} color: #FFF337;
.act-title{ }
position: absolute;
top: 0.2rem;
width: 10rem;
text-align: center;
font-size: 0.8rem;
font-weight: 700;
color: #FFFFFF;
text-shadow: -0.06rem 0.06rem 0.06rem #1B55EC,-0.06rem 0.06rem 0.06rem #1B55EC,-0.06rem 0.06rem 0.06rem #1B55EC;
} }
\ No newline at end of file

27.2 KB | W: | H:

28 KB | W: | H:

ftIcon/liveData/images/act-room-bg.png
ftIcon/liveData/images/act-room-bg.png
ftIcon/liveData/images/act-room-bg.png
ftIcon/liveData/images/act-room-bg.png
  • 2-up
  • Swipe
  • Onion skin

13.7 KB | W: | H:

24.7 KB | W: | H:

ftIcon/liveData/images/act-room-bg2.png
ftIcon/liveData/images/act-room-bg2.png
ftIcon/liveData/images/act-room-bg2.png
ftIcon/liveData/images/act-room-bg2.png
  • 2-up
  • Swipe
  • Onion skin

15.2 KB | W: | H:

24.7 KB | W: | H:

ftIcon/liveData/images/en/act-room-bg2.png
ftIcon/liveData/images/en/act-room-bg2.png
ftIcon/liveData/images/en/act-room-bg2.png
ftIcon/liveData/images/en/act-room-bg2.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<link rel="stylesheet" href="css/base.css"> <link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/layer.css"> <link rel="stylesheet" href="css/layer.css">
<link rel="stylesheet" href="css/daily.css"> <link rel="stylesheet" href="css/daily.css">
<link rel="stylesheet" href="css/index.css?v=2024080101"> <link rel="stylesheet" href="css/index.css?v=2024092701">
<link rel="stylesheet" href="css/liMarquee.css"> <link rel="stylesheet" href="css/liMarquee.css">
<style> <style>
.layui-layer-shade { .layui-layer-shade {
...@@ -31,13 +31,9 @@ ...@@ -31,13 +31,9 @@
</style> </style>
</head> </head>
<body c style="background:rgba(0,0,0,0)"> <body c style="background:rgba(0,0,0,0)">
<div class="act-room-bg"> <div style="display: none;" class="act-room-bg act-room-bg2">
<div class="act-title"></div> <p class="act-p1"><i class="en-txt1">主播積分</i>: <span>8000</span></p>
<p class="act-room-p1">主播積分:</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>
<p class="act-room-p2">--</p>
<p class="act-room-p3">目標積分:</p>
<p class="act-room-p4">--</p>
</div> </div>
<div class="room-bg1"> <div class="room-bg1">
<div class="room-bg-top">人氣</div> <div class="room-bg-top">人氣</div>
...@@ -80,10 +76,13 @@ $(function(){ ...@@ -80,10 +76,13 @@ $(function(){
var socketOk=null var socketOk=null
if(sessionStorage.lang!=2){ if(sessionStorage.lang!=2){
$("body").addClass("bg-en") $("body").addClass("bg-en")
$(".act-room-p1").text("score:") $(".en-txt1").text("score")
$(".act-room-p3").text("goal:") $(".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,
...@@ -91,23 +90,24 @@ $(function(){ ...@@ -91,23 +90,24 @@ $(function(){
"data": { "data": {
"msg": '跳转集合功能', "msg": '跳转集合功能',
"jumptype": 3, "jumptype": 3,
"url": $url + "/activeFt/newMan/index.html" + location.search+'&jump=1', "url": $url + "/activeFt/lucky777/index.html" + location.search+'&jump='+jump+'',
} }
} }
var obj2 = JSON.stringify(obj); var obj2 = JSON.stringify(obj);
appCollaboration(obj2); appCollaboration(obj2);
}) })
if(sessionStorage.lang==2)var titleName=['','新秀出道','閃亮新星','星光熠熠','璀璨佳人','風華絕代','傾國傾城']
else var titleName=['','Lv.1','Lv.2','Lv.3','Lv.4','Lv.5','Lv.6']
function ActView(){
function ActView(){
$.ajax({ $.ajax({
url:$ip+'/actStarSearchTour/getRoomPartData.html', url:$ip+'/actLucky777/getRoomPartData.html',
success:function(data){ success:function(data){
console.log('圖標數據',data) console.log('圖標數據',data)
$(".act-title").text(titleName[data.result.roomData.level]) jump=2
$(".act-room-p2").text(data.result.roomData.score) $(".act-room-bg").removeClass("act-room-bg2").fadeIn(200)
$(".act-room-p4").text(data.result.roomData.levelScore) $(".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)
} }
}) })
......
...@@ -141,71 +141,30 @@ ...@@ -141,71 +141,30 @@
top: -0.95vw; top: -0.95vw;
} }
.act-room-bg { .act-room-bg {
position: absolute;
right: -33.5vw;
top: -18.5vw;
transform: scale(0.33);
width: 10rem; width: 10rem;
height: 5.646rem; height: 5.577rem;
background: url(../images/act-room-bg.png) no-repeat; background: url(../images/act-room-bg.png) no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
} transform: scale(0.33);
.act-room-bg2 {
width: 8rem;
height: 4.393rem;
float: right;
background: url(../images/act-room-bg2.png) no-repeat;
background-size: 100% 100%;
}
.act-room-bg2 > div,
.act-room-bg2 > p {
font-size: 0;
}
.act-room-p1 {
width: 5rem;
text-align: center;
color: #467EEE;
font-size: 0.8rem;
position: absolute; position: absolute;
top: 1.85rem; top: -19vw;
left: 0.5rem; left: 33.2vw;
} }
.act-room-p2 { .act-room-bg .act-p1 {
width: 5rem; text-indent: 1.2rem;
text-align: left;
color: #FF5000;
font-size: 0.8rem; font-size: 0.8rem;
position: absolute; color: #fff;
top: 1.9rem; padding-top: 1rem;
left: 4.9rem;
font-weight: 700;
} }
.act-room-p3 { .act-room-bg .act-p1 span {
width: 5rem; color: #FFF337;
text-align: center;
color: #467EEE;
font-size: 0.8rem;
position: absolute;
top: 3.3rem;
left: 0.5rem;
} }
.act-room-p4 { .act-room-bg .act-p2 {
width: 5rem; text-indent: 1.2rem;
text-align: left;
color: #FF5000;
font-size: 0.8rem; font-size: 0.8rem;
position: absolute; color: #fff;
top: 3.3rem; padding-top: 0.3rem;
left: 4.9rem;
font-weight: 700;
} }
.act-title { .act-room-bg .act-p2 span {
position: absolute; color: #FFF337;
top: 0.2rem;
width: 10rem;
text-align: center;
font-size: 0.8rem;
font-weight: 700;
color: #FFFFFF;
text-shadow: -0.06rem 0.06rem 0.06rem #1B55EC, -0.06rem 0.06rem 0.06rem #1B55EC, -0.06rem 0.06rem 0.06rem #1B55EC;
} }
...@@ -161,70 +161,30 @@ ...@@ -161,70 +161,30 @@
//活動 //活動
.act-room-bg{ .act-room-bg{
position: absolute;
right: -33.5vw;
top: -18.5vw;
transform: scale(0.33);
width: 10rem; width: 10rem;
height: 5.646rem; height: 5.577rem;
background: url(../images/act-room-bg.png)no-repeat; background: url(../images/act-room-bg.png) no-repeat;
background-size: 100% 100%;
}
.act-room-bg2{
width: 8rem;
height: 4.393rem;
float: right;
background: url(../images/act-room-bg2.png)no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
>div,>p{ transform: scale(0.33);
font-size: 0;
}
}
.act-room-p1{
width: 5rem;
text-align: center;
color: #467EEE;
font-size: 0.8rem;
position: absolute;
top: 1.85rem;
left: 0.5rem;
}
.act-room-p2{
width: 5rem;
text-align: left;
color: #FF5000;
font-size: 0.8rem;
position: absolute;
top: 1.9rem;
left: 4.9rem;
font-weight: 700;
}
.act-room-p3{
width: 5rem;
text-align: center;
color: #467EEE;
font-size: 0.8rem;
position: absolute; position: absolute;
top: 3.3rem; top: -19vw;
left: 0.5rem; left: 33.2vw;
} .act-p1{
.act-room-p4{ text-indent: 1.2rem;
width: 5rem;
text-align: left;
color: #FF5000;
font-size: 0.8rem; font-size: 0.8rem;
position: absolute; color: #fff;
top: 3.3rem; padding-top: 1rem;
left: 4.9rem; span{
font-weight: 700; color: #FFF337;
} }
.act-title{ }
position: absolute; .act-p2{
top: 0.2rem; text-indent: 1.2rem;
width: 10rem;
text-align: center;
font-size: 0.8rem; font-size: 0.8rem;
font-weight: 700; color: #fff;
color: #FFFFFF; padding-top: 0.3rem;
text-shadow: -0.06rem 0.06rem 0.06rem #1B55EC,-0.06rem 0.06rem 0.06rem #1B55EC,-0.06rem 0.06rem 0.06rem #1B55EC; span{
color: #FFF337;
}
}
} }

19.2 KB | W: | H:

27 KB | W: | H:

ftIcon/liveData2/images/act-room-bg.png
ftIcon/liveData2/images/act-room-bg.png
ftIcon/liveData2/images/act-room-bg.png
ftIcon/liveData2/images/act-room-bg.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -69,13 +69,9 @@ ...@@ -69,13 +69,9 @@
</div> </div>
<div class="act-room-bg"> <div style="display: none;" class="act-room-bg act-room-bg2">
<div class="act-title"></div> <p class="act-p1"><i class="en-txt1">主播積分</i>: <span>8000</span></p>
<p class="act-room-p1">主播積分:</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>
<p class="act-room-p2">--</p>
<p class="act-room-p3">目標積分:</p>
<p class="act-room-p4">--</p>
</div> </div>
</body> </body>
<script src="lib/jquery-3.1.1.min.js"></script> <script src="lib/jquery-3.1.1.min.js"></script>
...@@ -86,11 +82,26 @@ ...@@ -86,11 +82,26 @@
$(function(){ $(function(){
if(sessionStorage.lang!=2){ if(sessionStorage.lang!=2){
$("body").addClass("bg-en") $("body").addClass("bg-en")
$(".act-room-p1").text("score:") // $(".act-room-p1").text("score:")
$(".act-room-p3").text("goal:") // $(".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 = {
"cid": 12,
"reqCode": new Date().getTime(),
"data": {
"msg": '跳转集合功能',
"jumptype": 3,
"url": $url + "/activeFt/lucky777/index.html" + location.search+'&jump='+jump+'',
} }
var wsTimer=null }
var socketOk=null var obj2 = JSON.stringify(obj);
appCollaboration(obj2);
})
//活動 //活動
var obj = { var obj = {
"cid": 43, "cid": 43,
...@@ -106,19 +117,19 @@ $(function(){ ...@@ -106,19 +117,19 @@ $(function(){
} }
var obj2 = JSON.stringify(obj); var obj2 = JSON.stringify(obj);
appCollaboration(obj2); //活動 appCollaboration(obj2); //活動
if(sessionStorage.lang!=2){
$("body").addClass("bg-en")
}
if(sessionStorage.lang==2)var titleName=['','新秀出道','閃亮新星','星光熠熠','璀璨佳人','風華絕代','傾國傾城']
else var titleName=['','Lv.1','Lv.2','Lv.3','Lv.4','Lv.5','Lv.6']
function actView(){ function actView(){
$.ajax({ $.ajax({
url:$ip+'/actStarSearchTour/getRoomPartData.html', url:$ip+'/actLucky777/getRoomPartData.html',
success:function(data){ success:function(data){
console.log('圖標數據',data) console.log('圖標數據',data)
$(".act-title").text(titleName[data.result.roomData.level]) jump=2
$(".act-room-p2").text(data.result.roomData.score) $(".act-room-bg").removeClass("act-room-bg2").fadeIn(200)
$(".act-room-p4").text(data.result.roomData.levelScore) $(".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)
} }
}) })
} }
......
...@@ -47,7 +47,7 @@ if (bbb.indexOf("file:///") > -1) { ...@@ -47,7 +47,7 @@ if (bbb.indexOf("file:///") > -1) {
sessionStorage.lang=1 sessionStorage.lang=1
sessionStorage.uid = 210102; sessionStorage.uid = 210102;
sessionStorage.token = 'debug' sessionStorage.token = 'debug'
sessionStorage.roomId=210102; sessionStorage.roomId=174003;
sessionStorage.version=8890 sessionStorage.version=8890
sessionStorage.cid='web' sessionStorage.cid='web'
sessionStorage.pkg='h5' sessionStorage.pkg='h5'
......
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