From f95de96fa69fe47bf9ef9bb93543006c0d31d0a3 Mon Sep 17 00:00:00 2001 From: libai <libai@yazhai.co> Date: Wed, 14 Aug 2024 20:17:14 +0800 Subject: [PATCH] ft活动上线 --- activeFt/garden/css/index.css | 129 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ activeFt/garden/css/index.less | 132 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ activeFt/garden/images/en/act-room-bg.png | Bin 0 -> 10713 bytes activeFt/garden/images/en/back.png | Bin 0 -> 2970 bytes activeFt/garden/images/en/banner.png | Bin 0 -> 188757 bytes activeFt/garden/images/en/gift-box.png | Bin 0 -> 86547 bytes activeFt/garden/images/en/layer-game.png | Bin 0 -> 77398 bytes activeFt/garden/images/en/like.png | Bin 0 -> 2295 bytes activeFt/garden/images/en/list-box-bg.png | Bin 0 -> 93503 bytes activeFt/garden/images/en/list-box-bg2.png | Bin 0 -> 86156 bytes activeFt/garden/images/en/list-btn1.png | Bin 0 -> 13221 bytes activeFt/garden/images/en/list-btn2.png | Bin 0 -> 12811 bytes activeFt/garden/images/en/lucky-tips.png | Bin 0 -> 1725 bytes activeFt/garden/images/en/lucky-title.png | Bin 0 -> 20842 bytes activeFt/garden/images/en/pop-btn.png | Bin 0 -> 7239 bytes activeFt/garden/images/en/pop.png | Bin 0 -> 89396 bytes activeFt/garden/images/en/rule-btn.png | Bin 0 -> 2932 bytes activeFt/garden/images/en/task-box.png | Bin 0 -> 92028 bytes activeFt/garden/images/en/task-btn1.png | Bin 0 -> 2957 bytes activeFt/garden/images/en/task-btn2.png | Bin 0 -> 3688 bytes activeFt/garden/images/en/task-btn3.png | Bin 0 -> 3013 bytes activeFt/garden/images/en/task-btn4.png | Bin 0 -> 3608 bytes activeFt/garden/images/en/task-btn5.png | Bin 0 -> 3640 bytes activeFt/garden/images/en/task-btn6.png | Bin 0 -> 3461 bytes activeFt/garden/images/en/top-btn1.png | Bin 0 -> 12814 bytes activeFt/garden/images/en/top-btn2.png | Bin 0 -> 13716 bytes activeFt/garden/images/en/user-list-bg.png | Bin 0 -> 114045 bytes activeFt/garden/index.html | 42 ++++++++++++++++++++++++++++++++---------- activeFt/garden/lib/default.js | 2 +- activeFt/garden/oldView.html | 2 +- activeFt/garden/pop.html | 3 +++ ftIcon/liveData/index.html | 19 ++++++++++++++----- 32 files changed, 312 insertions(+), 17 deletions(-) create mode 100644 activeFt/garden/images/en/act-room-bg.png create mode 100644 activeFt/garden/images/en/back.png create mode 100644 activeFt/garden/images/en/banner.png create mode 100644 activeFt/garden/images/en/gift-box.png create mode 100644 activeFt/garden/images/en/layer-game.png create mode 100644 activeFt/garden/images/en/like.png create mode 100644 activeFt/garden/images/en/list-box-bg.png create mode 100644 activeFt/garden/images/en/list-box-bg2.png create mode 100644 activeFt/garden/images/en/list-btn1.png create mode 100644 activeFt/garden/images/en/list-btn2.png create mode 100644 activeFt/garden/images/en/lucky-tips.png create mode 100644 activeFt/garden/images/en/lucky-title.png create mode 100644 activeFt/garden/images/en/pop-btn.png create mode 100644 activeFt/garden/images/en/pop.png create mode 100644 activeFt/garden/images/en/rule-btn.png create mode 100644 activeFt/garden/images/en/task-box.png create mode 100644 activeFt/garden/images/en/task-btn1.png create mode 100644 activeFt/garden/images/en/task-btn2.png create mode 100644 activeFt/garden/images/en/task-btn3.png create mode 100644 activeFt/garden/images/en/task-btn4.png create mode 100644 activeFt/garden/images/en/task-btn5.png create mode 100644 activeFt/garden/images/en/task-btn6.png create mode 100644 activeFt/garden/images/en/top-btn1.png create mode 100644 activeFt/garden/images/en/top-btn2.png create mode 100644 activeFt/garden/images/en/user-list-bg.png diff --git a/activeFt/garden/css/index.css b/activeFt/garden/css/index.css index 370fbf1..bf97ad3 100644 --- a/activeFt/garden/css/index.css +++ b/activeFt/garden/css/index.css @@ -1,6 +1,135 @@ body { 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 { width: 10rem; margin: 0 auto; diff --git a/activeFt/garden/css/index.less b/activeFt/garden/css/index.less index 37b14f0..4afb872 100644 --- a/activeFt/garden/css/index.less +++ b/activeFt/garden/css/index.less @@ -1,6 +1,137 @@ body{ 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{ width: 10rem; margin: 0 auto; @@ -220,6 +351,7 @@ iframe{ position: relative; margin-top: 0.3rem; z-index: 2; + } .top-mc-box{ width: 10rem; diff --git a/activeFt/garden/images/en/act-room-bg.png b/activeFt/garden/images/en/act-room-bg.png new file mode 100644 index 0000000..af633eb Binary files /dev/null and b/activeFt/garden/images/en/act-room-bg.png differ diff --git a/activeFt/garden/images/en/back.png b/activeFt/garden/images/en/back.png new file mode 100644 index 0000000..afe76ad Binary files /dev/null and b/activeFt/garden/images/en/back.png differ diff --git a/activeFt/garden/images/en/banner.png b/activeFt/garden/images/en/banner.png new file mode 100644 index 0000000..13fb6c6 Binary files /dev/null and b/activeFt/garden/images/en/banner.png differ diff --git a/activeFt/garden/images/en/gift-box.png b/activeFt/garden/images/en/gift-box.png new file mode 100644 index 0000000..6cf9b20 Binary files /dev/null and b/activeFt/garden/images/en/gift-box.png differ diff --git a/activeFt/garden/images/en/layer-game.png b/activeFt/garden/images/en/layer-game.png new file mode 100644 index 0000000..b438b7e Binary files /dev/null and b/activeFt/garden/images/en/layer-game.png differ diff --git a/activeFt/garden/images/en/like.png b/activeFt/garden/images/en/like.png new file mode 100644 index 0000000..29db6a4 Binary files /dev/null and b/activeFt/garden/images/en/like.png differ diff --git a/activeFt/garden/images/en/list-box-bg.png b/activeFt/garden/images/en/list-box-bg.png new file mode 100644 index 0000000..5ccf137 Binary files /dev/null and b/activeFt/garden/images/en/list-box-bg.png differ diff --git a/activeFt/garden/images/en/list-box-bg2.png b/activeFt/garden/images/en/list-box-bg2.png new file mode 100644 index 0000000..ea58f69 Binary files /dev/null and b/activeFt/garden/images/en/list-box-bg2.png differ diff --git a/activeFt/garden/images/en/list-btn1.png b/activeFt/garden/images/en/list-btn1.png new file mode 100644 index 0000000..19d3b17 Binary files /dev/null and b/activeFt/garden/images/en/list-btn1.png differ diff --git a/activeFt/garden/images/en/list-btn2.png b/activeFt/garden/images/en/list-btn2.png new file mode 100644 index 0000000..7735dc3 Binary files /dev/null and b/activeFt/garden/images/en/list-btn2.png differ diff --git a/activeFt/garden/images/en/lucky-tips.png b/activeFt/garden/images/en/lucky-tips.png new file mode 100644 index 0000000..ccb5978 Binary files /dev/null and b/activeFt/garden/images/en/lucky-tips.png differ diff --git a/activeFt/garden/images/en/lucky-title.png b/activeFt/garden/images/en/lucky-title.png new file mode 100644 index 0000000..0b7417a Binary files /dev/null and b/activeFt/garden/images/en/lucky-title.png differ diff --git a/activeFt/garden/images/en/pop-btn.png b/activeFt/garden/images/en/pop-btn.png new file mode 100644 index 0000000..cc6c853 Binary files /dev/null and b/activeFt/garden/images/en/pop-btn.png differ diff --git a/activeFt/garden/images/en/pop.png b/activeFt/garden/images/en/pop.png new file mode 100644 index 0000000..55e7754 Binary files /dev/null and b/activeFt/garden/images/en/pop.png differ diff --git a/activeFt/garden/images/en/rule-btn.png b/activeFt/garden/images/en/rule-btn.png new file mode 100644 index 0000000..95d59d6 Binary files /dev/null and b/activeFt/garden/images/en/rule-btn.png differ diff --git a/activeFt/garden/images/en/task-box.png b/activeFt/garden/images/en/task-box.png new file mode 100644 index 0000000..3aa301a Binary files /dev/null and b/activeFt/garden/images/en/task-box.png differ diff --git a/activeFt/garden/images/en/task-btn1.png b/activeFt/garden/images/en/task-btn1.png new file mode 100644 index 0000000..a2df814 Binary files /dev/null and b/activeFt/garden/images/en/task-btn1.png differ diff --git a/activeFt/garden/images/en/task-btn2.png b/activeFt/garden/images/en/task-btn2.png new file mode 100644 index 0000000..1b01ceb Binary files /dev/null and b/activeFt/garden/images/en/task-btn2.png differ diff --git a/activeFt/garden/images/en/task-btn3.png b/activeFt/garden/images/en/task-btn3.png new file mode 100644 index 0000000..18e7f6e Binary files /dev/null and b/activeFt/garden/images/en/task-btn3.png differ diff --git a/activeFt/garden/images/en/task-btn4.png b/activeFt/garden/images/en/task-btn4.png new file mode 100644 index 0000000..ddeab41 Binary files /dev/null and b/activeFt/garden/images/en/task-btn4.png differ diff --git a/activeFt/garden/images/en/task-btn5.png b/activeFt/garden/images/en/task-btn5.png new file mode 100644 index 0000000..074308a Binary files /dev/null and b/activeFt/garden/images/en/task-btn5.png differ diff --git a/activeFt/garden/images/en/task-btn6.png b/activeFt/garden/images/en/task-btn6.png new file mode 100644 index 0000000..c5172d2 Binary files /dev/null and b/activeFt/garden/images/en/task-btn6.png differ diff --git a/activeFt/garden/images/en/top-btn1.png b/activeFt/garden/images/en/top-btn1.png new file mode 100644 index 0000000..73639fa Binary files /dev/null and b/activeFt/garden/images/en/top-btn1.png differ diff --git a/activeFt/garden/images/en/top-btn2.png b/activeFt/garden/images/en/top-btn2.png new file mode 100644 index 0000000..2aa7afb Binary files /dev/null and b/activeFt/garden/images/en/top-btn2.png differ diff --git a/activeFt/garden/images/en/user-list-bg.png b/activeFt/garden/images/en/user-list-bg.png new file mode 100644 index 0000000..7fc115c Binary files /dev/null and b/activeFt/garden/images/en/user-list-bg.png differ diff --git a/activeFt/garden/index.html b/activeFt/garden/index.html index cff6f9d..2350b8c 100644 --- a/activeFt/garden/index.html +++ b/activeFt/garden/index.html @@ -227,6 +227,16 @@ <script src="lib/swiper.min.js"></script> <script> $(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="她の秘密後花園" else var titleName="Her Secret Garden" var obj = { @@ -244,7 +254,7 @@ $(function(){ title: false, shadeClose: true, skin: "yourclass5", - area: ["10rem", "7.4rem"], + area: ["10rem", "auto"], content: $(".layer-game"), end: function () { $(".layui-layer-shade").hide() @@ -310,8 +320,11 @@ $(function(){ success:function(data){ console.log('榜單數據',data) var html='' - if(type==1)scoreName='花園積分' - else scoreName='男神指數' + if(sessionStorage.lang==2){ + if(type==1)scoreName='花園積分' + else scoreName='男神指數' + }else scoreName='score' + for(var i=0;i<3;i++){ if(data.result.rankList[i]==undefined)continue; var list=data.result.rankList[i] @@ -324,7 +337,8 @@ $(function(){ html+='</div>'; } 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) else $(".list-box-bg2 .list-top-box").html(html) @@ -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+='<p>'+data.result.roomData.roomName+'</p>'; 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>'; $(".bottom-nav").html(html).show(); } @@ -414,7 +429,10 @@ $(function(){ }) $(".task-btn5").unbind("click").on("click",function(){ 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(){ var _self=$(this) @@ -436,7 +454,8 @@ $(function(){ 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+='</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>'; } $(".user-list-ul").html(html) @@ -455,7 +474,8 @@ $(function(){ layer.msg(data.msg) return; } - layer.msg("領取成功") + if(sessionStorage.lang==2)layer.msg("領取成功") + else layer.msg("success") task() } }) @@ -469,13 +489,15 @@ $(function(){ 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-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.userRichData.uid!=0){ $(".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-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) } $(".like-btn").unbind("click").on("click",function(){ diff --git a/activeFt/garden/lib/default.js b/activeFt/garden/lib/default.js index d70aa79..dfe75f4 100644 --- a/activeFt/garden/lib/default.js +++ b/activeFt/garden/lib/default.js @@ -68,7 +68,7 @@ if(sessionStorage.open==undefined)sessionStorage.open=1 sessionStorage.roomId=23864554 } if (bbb.indexOf("file:///E:") > -1) { - sessionStorage.lang=2 + sessionStorage.lang=1 sessionStorage.uid =11149619; sessionStorage.token = 'debug' sessionStorage.roomId=11134747; diff --git a/activeFt/garden/oldView.html b/activeFt/garden/oldView.html index dd85692..0b94265 100644 --- a/activeFt/garden/oldView.html +++ b/activeFt/garden/oldView.html @@ -47,7 +47,7 @@ <script> $(function(){ if(sessionStorage.lang!=2){ - $("body").addClass("bg-en") + $("body").addClass("body-en") } $(".act-room-bg1").on("click",function(){ // var obj = { diff --git a/activeFt/garden/pop.html b/activeFt/garden/pop.html index 64a4237..0245e09 100644 --- a/activeFt/garden/pop.html +++ b/activeFt/garden/pop.html @@ -43,6 +43,9 @@ <script src="lib/swiper.min.js"></script> <script> $(function(){ + if(sessionStorage.lang!=2){ + $("body").addClass("body-en") + } $(".pop-btn").on("click",function(){ var obj = { "cid": 12, diff --git a/ftIcon/liveData/index.html b/ftIcon/liveData/index.html index f891b2c..e9cdae6 100644 --- a/ftIcon/liveData/index.html +++ b/ftIcon/liveData/index.html @@ -113,11 +113,20 @@ $(function(){ url:$ip+'/actSecretGarden/getRoomPartData.html', success:function(data){ console.log('圖標數據',data) - if(data.result.roomData.rank==1)$(".act-room-p1").text("距離被超越 :") - else $(".act-room-p1").text("距離上一名 :") - $(".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) + if(sessionStorage.lang==2){ + if(data.result.roomData.rank==1)$(".act-room-p1").text("距離被超越 :") + else $(".act-room-p1").text("距離上一名 :") + $(".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) + }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) + } + } -- libgit2 0.25.0