Commit dc916699 by libai

ft活动上线

parent 4b257313
......@@ -12,6 +12,20 @@
position: relative;
display: none;
}
.ref {
width: 0.8rem;
position: fixed;
top: 5rem;
left: 0;
z-index: 500;
}
.rule-btn {
width: 1.72rem;
position: fixed;
top: 5rem;
right: 0;
z-index: 500;
}
.ok-btn {
width: 3.26rem;
height: 1.106rem;
......@@ -72,6 +86,7 @@
position: absolute;
top: 2.8rem;
left: 1.93rem;
transition: 3.5s all;
}
.pointer {
width: 1.392rem;
......@@ -250,6 +265,9 @@
}
.list-ul .li-box2 .li-p1 {
padding-top: 0.7rem;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
.list-ul .li-box2 .li-p2 {
font-size: 0.3rem;
......
......@@ -12,6 +12,20 @@
position: relative;
display: none;
}
.ref{
width: 0.8rem;
position: fixed;
top: 5rem;
left: 0;
z-index: 500;
}
.rule-btn{
width: 1.72rem;
position: fixed;
top: 5rem;
right: 0;
z-index: 500;
}
.ok-btn{
width: 3.26rem;
height: 1.106rem;
......@@ -72,6 +86,8 @@
position: absolute;
top: 2.8rem;
left: 1.93rem;
transition: 3.5s all;
}
.pointer{
width: 1.392rem;
......@@ -250,6 +266,9 @@
text-indent: 3rem;
.li-p1{
padding-top: 0.7rem;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
.li-p2{
font-size: 0.3rem;
......
......@@ -32,6 +32,8 @@
<script src="lib/lottie-player.js"></script>
<body style="background: #130823;">
<div class="bg">
<img class="ref" src="images/ref.png" alt="">
<img class="rule-btn" src="images/rule-btn.png" alt="">
<div class="layer-day">
<div class="ok-btn"></div>
</div>
......@@ -72,6 +74,7 @@
</li> -->
</ul>
</div>
<div style="height: 2rem;"></div>
</div>
<div class="user-box" style="display: none;">
<div class="task-box">
......@@ -126,6 +129,8 @@ $(function(){
$(".user-box").fadeIn(200)
task()
user()
})
$(".ok-btn").on("click",function(){
layer.closeAll()
......@@ -146,17 +151,21 @@ $(function(){
if(data.result.rewardId<4) $(".layer-reg-gift img").attr("src","images/gift/g1.png")
else $(".layer-reg-gift img").attr("src","images/gift/g"+data.result.rewardId+".png")
layer.open({
type: 1,
title: false,
shadeClose: true,
skin: "yourclass5",
area: ["10rem", "auto"],
content: $(".layer-reg"),
end: function () {
$(".layui-layer-shade").hide()
}
})
turnShow(data.result.rewardId)
setTimeout(function() {
layer.open({
type: 1,
title: false,
shadeClose: true,
skin: "yourclass5",
area: ["10rem", "auto"],
content: $(".layer-reg"),
end: function () {
$(".layui-layer-shade").hide()
}
})
}, 3600);
}
})
}
......@@ -169,6 +178,7 @@ $(function(){
layer.msg(data.msg)
return;
}
layer.open({
type: 1,
title: false,
......@@ -342,7 +352,11 @@ $(function(){
}
})
}
function turnShow(e){
var goDeg=720+(360-(e-1)*45)
$(".turn-center").css("transform","rotate("+goDeg+"deg)")
}
function user(){
$.ajax({
url:$ip+'/actTheLuckFairy/getWelfareData.html',
......
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