Commit c0aab38b by libai

ft活动上线

parent 37d8a322
.bg-en .act-room-bg2 {
background: url(../images/en/act-room-bg2.png) no-repeat;
background-size: 100% 100%;
width: 8.5rem;
}
.act-room-bg {
width: 10rem;
height: 5.646rem;
height: 5.577rem;
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%;
}
.act-room-bg2 > div,
.act-room-bg2 > p {
font-size: 0;
}
.act-room-p1 {
width: 5rem;
text-align: center;
color: #467EEE;
.act-room-bg .act-p1 {
text-indent: 1.2rem;
font-size: 0.8rem;
position: absolute;
top: 1.85rem;
left: 0.5rem;
color: #fff;
padding-top: 1rem;
}
.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-bg .act-p1 span {
color: #FFF337;
}
.act-room-p3 {
width: 5rem;
text-align: center;
color: #467EEE;
.act-room-bg .act-p2 {
text-indent: 1.2rem;
font-size: 0.8rem;
position: absolute;
top: 3.3rem;
left: 0.5rem;
color: #fff;
padding-top: 0.3rem;
}
.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-room-bg .act-p2 span {
color: #FFF337;
}
.act-title {
position: absolute;
top: 0.2rem;
.act-room-bg2 {
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;
height: 5.577rem;
background: url(../images/act-room-bg2.png) no-repeat;
background-size: 100% 100%;
}
.act-room-bg2 > p {
display: none;
}
......@@ -2,70 +2,41 @@
.act-room-bg2{
background: url(../images/en/act-room-bg2.png)no-repeat;
background-size: 100% 100%;
width: 8.5rem;
}
}
.act-room-bg{
width: 10rem;
height: 5.646rem;
height: 5.577rem;
background: url(../images/act-room-bg.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: 8rem;
height: 4.393rem;
float: right;
width: 10rem;
height: 5.577rem;
background: url(../images/act-room-bg2.png)no-repeat;
background-size: 100% 100%;
>div,>p{
font-size: 0;
>p{
display: none;
}
}
.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 @@
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/layer.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">
<style>
.layui-layer-shade {
......@@ -31,11 +31,8 @@
<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">
<div class="act-title"></div>
<p class="act-room-p1">主播積分:</p>
<p class="act-room-p2"></p>
<p class="act-room-p3">目標積分:</p>
<p class="act-room-p4"></p>
<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>
<script src="lib/jquery-3.1.1.min.js"></script>
......@@ -48,9 +45,26 @@ $(function(){
var wsTimer=null
if(sessionStorage.lang!=2){
$("body").addClass("bg-en")
$(".act-room-p1").text("score:")
$(".act-room-p3").text("goal:")
// $(".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 = {
"cid": 12,
"reqCode": new Date().getTime(),
"data": {
"msg": '跳转集合功能',
"jumptype": 3,
"url": $url + "/activeFt/lucky777/index.html" + location.search+'&jump='+jump+'',
}
}
var obj2 = JSON.stringify(obj);
appCollaboration(obj2);
})
var obj = {
"cid": 43,
"reqCode": new Date().getTime(),
......@@ -58,104 +72,30 @@ $(function(){
"type":1,
// "width":314,
"width":120,
"height":69,
"height":68,
'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',
url:$ip+'/actLucky777/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 = {
"cid": 12,
"reqCode": new Date().getTime(),
"data": {
"msg": '跳转集合功能',
"jumptype": 3,
"url": $url + "/activeFt/newMan/index.html" + location.search+'&',
}
}
var obj2 = JSON.stringify(obj);
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 = {
"cid": 12,
"reqCode": new Date().getTime(),
"data": {
"msg": '跳转集合功能',
"jumptype": 3,
"url": $url + "/activeFt/newMan/index.html" + location.search+'&',
}
}
var obj2 = JSON.stringify(obj);
appCollaboration(obj2);
})
if(data.result.userData.isBuyMonthlyCard==0){
goPop=1
}
if(data.result.userData.signReceive==0){
$(".act-room-bg").fadeIn(200)
return;
}
$(".act-title").text(titleName[data.result.roomData.level])
$(".act-room-p2").text(data.result.roomData.score)
$(".act-room-p4").text(data.result.roomData.levelScore)
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)
}
})
}
......@@ -163,42 +103,26 @@ $(function(){
setInterval(function(){
view()
},60000)
setTimeout(function() {
if(goPop==2){
setTimeout(function() {
$.ajax({
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({
url:$ip+'/actSecretGarden/openPopup.html',
data:{
width:'0',
popupUrl:$url + "/activeFt/newMan/pop2.html" + location.search+'',
height:'0.5',
heightR:'110',
x:'0',
y:'0.5',
},
success:function(){
}
})
}, 60000);
}
setTimeout(function(){
if(sessionStorage.lang==2)return;
if(localStorage.lucky777==undefined||localStorage.lucky777<new Date().getTime()){
localStorage.lucky777=(Number(new Date().getTime())+86400000)
$.ajax({
url:$ip+'/actSecretGarden/openPopup.html',
data:{
width:'0',
popupUrl:$url + "/activeFt/lucky777/pop.html",
height:'0.5',
heightR:'75',
x:'0',
y:'0.5',
},
success:function(){
}
})
}
}, 3000);
},30000)
function getData(roomid) {
var opts = {
reconnectionDelay: 5000,
......
......@@ -43,10 +43,10 @@ if (uid.indexOf("http://localhost:63342") > -1) {
sessionStorage.roomId=23864554
}
if (uid.indexOf("file:///") > -1) {
sessionStorage.lang=1
sessionStorage.lang=2
sessionStorage.uid = 155100;
sessionStorage.token = 'debug'
sessionStorage.roomId=11134747;
sessionStorage.roomId=174003;
sessionStorage.version=8890
sessionStorage.cid='web'
sessionStorage.pkg='h5'
......
......@@ -127,63 +127,45 @@ i {
}
.act-room-bg {
width: 10rem;
height: 10.079rem;
height: 8.563rem;
background: url(../images/act-room-bg.png) no-repeat;
background-size: 100% 100%;
position: relative;
}
.act-room-bg2 {
width: 8rem;
height: 4.393rem;
float: right;
width: 10rem;
height: 5.577rem;
background: url(../images/act-room-bg2.png) no-repeat;
background-size: 100% 100%;
}
.act-room-bg2 > div,
.act-room-bg2 > p {
font-size: 0;
display: none;
}
.act-room-p1 {
width: 10rem;
.act-p1 {
color: #fff;
text-align: center;
color: #467EEE;
width: 10rem;
font-size: 0.8rem;
position: absolute;
top: 2.4rem;
top: 1.2rem;
}
.act-room-p2 {
.act-p1 span {
width: 10rem;
text-align: center;
color: #FF5000;
font-size: 0.8rem;
position: absolute;
top: 3.95rem;
color: #FFF337;
top: 2.3rem;
left: 0;
font-size: 1rem;
font-weight: 700;
}
.act-room-p3 {
width: 10rem;
.act-p2 {
color: #fff;
text-align: center;
color: #467EEE;
font-size: 0.8rem;
position: absolute;
top: 5.6rem;
}
.act-room-p4 {
width: 10rem;
text-align: center;
color: #FF5000;
font-size: 0.8rem;
position: absolute;
top: 7.25rem;
font-weight: 700;
top: 6rem;
}
.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;
.act-p2 span {
color: #FFF337;
}
......@@ -144,62 +144,45 @@ i{
//活動
.act-room-bg{
width: 10rem;
height: 10.079rem;
height: 8.563rem;
background: url(../images/act-room-bg.png)no-repeat;
background-size: 100% 100%;
position: relative;
}
.act-room-bg2{
width: 8rem;
height: 4.393rem;
float: right;
width: 10rem;
height: 5.577rem;
background: url(../images/act-room-bg2.png)no-repeat;
background-size: 100% 100%;
>div,>p{
font-size: 0;
>p{
display: none;
}
}
.act-room-p1{
width: 10rem;
.act-p1{
color: #fff;
text-align: center;
color: #467EEE;
font-size: 0.8rem;
position: absolute;
top: 2.4rem;
}
.act-room-p2{
width: 10rem;
text-align: center;
color: #FF5000;
font-size: 0.8rem;
position: absolute;
top: 3.95rem;
font-weight: 700;
top: 1.2rem;
span{
width: 10rem;
position: absolute;
color: #FFF337;
top: 2.3rem;
left: 0;
font-size: 1rem;
font-weight: 700;
}
}
.act-room-p3{
width: 10rem;
.act-p2{
color: #fff;
text-align: center;
color: #467EEE;
font-size: 0.8rem;
position: absolute;
top: 5.6rem;
}
.act-room-p4{
width: 10rem;
text-align: center;
color: #FF5000;
font-size: 0.8rem;
position: absolute;
top: 7.25rem;
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;
top: 6rem;
span{
color: #FFF337;
}
}
\ 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 @@
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/layer.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">
<style>
.layui-layer-shade {
......@@ -31,13 +31,9 @@
</style>
</head>
<body c style="background:rgba(0,0,0,0)">
<div class="act-room-bg">
<div class="act-title"></div>
<p class="act-room-p1">主播積分:</p>
<p class="act-room-p2">--</p>
<p class="act-room-p3">目標積分:</p>
<p class="act-room-p4">--</p>
<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 class="room-bg1">
<div class="room-bg-top">人氣</div>
......@@ -80,10 +76,13 @@ $(function(){
var socketOk=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")
}
//活動
var jump=1
$(".act-room-bg").on("click",function(){
var obj = {
"cid": 12,
......@@ -91,23 +90,24 @@ $(function(){
"data": {
"msg": '跳转集合功能',
"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);
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(){
$.ajax({
url:$ip+'/actStarSearchTour/getRoomPartData.html',
url:$ip+'/actLucky777/getRoomPartData.html',
success:function(data){
console.log('圖標數據',data)
$(".act-title").text(titleName[data.result.roomData.level])
$(".act-room-p2").text(data.result.roomData.score)
$(".act-room-p4").text(data.result.roomData.levelScore)
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)
}
})
......
......@@ -141,71 +141,30 @@
top: -0.95vw;
}
.act-room-bg {
position: absolute;
right: -33.5vw;
top: -18.5vw;
transform: scale(0.33);
width: 10rem;
height: 5.646rem;
height: 5.577rem;
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%;
}
.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;
transform: scale(0.33);
position: absolute;
top: 1.85rem;
left: 0.5rem;
top: -19vw;
left: 33.2vw;
}
.act-room-p2 {
width: 5rem;
text-align: left;
color: #FF5000;
.act-room-bg .act-p1 {
text-indent: 1.2rem;
font-size: 0.8rem;
position: absolute;
top: 1.9rem;
left: 4.9rem;
font-weight: 700;
color: #fff;
padding-top: 1rem;
}
.act-room-p3 {
width: 5rem;
text-align: center;
color: #467EEE;
font-size: 0.8rem;
position: absolute;
top: 3.3rem;
left: 0.5rem;
.act-room-bg .act-p1 span {
color: #FFF337;
}
.act-room-p4 {
width: 5rem;
text-align: left;
color: #FF5000;
.act-room-bg .act-p2 {
text-indent: 1.2rem;
font-size: 0.8rem;
position: absolute;
top: 3.3rem;
left: 4.9rem;
font-weight: 700;
color: #fff;
padding-top: 0.3rem;
}
.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;
.act-room-bg .act-p2 span {
color: #FFF337;
}
......@@ -161,70 +161,30 @@
//活動
.act-room-bg{
position: absolute;
right: -33.5vw;
top: -18.5vw;
transform: scale(0.33);
width: 10rem;
height: 5.646rem;
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;
height: 5.577rem;
background: url(../images/act-room-bg.png) no-repeat;
background-size: 100% 100%;
>div,>p{
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;
top: 3.3rem;
left: 0.5rem;
}
.act-room-p4{
width: 5rem;
text-align: left;
color: #FF5000;
font-size: 0.8rem;
transform: scale(0.33);
position: absolute;
top: 3.3rem;
left: 4.9rem;
font-weight: 700;
top: -19vw;
left: 33.2vw;
.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-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/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 @@
</div>
<div class="act-room-bg">
<div class="act-title"></div>
<p class="act-room-p1">主播積分:</p>
<p class="act-room-p2">--</p>
<p class="act-room-p3">目標積分:</p>
<p class="act-room-p4">--</p>
<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>
</body>
<script src="lib/jquery-3.1.1.min.js"></script>
......@@ -86,11 +82,26 @@
$(function(){
if(sessionStorage.lang!=2){
$("body").addClass("bg-en")
$(".act-room-p1").text("score:")
$(".act-room-p3").text("goal:")
// $(".act-room-p1").text("score:")
// $(".act-room-p3").text("goal:")
$(".en-txt1").text("score")
$(".en-txt2").text("PROG")
$(".en-txt3").text("rank")
}
var wsTimer=null
var socketOk=null
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 obj2 = JSON.stringify(obj);
appCollaboration(obj2);
})
//活動
var obj = {
"cid": 43,
......@@ -106,19 +117,19 @@ $(function(){
}
var obj2 = JSON.stringify(obj);
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(){
$.ajax({
url:$ip+'/actStarSearchTour/getRoomPartData.html',
url:$ip+'/actLucky777/getRoomPartData.html',
success:function(data){
console.log('圖標數據',data)
$(".act-title").text(titleName[data.result.roomData.level])
$(".act-room-p2").text(data.result.roomData.score)
$(".act-room-p4").text(data.result.roomData.levelScore)
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)
}
})
}
......
......@@ -47,7 +47,7 @@ if (bbb.indexOf("file:///") > -1) {
sessionStorage.lang=1
sessionStorage.uid = 210102;
sessionStorage.token = 'debug'
sessionStorage.roomId=210102;
sessionStorage.roomId=174003;
sessionStorage.version=8890
sessionStorage.cid='web'
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