Commit f95de96f by libai

ft活动上线

parent af15e5ac
body { body {
background: #75b142; background: #75b142;
} }
.body-en .banner {
background: url(../images/en/banner.png) no-repeat;
background-size: 100% 100%;
}
.body-en .top-btn1 {
background: url(../images/en/top-btn1.png) no-repeat;
background-size: 100% 100%;
}
.body-en .top-btn2 {
background: url(../images/en/top-btn2.png) no-repeat;
background-size: 100% 100%;
}
.body-en .gift-box {
background: url(../images/en/gift-box.png) no-repeat;
background-size: 100% 100%;
}
.body-en .list-box-bg {
background: url(../images/en/list-box-bg.png) no-repeat;
background-size: 100% 100%;
}
.body-en .list-box-bg2 {
background: url(../images/en/list-box-bg2.png) no-repeat;
background-size: 100% 100%;
}
.body-en .list-btn1 {
margin-top: 2.65rem;
}
.body-en .task-box {
height: 13.57rem;
background: url(../images/en/task-box.png) no-repeat;
background-size: 100% 100%;
}
.body-en .task1 {
top: 3.54rem;
}
.body-en .task2 {
top: 5.05rem;
}
.body-en .task3 {
top: 6.6rem;
}
.body-en .task4 {
top: 8.1rem;
}
.body-en .task5 {
top: 9.6rem;
}
.body-en .task6 {
top: 11.08rem;
}
.body-en .task-btn1 {
background: url(../images/en/task-btn1.png) no-repeat;
background-size: 100% 100%;
}
.body-en .task-btn2 {
background: url(../images/en/task-btn2.png) no-repeat;
background-size: 100% 100%;
}
.body-en .task-btn3 {
background: url(../images/en/task-btn3.png) no-repeat;
background-size: 100% 100%;
}
.body-en .task-btn4 {
background: url(../images/en/task-btn4.png) no-repeat;
background-size: 100% 100%;
}
.body-en .task-btn5 {
background: url(../images/en/task-btn5.png) no-repeat;
background-size: 100% 100%;
}
.body-en .task-btn6 {
background: url(../images/en/task-btn6.png) no-repeat;
background-size: 100% 100%;
}
.body-en .task3-time {
color: #067B00;
font-size: 0.3rem;
position: absolute;
top: 7rem;
left: 4.2rem;
}
.body-en .lucky-title {
background: url(../images/en/lucky-title.png) no-repeat;
background-size: 100% 100% ;
}
.body-en .lucky-tips {
background: url(../images/en/lucky-tips.png) no-repeat;
background-size: 100% 100%;
}
.body-en .user-list-bg {
background: url(../images/en/user-list-bg.png) no-repeat;
background-size: 100% 100%;
height: 19.85rem;
}
.body-en .user-list-ul {
margin-top: 6.7rem;
}
.body-en .layer-game {
height: 8.98rem;
background: url(../images/en/layer-game.png) no-repeat;
background-size: 100% 100%;
}
.body-en .gift-box {
background: url(../images/en/gift-box.png) no-repeat;
background-size: 100% 100%;
height: 8.9rem;
}
.body-en .list-btn1 {
background: url(../images/en/list-btn1.png) no-repeat;
background-size: 100% 100%;
}
.body-en .list-btn2 {
background: url(../images/en/list-btn2.png) no-repeat;
background-size: 100% 100%;
}
.body-en .act-room-bg1 {
width: 10rem;
background: url(../images/en/act-room-bg.png) no-repeat;
background-size: 100% 100%;
}
.body-en .pop {
background: url(../images/en/pop.png) no-repeat;
background-size: 100% 100%;
}
.body-en .pop-btn {
background: url(../images/en/pop-btn.png) no-repeat;
background-size: 100% 100%;
top: 7.9rem;
}
.bg { .bg {
width: 10rem; width: 10rem;
margin: 0 auto; margin: 0 auto;
......
body{ body{
background: #75b142; background: #75b142;
} }
.body-en{
.banner{
background: url(../images/en/banner.png)no-repeat;
background-size: 100% 100%;
}
.top-btn1 {
background: url(../images/en/top-btn1.png) no-repeat;
background-size: 100% 100%;
}
.top-btn2 {
background: url(../images/en/top-btn2.png) no-repeat;
background-size: 100% 100%;
}
.gift-box{
background: url(../images/en/gift-box.png) no-repeat;
background-size: 100% 100%;
}
.list-box-bg{
background: url(../images/en/list-box-bg.png)no-repeat;
background-size: 100% 100%;
}
.list-box-bg2{
background: url(../images/en/list-box-bg2.png)no-repeat;
background-size: 100% 100%;
}
.list-btn1{
margin-top: 2.65rem;
}
.task-box{
height: 13.57rem;
background: url(../images/en/task-box.png)no-repeat;
background-size: 100% 100%;
}
.task1{
top: 3.54rem;
}
.task2{
top: 5.05rem;
}
.task3{
top: 6.6rem;
}
.task4{
top: 8.1rem;
}
.task5{
top: 9.6rem;
}
.task6{
top: 11.08rem;
}
.task-btn1 {
background: url(../images/en/task-btn1.png) no-repeat;
background-size: 100% 100%;
}
.task-btn2 {
background: url(../images/en/task-btn2.png) no-repeat;
background-size: 100% 100%;
}
.task-btn3 {
background: url(../images/en/task-btn3.png) no-repeat;
background-size: 100% 100%;
}
.task-btn4 {
background: url(../images/en/task-btn4.png) no-repeat;
background-size: 100% 100%;
}
.task-btn5 {
background: url(../images/en/task-btn5.png) no-repeat;
background-size: 100% 100%;
}
.task-btn6 {
background: url(../images/en/task-btn6.png) no-repeat;
background-size: 100% 100%;
}
.task3-time{
color: #067B00;
font-size: 0.3rem;
position: absolute;
top: 7rem;
left: 4.2rem;
}
.lucky-title{
background: url(../images/en/lucky-title.png)no-repeat;
background-size: 100% 100% ;
}
.lucky-tips{
background: url(../images/en/lucky-tips.png)no-repeat;
background-size: 100% 100%;
}
.user-list-bg{
background: url(../images/en/user-list-bg.png)no-repeat;
background-size: 100% 100%;
height: 19.85rem;
}
.user-list-ul{
margin-top: 6.7rem;
}
.layer-game{
height: 8.98rem;
background: url(../images/en/layer-game.png)no-repeat;
background-size: 100% 100%;
}
.gift-box{
background: url(../images/en/gift-box.png)no-repeat;
background-size: 100% 100%;
height: 8.9rem;
}
.list-btn1{
background: url(../images/en/list-btn1.png) no-repeat;
background-size: 100% 100%;
}
.list-btn2{
background: url(../images/en/list-btn2.png) no-repeat;
background-size: 100% 100%;
}
.act-room-bg1{
width: 10rem;
background: url(../images/en/act-room-bg.png)no-repeat;
background-size: 100% 100%;
}
.pop{
background: url(../images/en/pop.png)no-repeat;
background-size: 100% 100%;
}
.pop-btn{
background: url(../images/en/pop-btn.png)no-repeat;
background-size: 100% 100%;
top: 7.9rem;
}
}
.bg{ .bg{
width: 10rem; width: 10rem;
margin: 0 auto; margin: 0 auto;
...@@ -220,6 +351,7 @@ iframe{ ...@@ -220,6 +351,7 @@ iframe{
position: relative; position: relative;
margin-top: 0.3rem; margin-top: 0.3rem;
z-index: 2; z-index: 2;
} }
.top-mc-box{ .top-mc-box{
width: 10rem; width: 10rem;
......
...@@ -227,6 +227,16 @@ ...@@ -227,6 +227,16 @@
<script src="lib/swiper.min.js"></script> <script src="lib/swiper.min.js"></script>
<script> <script>
$(function(){ $(function(){
if(sessionStorage.lang!=2){
$("body").addClass("body-en")
$(".top-mc-box-p1").text("top MC")
$(".top-mc-box2-p1").text("Player")
$(".rule-btn").attr("src","images/en/rule-btn.png")
$(".top-mc-box-p2").text("not yet")
$(".top-mc-box2-p2").text("not yet")
$(".top-mc-box-p3").text("score:--")
$(".top-mc-box2-p3").text("score:--")
}
if(sessionStorage.lang==2)var titleName="她の秘密後花園" if(sessionStorage.lang==2)var titleName="她の秘密後花園"
else var titleName="Her Secret Garden" else var titleName="Her Secret Garden"
var obj = { var obj = {
...@@ -244,7 +254,7 @@ $(function(){ ...@@ -244,7 +254,7 @@ $(function(){
title: false, title: false,
shadeClose: true, shadeClose: true,
skin: "yourclass5", skin: "yourclass5",
area: ["10rem", "7.4rem"], area: ["10rem", "auto"],
content: $(".layer-game"), content: $(".layer-game"),
end: function () { end: function () {
$(".layui-layer-shade").hide() $(".layui-layer-shade").hide()
...@@ -310,8 +320,11 @@ $(function(){ ...@@ -310,8 +320,11 @@ $(function(){
success:function(data){ success:function(data){
console.log('榜單數據',data) console.log('榜單數據',data)
var html='' var html=''
if(sessionStorage.lang==2){
if(type==1)scoreName='花園積分' if(type==1)scoreName='花園積分'
else scoreName='男神指數' else scoreName='男神指數'
}else scoreName='score'
for(var i=0;i<3;i++){ for(var i=0;i<3;i++){
if(data.result.rankList[i]==undefined)continue; if(data.result.rankList[i]==undefined)continue;
var list=data.result.rankList[i] var list=data.result.rankList[i]
...@@ -324,7 +337,8 @@ $(function(){ ...@@ -324,7 +337,8 @@ $(function(){
html+='</div>'; html+='</div>';
} }
if(data.result.rankList.length==0){ if(data.result.rankList.length==0){
html+='<h2>暫無數據~</h2>' if(sessionStorage.lang==2)html+='<h2>暫無數據~</h2>'
else html+='<h2>Not Data~</h2>'
} }
if(type==1) $(".list-box-bg .list-top-box").html(html) if(type==1) $(".list-box-bg .list-top-box").html(html)
else $(".list-box-bg2 .list-top-box").html(html) else $(".list-box-bg2 .list-top-box").html(html)
...@@ -364,7 +378,8 @@ $(function(){ ...@@ -364,7 +378,8 @@ $(function(){
html+='<img class="list-mc-face" src="https://big.bgp.ourpow.com/comm'+data.result.roomData.roomFace+'?x-oss-process=image/resize,w_90" alt="">'; html+='<img class="list-mc-face" src="https://big.bgp.ourpow.com/comm'+data.result.roomData.roomFace+'?x-oss-process=image/resize,w_90" alt="">';
html+='<p>'+data.result.roomData.roomName+'</p>'; html+='<p>'+data.result.roomData.roomName+'</p>';
html+='</div>'; html+='</div>';
html+='<div class="list-box3">花園積分 : '+data.result.roomData.score+'</div>'; if(sessionStorage.lang==2)html+='<div class="list-box3">花園積分 : '+data.result.roomData.score+'</div>';
else html+='<div class="list-box3">score : '+data.result.roomData.score+'</div>';
html+='</li>'; html+='</li>';
$(".bottom-nav").html(html).show(); $(".bottom-nav").html(html).show();
} }
...@@ -414,7 +429,10 @@ $(function(){ ...@@ -414,7 +429,10 @@ $(function(){
}) })
$(".task-btn5").unbind("click").on("click",function(){ $(".task-btn5").unbind("click").on("click",function(){
if(sessionStorage.roomId!=0)scrollTo('.lucky-title','200') if(sessionStorage.roomId!=0)scrollTo('.lucky-title','200')
else layer.msg("請進入直播間內遊玩") else{
sessionStorage.lang==2?layer.msg("請進入直播間內遊玩"):layer.msg("Please enter the live broadcast room to play.")
}
}) })
$(".task-btn2").unbind("click").on("click",function(){ $(".task-btn2").unbind("click").on("click",function(){
var _self=$(this) var _self=$(this)
...@@ -436,7 +454,8 @@ $(function(){ ...@@ -436,7 +454,8 @@ $(function(){
html+='<div class="user-list-box2">'; html+='<div class="user-list-box2">';
html+='<a href="yazhai://_' + list.uid + '_zone"><img src="https://big.bgp.ourpow.com/comm'+list.face+'?x-oss-process=image/resize,w_90" alt=""></a>'+list.name+''; html+='<a href="yazhai://_' + list.uid + '_zone"><img src="https://big.bgp.ourpow.com/comm'+list.face+'?x-oss-process=image/resize,w_90" alt=""></a>'+list.name+'';
html+='</div>'; html+='</div>';
html+='<div class="user-list-box3">經驗值: '+list.score+'</div>'; if(sessionStorage.lang==2)html+='<div class="user-list-box3">經驗值: '+list.score+'</div>';
else html+='<div class="user-list-box3">score: '+list.score+'</div>';
html+='</li>'; html+='</li>';
} }
$(".user-list-ul").html(html) $(".user-list-ul").html(html)
...@@ -455,7 +474,8 @@ $(function(){ ...@@ -455,7 +474,8 @@ $(function(){
layer.msg(data.msg) layer.msg(data.msg)
return; return;
} }
layer.msg("領取成功") if(sessionStorage.lang==2)layer.msg("領取成功")
else layer.msg("success")
task() task()
} }
}) })
...@@ -469,13 +489,15 @@ $(function(){ ...@@ -469,13 +489,15 @@ $(function(){
if(list.roomSexData.uid!=0){ if(list.roomSexData.uid!=0){
$(".top-face1").attr("src","https://big.bgp.ourpow.com/comm"+list.roomSexData.face+"?x-oss-process=image/resize,w_90") $(".top-face1").attr("src","https://big.bgp.ourpow.com/comm"+list.roomSexData.face+"?x-oss-process=image/resize,w_90")
$(".top-mc-box-p2").text(list.roomSexData.nickName) $(".top-mc-box-p2").text(list.roomSexData.nickName)
$(".top-mc-box-p3").text("積分:"+list.roomSexData.score+"") if(sessionStorage.lang!=2)$(".top-mc-box-p3").text("score:"+list.roomSexData.score+"")
else $(".top-mc-box-p3").text("積分:"+list.roomSexData.score+"")
if(list.roomSexData.isLike==0)$(".like-btn1").show().attr("data-type",list.roomSexData.uid) if(list.roomSexData.isLike==0)$(".like-btn1").show().attr("data-type",list.roomSexData.uid)
} }
if(list.userRichData.uid!=0){ if(list.userRichData.uid!=0){
$(".top-face2").attr("src","https://big.bgp.ourpow.com/comm"+list.userRichData.face+"?x-oss-process=image/resize,w_90") $(".top-face2").attr("src","https://big.bgp.ourpow.com/comm"+list.userRichData.face+"?x-oss-process=image/resize,w_90")
$(".top-mc-box2-p2").text(list.userRichData.nickName) $(".top-mc-box2-p2").text(list.userRichData.nickName)
$(".top-mc-box2-p3").text("積分:"+list.userRichData.score+"") if(sessionStorage.lang!=2) $(".top-mc-box2-p3").text("score:"+list.userRichData.score+"")
else $(".top-mc-box2-p3").text("積分:"+list.userRichData.score+"")
if(list.userRichData.isLike==0)$(".like-btn2").show().attr("data-type",list.userRichData.uid) if(list.userRichData.isLike==0)$(".like-btn2").show().attr("data-type",list.userRichData.uid)
} }
$(".like-btn").unbind("click").on("click",function(){ $(".like-btn").unbind("click").on("click",function(){
......
...@@ -68,7 +68,7 @@ if(sessionStorage.open==undefined)sessionStorage.open=1 ...@@ -68,7 +68,7 @@ if(sessionStorage.open==undefined)sessionStorage.open=1
sessionStorage.roomId=23864554 sessionStorage.roomId=23864554
} }
if (bbb.indexOf("file:///E:") > -1) { if (bbb.indexOf("file:///E:") > -1) {
sessionStorage.lang=2 sessionStorage.lang=1
sessionStorage.uid =11149619; sessionStorage.uid =11149619;
sessionStorage.token = 'debug' sessionStorage.token = 'debug'
sessionStorage.roomId=11134747; sessionStorage.roomId=11134747;
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
<script> <script>
$(function(){ $(function(){
if(sessionStorage.lang!=2){ if(sessionStorage.lang!=2){
$("body").addClass("bg-en") $("body").addClass("body-en")
} }
$(".act-room-bg1").on("click",function(){ $(".act-room-bg1").on("click",function(){
// var obj = { // var obj = {
......
...@@ -43,6 +43,9 @@ ...@@ -43,6 +43,9 @@
<script src="lib/swiper.min.js"></script> <script src="lib/swiper.min.js"></script>
<script> <script>
$(function(){ $(function(){
if(sessionStorage.lang!=2){
$("body").addClass("body-en")
}
$(".pop-btn").on("click",function(){ $(".pop-btn").on("click",function(){
var obj = { var obj = {
"cid": 12, "cid": 12,
......
...@@ -113,11 +113,20 @@ $(function(){ ...@@ -113,11 +113,20 @@ $(function(){
url:$ip+'/actSecretGarden/getRoomPartData.html', url:$ip+'/actSecretGarden/getRoomPartData.html',
success:function(data){ success:function(data){
console.log('圖標數據',data) console.log('圖標數據',data)
if(sessionStorage.lang==2){
if(data.result.roomData.rank==1)$(".act-room-p1").text("距離被超越 :") if(data.result.roomData.rank==1)$(".act-room-p1").text("距離被超越 :")
else $(".act-room-p1").text("距離上一名 :") else $(".act-room-p1").text("距離上一名 :")
$(".act-room-p2").text(data.result.roomData.diffPreScore) $(".act-room-p2").text(data.result.roomData.diffPreScore)
if(data.result.roomData.rank==-1) $(".act-room-p4").text("未上榜") if(data.result.roomData.rank==-1) $(".act-room-p4").text("未上榜")
else $(".act-room-p4").text(data.result.roomData.rank) else $(".act-room-p4").text(data.result.roomData.rank)
}else{
if(data.result.roomData.rank==1)$(".act-room-p1").text("be surpassed :")
else $(".act-room-p1").text("next :")
$(".act-room-p2").text(data.result.roomData.diffPreScore)
if(data.result.roomData.rank==-1) $(".act-room-p4").text("--")
else $(".act-room-p4").text(data.result.roomData.rank)
}
} }
......
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