Commit 7372bab2 by libai

ft活动上线

parent 7c7dc2d6
...@@ -163,6 +163,20 @@ ...@@ -163,6 +163,20 @@
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%;
} }
.bg-en .one-gift-box2 {
position: relative;
height: 5.97rem;
background: url(../images/en/one-gift-box2.png) no-repeat;
background-size: 100% 100%;
}
.bg-en .one-gift-box2 .one-gift-send {
top: 3.5rem !important;
left: 2rem !important;
}
.bg-en .btn-ok {
background: url(../images/en/btn-ok.png) no-repeat !important;
background-size: 100% 100% !important;
}
.banner { .banner {
width: 10rem; width: 10rem;
height: 13.36rem; height: 13.36rem;
...@@ -179,6 +193,11 @@ ...@@ -179,6 +193,11 @@
position: relative; position: relative;
margin: 0 auto; margin: 0 auto;
} }
.rule-bg-en {
background: url(../images/en/rule-bg.png) no-repeat;
background-size: 100% auto;
height: 41.8rem;
}
.top-btn1 { .top-btn1 {
position: relative; position: relative;
width: 10rem; width: 10rem;
......
...@@ -171,6 +171,20 @@ ...@@ -171,6 +171,20 @@
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%;
} }
.one-gift-box2{
position: relative;
height: 5.97rem;
background: url(../images/en/one-gift-box2.png)no-repeat;
background-size: 100% 100%;
.one-gift-send{
top: 3.5rem !important;
left: 2rem !important;
}
}
.btn-ok{
background: url(../images/en/btn-ok.png)no-repeat !important;
background-size: 100% 100% !important;
}
} }
.banner{ .banner{
width: 10rem; width: 10rem;
...@@ -188,6 +202,11 @@ ...@@ -188,6 +202,11 @@
position: relative; position: relative;
margin: 0 auto; margin: 0 auto;
} }
.rule-bg-en{
background: url(../images/en/rule-bg.png)no-repeat;
background-size: 100% auto;
height: 41.8rem;
}
.top-btn1{ .top-btn1{
position: relative; position: relative;
width: 10rem; width: 10rem;
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
<div class="rule-btn"></div> <div class="rule-btn"></div>
<div style="display: none;" class="layer-card-ok"> <div style="display: none;" class="layer-card-ok">
<div> <div>
購買成功,600寶石已發放<br>明日起每日進入直播間自動發放20寶石<br>有效期至<span class="layer-time-span">XX月XX日</span> <i class="en-txt1">購買成功,600寶石已發放</i><br><i class="en-txt2">明日起每日進入直播間自動發放20寶石</i><br><i class="en-txt3">有效期至</i><span class="layer-time-span">XX月XX日</span>
</div> </div>
<div class="btn-ok"></div> <div class="btn-ok"></div>
</div> </div>
...@@ -136,10 +136,15 @@ ...@@ -136,10 +136,15 @@
<script> <script>
$(function(){ $(function(){
if(sessionStorage.lang==2)var titleName="尋星旅團" if(sessionStorage.lang==2)var titleName="尋星旅團"
else var titleName="Queen of the Night " else var titleName="Star-seeking Travel Corps"
if(sessionStorage.lang!=2){ if(sessionStorage.lang!=2){
$("body").addClass("bg-en") $("body").addClass("bg-en")
$(".new-task-time").text("The event will end at 24:00 on September 30.") $(".new-task-time").text("The event will end at 24:00 on September 30.")
$("title").text("Star-seeking Travel Corps")
$(".vip-icon").attr("src","images/en/vip-icon.png")
$(".en-txt1").text("Purchase succeeded. 600 GEMs issued")
$(".en-txt2").text("Daily 20 GEMs auto-issued tomorrow")
$(".en-txt3").text("The validity period is until ")
} }
var obj = { var obj = {
"cid": 34, //修改网页title 居中显示。 "cid": 34, //修改网页title 居中显示。
......
...@@ -187,9 +187,11 @@ $(function(){ ...@@ -187,9 +187,11 @@ $(function(){
} }
}) })
}, 10000); }, 300000);
} }
if(goPop==1){ if(goPop==1){
if(localStorage.newManLayer==undefined||localStorage.newManLayer<new Date().getTime()){
localStorage.newManLayer=(Number(new Date().getTime())+86400000)
setTimeout(function() { setTimeout(function() {
$.ajax({ $.ajax({
url:$ip+'/actSecretGarden/openPopup.html', url:$ip+'/actSecretGarden/openPopup.html',
...@@ -205,9 +207,10 @@ $(function(){ ...@@ -205,9 +207,10 @@ $(function(){
} }
}) })
}, 10000); }, 60000);
} }
}
}, 3000); }, 3000);
function getData(roomid) { function getData(roomid) {
......
...@@ -62,7 +62,8 @@ $(function(){ ...@@ -62,7 +62,8 @@ $(function(){
success:function(data){ success:function(data){
console.log("购买月卡/壁咚",data) console.log("购买月卡/壁咚",data)
if(data.code==-100){ if(data.code==-100){
layer.msg("寶石不足,即將跳轉儲值") if(sessionStorage.lang==2)layer.msg("寶石不足,即將跳轉儲值")
else layer.msg("Insufficient GEMs")
setTimeout(function(){ setTimeout(function(){
var obj = { var obj = {
"cid": 12, "cid": 12,
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
<body style="background:rgba(0,0,0,0);"> <body style="background:rgba(0,0,0,0);">
<div style="display: none;" class="layer-card-ok"> <div style="display: none;" class="layer-card-ok">
<div> <div>
購買成功,600寶石已發放<br>明日起每日進入直播間自動發放20寶石<br>有效期至<span class="layer-time-span">XX月XX日</span> <i class="en-txt1">購買成功,600寶石已發放</i><br><i class="en-txt2">明日起每日進入直播間自動發放20寶石</i><br><i class="en-txt3">有效期至</i><span class="layer-time-span">XX月XX日</span>
</div> </div>
<div class="btn-ok"></div> <div class="btn-ok"></div>
</div> </div>
...@@ -56,6 +56,10 @@ ...@@ -56,6 +56,10 @@
$(function(){ $(function(){
if(sessionStorage.lang!=2){ if(sessionStorage.lang!=2){
$("body").addClass("bg-en") $("body").addClass("bg-en")
$(".vip-icon").attr("src","images/en/vip-icon.png")
$(".en-txt1").text("Purchase succeeded. 600 GEMs issued")
$(".en-txt2").text("Daily 20 GEMs auto-issued tomorrow")
$(".en-txt3").text("The validity period is until ")
} }
task() task()
function buy(type){ function buy(type){
...@@ -67,7 +71,8 @@ $(function(){ ...@@ -67,7 +71,8 @@ $(function(){
success:function(data){ success:function(data){
console.log("购买月卡/壁咚",data) console.log("购买月卡/壁咚",data)
if(data.code==-100){ if(data.code==-100){
layer.msg("寶石不足,即將跳轉儲值") if(sessionStorage.lang==2)layer.msg("寶石不足,即將跳轉儲值")
else layer.msg("Insufficient GEMs")
setTimeout(function(){ setTimeout(function(){
var obj = { var obj = {
"cid": 12, "cid": 12,
...@@ -128,8 +133,10 @@ $(function(){ ...@@ -128,8 +133,10 @@ $(function(){
} }
if(data.result.monthlyCardData.status==1){ if(data.result.monthlyCardData.status==1){
$(".buy-btn").unbind("click").addClass("buy-btn2") $(".buy-btn").unbind("click").addClass("buy-btn2")
$(".buy-tips").text("有效期至2024/"+timeGet(data.result.monthlyCardData.validEndTime)[1]+"/"+timeGet(data.result.monthlyCardData.validEndTime)[2]+"").show() if(sessionStorage.lang==2)$(".buy-tips").text("有效期至2024/"+timeGet(data.result.monthlyCardData.validEndTime)[1]+"/"+timeGet(data.result.monthlyCardData.validEndTime)[2]+"").show()
$(".layer-time-span").text(""+timeGet(data.result.monthlyCardData.validEndTime)[1]+"月"+timeGet(data.result.monthlyCardData.validEndTime)[2]+"日") else $(".buy-tips").text("Valid until 2024/"+timeGet(data.result.monthlyCardData.validEndTime)[1]+"/"+timeGet(data.result.monthlyCardData.validEndTime)[2]+"").show()
if(sessionStorage.lang==2)$(".layer-time-span").text(""+timeGet(data.result.monthlyCardData.validEndTime)[1]+"月"+timeGet(data.result.monthlyCardData.validEndTime)[2]+"日")
else $(".layer-time-span").text(""+timeGet(data.result.monthlyCardData.validEndTime)[1]+"-"+timeGet(data.result.monthlyCardData.validEndTime)[2]+"")
} }
} }
}) })
......
...@@ -41,10 +41,11 @@ ...@@ -41,10 +41,11 @@
<script> <script>
$(function(){ $(function(){
if(sessionStorage.lang!=2){ if(sessionStorage.lang!=2){
$("title").text("The goddess of luck") $("title").text("Star-seeking Travel Corps")
$(".rule-bg").addClass("rule-bg-en")
} }
if(sessionStorage.lang==2)var titleName="她の秘密後花園" if(sessionStorage.lang==2)var titleName="尋星旅團"
else var titleName="Her Secret Garden" else var titleName="Star-seeking Travel Corps"
var obj = { var obj = {
"cid": 34, //修改网页title 居中显示。 "cid": 34, //修改网页title 居中显示。
"data": { "data": {
......
...@@ -33,9 +33,9 @@ ...@@ -33,9 +33,9 @@
<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> <div class="act-title"></div>
<p class="act-room-p1">主播積分:</p> <p class="act-room-p1">主播積分:</p>
<p class="act-room-p2">8000</p> <p class="act-room-p2"></p>
<p class="act-room-p3">目標積分:</p> <p class="act-room-p3">目標積分:</p>
<p class="act-room-p4">28000</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>
...@@ -174,9 +174,11 @@ $(function(){ ...@@ -174,9 +174,11 @@ $(function(){
} }
}) })
}, 10000); }, 300000);
} }
if(goPop==1){ if(goPop==1){
if(localStorage.newManLayer==undefined||localStorage.newManLayer<new Date().getTime()){
localStorage.newManLayer=(Number(new Date().getTime())+86400000)
setTimeout(function() { setTimeout(function() {
$.ajax({ $.ajax({
url:$ip+'/actSecretGarden/openPopup.html', url:$ip+'/actSecretGarden/openPopup.html',
...@@ -192,7 +194,9 @@ $(function(){ ...@@ -192,7 +194,9 @@ $(function(){
} }
}) })
}, 10000); }, 60000);
}
} }
}, 3000); }, 3000);
function getData(roomid) { function getData(roomid) {
......
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