Commit 22106bf7 by libai

ft活动上线

parent 06923fdf
...@@ -530,10 +530,12 @@ iframe { ...@@ -530,10 +530,12 @@ iframe {
height: 2rem; height: 2rem;
border-radius: 50%; border-radius: 50%;
font-size: 1.3rem; font-size: 1.3rem;
background: rgba(37, 137, 28);
text-align: center; text-align: center;
line-height: 2rem; line-height: 2rem;
font-weight: 700; font-weight: 700;
color: #f0ff25; color: #f0ff25;
border: 0.1rem solid #55eb3d;
} }
.act-room-bg2 { .act-room-bg2 {
width: 10rem; width: 10rem;
...@@ -588,3 +590,9 @@ iframe { ...@@ -588,3 +590,9 @@ iframe {
text-align: center; text-align: center;
font-weight: 700; font-weight: 700;
} }
.line {
width: 3.58rem;
position: absolute;
bottom: 0;
left: 2.8rem;
}
...@@ -546,10 +546,12 @@ iframe{ ...@@ -546,10 +546,12 @@ iframe{
// background: pink; // background: pink;
border-radius: 50%; border-radius: 50%;
font-size: 1.3rem; font-size: 1.3rem;
background: rgba(37,137,28);
text-align: center; text-align: center;
line-height: 2rem; line-height: 2rem;
font-weight: 700; font-weight: 700;
color: rgb(240, 255, 37); color: rgb(240, 255, 37);
border: 0.1rem solid rgb(85,235,61);
} }
} }
.act-room-bg2{ .act-room-bg2{
...@@ -604,4 +606,10 @@ iframe{ ...@@ -604,4 +606,10 @@ iframe{
line-height: 1.5rem; line-height: 1.5rem;
text-align: center; text-align: center;
font-weight: 700; font-weight: 700;
}
.line{
width: 3.58rem;
position: absolute;
bottom: 0;
left: 2.8rem;
} }
\ No newline at end of file

10 KB | W: | H:

10.3 KB | W: | H:

activeFt/garden/images/act-room-bg.png
activeFt/garden/images/act-room-bg.png
activeFt/garden/images/act-room-bg.png
activeFt/garden/images/act-room-bg.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -322,6 +322,7 @@ $(function(){ ...@@ -322,6 +322,7 @@ $(function(){
html+='<p>'+list.name+'</p>'; html+='<p>'+list.name+'</p>';
html+='</div>'; html+='</div>';
html+='<div class="list-box3">花園積分 : '+list.score+'</div>'; html+='<div class="list-box3">花園積分 : '+list.score+'</div>';
html+='<img class="line" src="images/line.png">'
html+='</li>'; html+='</li>';
} }
if(type==1)$(".list-box-bg .list-content").html(html) if(type==1)$(".list-box-bg .list-content").html(html)
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<script src="lib/lottie-player.js"></script> <script src="lib/lottie-player.js"></script>
<body style="background: rgba(0, 0, 0, 0);"> <body style="background: rgba(0, 0, 0, 0);">
<div class="act-room-bg1 "> <div class="act-room-bg1 ">
<div class="num-box">0</div> <div style="display: none;" class="num-box">0</div>
</div> </div>
<div style="display: none;" class="act-room-bg2"> <div style="display: none;" class="act-room-bg2">
<div class="act-room-p1">距離上一名 :</div> <div class="act-room-p1">距離上一名 :</div>
...@@ -50,17 +50,29 @@ $(function(){ ...@@ -50,17 +50,29 @@ $(function(){
$("body").addClass("bg-en") $("body").addClass("bg-en")
} }
$(".act-room-bg1").on("click",function(){ $(".act-room-bg1").on("click",function(){
var obj = { // var obj = {
"cid": 12, // "cid": 12,
"reqCode": new Date().getTime(), // "reqCode": new Date().getTime(),
"data": { // "data": {
"msg": '跳转集合功能', // "msg": '跳转集合功能',
"jumptype": 3, // "jumptype": 3,
"url": $url + "/activeFt/garden/index.html" + location.search+'&jump=1', // "url": $url + "/activeFt/garden/index.html" + location.search+'&jump=1',
// }
// }
// var obj2 = JSON.stringify(obj);
// appCollaboration(obj2);
$.ajax({
url:$ip+'/actSecretGarden/openPopup.html',
data:{
width:'0',
popupUrl:'http://test.ybact.yazhaiyabo.com/games/fireGarden2/index.html',
height:'0.5',
heightR:'121',
},
success:function(){
} }
} })
var obj2 = JSON.stringify(obj);
appCollaboration(obj2);
// var obj = { // var obj = {
// "cid": 31, // "cid": 31,
// "reqCode": new Date().getTime(), // "reqCode": new Date().getTime(),
...@@ -85,6 +97,8 @@ $(function(){ ...@@ -85,6 +97,8 @@ $(function(){
url:$ip+'/actSecretGarden/getRoomPartData.html', url:$ip+'/actSecretGarden/getRoomPartData.html',
success:function(data){ success:function(data){
console.log('圖標數據',data) console.log('圖標數據',data)
if(data.result.roomData.flowerNum>0)$(".num-box").show()
else $(".num-box").hide()
$(".num-box").text(data.result.roomData.flowerNum) $(".num-box").text(data.result.roomData.flowerNum)
} }
}) })
......
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