Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
libai
/
fsActive
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
587986af
authored
7 months ago
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ft活动上线
parent
f11d457d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
135 additions
and
5 deletions
activeFt/luckyGod/oldView.html
activeFt/luckyGod/pop.html
activeFt/luckyGod/oldView.html
View file @
587986af
...
...
@@ -77,7 +77,27 @@ $(function(){
if
(
sessionStorage
.
lang
!=
2
){
}
//三十秒后弹窗
setTimeout
(
function
(){
if
(
localStorage
.
luckyLayer
==
undefined
||
localStorage
.
luckyLayer
<
new
Date
().
getTime
()){
localStorage
.
luckyLayer
=
(
Number
(
new
Date
().
getTime
())
+
86400000
)
console
.
log
(
"弹了"
,
localStorage
.
luckyLayer
)
$
.
ajax
({
url
:
$ip
+
'/actSecretGarden/openPopup.html'
,
data
:{
width
:
'0'
,
popupUrl
:
$url
+
"/activeFt/luckyGod/pop.html"
,
height
:
'0.5'
,
heightR
:
'124'
,
x
:
'0'
,
y
:
'0.5'
,
},
success
:
function
(){
}
})
}
},
3000
)
function
view
(){
$
.
ajax
({
url
:
$ip
+
'/actTheLuckFairy/getRoomPartData.html'
,
...
...
This diff is collapsed.
Click to expand it.
activeFt/luckyGod/pop.html
View file @
587986af
...
...
@@ -27,13 +27,18 @@
.yourclass5
.layui-layer-content
{
border-radius
:
0rem
!important
;
}
.turn-box
{
margin-top
:
-1.5rem
;
}
</style>
</head>
<script
src=
"lib/lottie-player.js"
></script>
<body
style=
"background: rgba(0,0,0,0);"
>
<div
class=
"pop"
>
<div
class=
"close"
></div>
<div
class=
"pop-btn"
></div>
<body
style=
"background:#130823;"
>
<div
class=
"turn-box"
>
<div
class=
"turn-center"
></div>
<div
class=
"turn-reg-box"
></div>
<div
class=
"pointer"
></div>
</div>
</body>
<script
src=
"lib/jquery-3.1.1.min.js"
></script>
...
...
@@ -44,8 +49,113 @@
<script>
$
(
function
(){
if
(
sessionStorage
.
lang
!=
2
){
$
(
"body"
).
addClass
(
"body-en"
)
$
(
"body"
).
addClass
(
"bg-en"
)
}
function
turnShow
(
e
){
var
goDeg
=
720
+
(
360
-
(
e
-
1
)
*
45
)
$
(
".turn-center"
).
css
(
"transform"
,
"rotate("
+
goDeg
+
"deg)"
)
}
var
userRegTimer
=
null
function
checkReg
(){
$
.
ajax
({
url
:
$ip
+
'/actTheLuckFairy/getUserRechargeData.html'
,
success
:
function
(
data
){
console
.
log
(
'检查用户储值'
,
data
)
if
(
data
.
result
.
status
>
0
){
user
()
}
}
})
}
user
()
function
lottery
(){
if
(
lottery
==
false
)
return
;
lottery
=
false
$
.
ajax
({
url
:
$ip
+
'/actTheLuckFairy/userLottery.html'
,
success
:
function
(
data
){
console
.
log
(
"抽奖"
)
if
(
data
.
code
!=
1
){
layer
.
msg
(
data
.
msg
)
lottery
=
true
return
}
if
(
sessionStorage
.
lang
==
2
)
var
regNameArr
=
[
''
,
'幸運花環*3'
,
'幸運花環*5'
,
'幸運花環*10'
,
'vip*3天'
,
'幸運風車'
,
'幸運蝴蝶'
,
'幸運金幣'
,
'幸運元寶'
]
else
var
regNameArr
=
[
''
,
'Lucky wreath*3'
,
'Lucky wreath*5'
,
'Lucky wreath*10'
,
'vip*3day'
,
'Lucky pinwheel'
,
'Lucky Butterfly'
,
'Lucky Coin'
,
'Lucky ingot'
]
if
(
sessionStorage
.
lang
==
2
)
$
(
".layer-reg-name"
).
text
(
'恭喜您獲得'
+
regNameArr
[
data
.
result
.
rewardId
]
+
''
)
else
$
(
".layer-reg-name"
).
text
(
'Congrats on '
+
regNameArr
[
data
.
result
.
rewardId
]
+
''
)
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"
)
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
()
user
()
}
})
},
3600
);
}
})
}
function
user
(){
$
.
ajax
({
url
:
$ip
+
'/actTheLuckFairy/getWelfareData.html'
,
success
:
function
(
data
){
console
.
log
(
"获取福利页面"
,
data
)
//購買每日禮包
if
(
data
.
result
.
welfareList
[
1
].
status
==
0
){
$
(
".day-box-btn"
).
unbind
(
"click"
).
on
(
"click"
,
function
(){
buyGoods
()
})
}
else
{
$
(
".day-box-btn"
).
addClass
(
"day-box-btn-end"
)
}
//儲值抽獎
clearInterval
(
userRegTimer
)
if
(
data
.
result
.
welfareList
[
0
].
status
==-
1
){
userRegTimer
=
setInterval
(
function
(){
checkReg
()
},
5000
)
$
(
".turn-reg-box"
).
unbind
(
"click"
).
on
(
"click"
,
function
(){
var
obj
=
{
"cid"
:
12
,
"reqCode"
:
new
Date
().
getTime
(),
"data"
:
{
"msg"
:
'去儲值'
,
"jumptype"
:
16
,
//16: 去储值 18: 跳转到座驾 3:跳转集合功能 28:跳转直播间 29:空间 26:设置 40:半屏宝石储值 41:礼物列表 42:背包列表 // 43: 跳转新人主播引导
"hideTitle"
:
0
// 1隐藏头部,0 不隐藏, 默认为0
}
}
var
obj2
=
JSON
.
stringify
(
obj
);
appCollaboration
(
obj2
);
})
}
else
if
(
data
.
result
.
welfareList
[
0
].
status
==
0
){
$
(
".turn-reg-box"
).
addClass
(
"turn-reg-box2"
)
$
(
".turn-reg-box"
).
unbind
(
"click"
).
on
(
"click"
,
function
(){
lottery
()
})
}
else
if
(
data
.
result
.
welfareList
[
0
].
status
==
1
){
$
(
".turn-reg-box"
).
addClass
(
"turn-reg-box3"
)
$
(
".turn-reg-box"
).
unbind
(
"click"
).
on
(
"click"
,
function
(){
})
}
}
})
}
$
(
".pop-btn"
).
on
(
"click"
,
function
(){
var
obj
=
{
"cid"
:
12
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment