Commit 06923fdf by libai

ft活动上线

parent f31f0bef
......@@ -284,6 +284,13 @@ iframe {
position: relative;
left: 0.05rem;
}
.list-top-box h2 {
height: 5rem;
line-height: 5rem;
font-size: 0.5rem;
color: #067B00;
text-align: center;
}
.list-top1 {
width: 2.8rem;
height: 3.9rem;
......@@ -323,6 +330,9 @@ iframe {
left: 0.7rem;
}
.top-mc-p1 {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
width: 2.8rem;
font-size: 0.35rem;
font-weight: 700;
......@@ -525,3 +535,56 @@ iframe {
font-weight: 700;
color: #f0ff25;
}
.act-room-bg2 {
width: 10rem;
height: 8.482rem;
background: url(../images/act-room-bg2.png) no-repeat;
background-size: 100% 100%;
position: relative;
}
.act-room-p1 {
text-align: center;
width: 10rem;
height: 1rem;
position: absolute;
top: 1rem;
font-size: 0.7rem;
color: #278B1C;
}
.act-room-p2 {
height: 1.5rem;
width: 4.155rem;
background: url(../images/act-room-p.png) no-repeat;
background-size: 100% 100%;
position: absolute;
top: 2.3rem;
left: 2.922rem;
font-size: 0.8rem;
color: #278B1C;
line-height: 1.5rem;
text-align: center;
font-weight: 700;
}
.act-room-p3 {
text-align: center;
width: 10rem;
height: 1rem;
position: absolute;
top: 4rem;
font-size: 0.7rem;
color: #278B1C;
}
.act-room-p4 {
height: 1.5rem;
width: 4.155rem;
background: url(../images/act-room-p.png) no-repeat;
background-size: 100% 100%;
position: absolute;
top: 5.3rem;
left: 2.922rem;
font-size: 0.8rem;
color: #278B1C;
line-height: 1.5rem;
text-align: center;
font-weight: 700;
}
......@@ -287,6 +287,13 @@ iframe{
margin: 0 auto;
position: relative;
left: 0.05rem;
h2{
height: 5rem;
line-height: 5rem;
font-size: 0.5rem;
color:#067B00;
text-align: center;
}
}
.list-top1{
width: 2.8rem;
......@@ -330,6 +337,9 @@ iframe{
left: 0.7rem;
}
.top-mc-p1{
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
width: 2.8rem;
font-size: 0.35rem;
font-weight: 700;
......@@ -542,3 +552,56 @@ iframe{
color: rgb(240, 255, 37);
}
}
.act-room-bg2{
width: 10rem;
height: 8.482rem;
background: url(../images/act-room-bg2.png)no-repeat;
background-size: 100% 100%;
position: relative;
}
.act-room-p1{
text-align: center;
width: 10rem;
height: 1rem;
position: absolute;
top: 1rem;
font-size: 0.7rem;
color: #278B1C;
}
.act-room-p2{
height: 1.5rem;
width: 4.155rem;
background: url(../images/act-room-p.png)no-repeat;
background-size: 100% 100%;
position: absolute;
top: 2.3rem;
left: 2.922rem;
font-size: 0.8rem;
color: #278B1C;
line-height: 1.5rem;
text-align: center;
font-weight: 700;
}
.act-room-p3{
text-align: center;
width: 10rem;
height: 1rem;
position: absolute;
top: 4rem;
font-size: 0.7rem;
color: #278B1C;
}
.act-room-p4{
height: 1.5rem;
width: 4.155rem;
background: url(../images/act-room-p.png)no-repeat;
background-size: 100% 100%;
position: absolute;
top: 5.3rem;
left: 2.922rem;
font-size: 0.8rem;
color: #278B1C;
line-height: 1.5rem;
text-align: center;
font-weight: 700;
}
\ No newline at end of file
......@@ -8,7 +8,7 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta content="telephone=no" name="format-detection">
<meta name="wap-font-scale" content="no">
<title>女神物語</title>
<title>她の秘密後花園</title>
<script src="lib/fsize.js"></script>
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/layer.css">
......@@ -214,6 +214,17 @@
<script src="lib/swiper.min.js"></script>
<script>
$(function(){
if(sessionStorage.lang==2)var titleName="她の秘密後花園"
else var titleName="Goddess Chronicles"
var obj = {
"cid": 34, //修改网页title 居中显示。
"data": {
"type": 2, //1 图片 2文本。
"imgTxt": titleName,
}
}
var obj2 = JSON.stringify(obj);
appCollaboration(obj2);
$(".lucky-tips").on("click",function(){
layer.open({
type: 1,
......@@ -239,24 +250,31 @@ $(function(){
topUser()
task()
})
if(sessionStorage.jump==1){
$(".mc-box").hide()
$(".user-box").fadeIn(200)
$(".top-btn1").addClass("top-btn2")
topUser()
task()
}
$(".list-box-bg .list-btn1 div").on("click",function(){
var _self=$(this)
if(_self.attr("data-type")==1){
list(1,0)
$(".list-btn1").removeClass("list-btn2")
$(".list-box-bg .list-btn1").removeClass("list-btn2")
}else{
list(1,1)
$(".list-btn1").addClass("list-btn2")
$(".list-box-bg .list-btn1").addClass("list-btn2")
}
})
$(".list-box-bg2 .list-btn1 div").on("click",function(){
var _self=$(this)
if(_self.attr("data-type")==1){
list(2,0)
$(".list-btn1").removeClass("list-btn2")
$(".list-box-bg2 .list-btn1").removeClass("list-btn2")
}else{
list(2,1)
$(".list-btn1").addClass("list-btn2")
$(".list-box-bg2 .list-btn1").addClass("list-btn2")
}
})
list(1,0)
......@@ -288,6 +306,9 @@ $(function(){
html+='<p class="top-mc-p3">'+list.score+'</p>';
html+='</div>';
}
if(data.result.rankList.length==0){
html+='<h2>暫無數據~</h2>'
}
if(type==1) $(".list-box-bg .list-top-box").html(html)
else $(".list-box-bg2 .list-top-box").html(html)
......@@ -402,6 +423,7 @@ $(function(){
console.log("領取任務獎勵",data)
if(data.code!=1){
layer.msg(data.msg)
return;
}
layer.msg("領取成功")
task()
......
......@@ -33,6 +33,12 @@
<div class="act-room-bg1 ">
<div class="num-box">0</div>
</div>
<div style="display: none;" class="act-room-bg2">
<div class="act-room-p1">距離上一名 :</div>
<div class="act-room-p2">8000</div>
<div class="act-room-p3">當前排名:</div>
<div class="act-room-p4">15</div>
</div>
</body>
<script src="lib/jquery-3.1.1.min.js"></script>
<script src="layer-v3.1.0/layer/layer.js"></script>
......@@ -44,31 +50,31 @@ $(function(){
$("body").addClass("bg-en")
}
$(".act-room-bg1").on("click",function(){
// var obj = {
// "cid": 12,
// "reqCode": new Date().getTime(),
// "data": {
// "msg": '跳转集合功能',
// "jumptype": 3,
// "url":"http://test.ybact.yazhaiyabo.com/games/fireGarden2/index.html" + location.search +'&jump=fusi',
// }
// }
// var obj2 = JSON.stringify(obj);
// appCollaboration(obj2);
var obj = {
"cid": 31,
"cid": 12,
"reqCode": new Date().getTime(),
"data": {
"popupType":2,
// "width":314,
"url":'http://test.ybact.yazhaiyabo.com/games/fireGarden2/index.html',
"heightR":160,
"clickBlank":1,
"bottom":'0',
"msg": '跳转集合功能',
"jumptype": 3,
"url": $url + "/activeFt/garden/index.html" + location.search+'&jump=1',
}
}
var obj2 = JSON.stringify(obj);
appCollaboration(obj2);
// var obj = {
// "cid": 31,
// "reqCode": new Date().getTime(),
// "data": {
// "popupType":2,
// // "width":314,
// "url":'http://test.ybact.yazhaiyabo.com/games/fireGarden2/index.html',
// "heightR":160,
// "clickBlank":1,
// "bottom":'0',
// }
// }
// var obj2 = JSON.stringify(obj);
// appCollaboration(obj2);
})
if(sessionStorage.lang!=2){
......
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