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
a1e5f868
authored
Sep 08, 2025
by
kaisa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:回滚代码
parent
f836bdb0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
559 additions
and
839 deletions
activeFt/luckySpace/index.html
activeFt/luckySpace/lib/default.js
activeFt/luckySpace/index.html
View file @
a1e5f868
<!DOCTYPE html>
<!DOCTYPE html>
<html
lang=
"en"
>
<html
lang=
"en"
>
<head>
<head>
<meta
charset=
"utf-8"
/>
<meta
charset=
"utf-8"
/>
<meta
<meta
name=
"viewport"
content=
"width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"
/>
name=
"viewport"
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
>
content=
"width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"
<meta
name=
"apple-mobile-web-app-status-bar-style"
content=
"black-translucent"
>
/>
<meta
content=
"telephone=no"
name=
"format-detection"
>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
/>
<meta
name=
"wap-font-scale"
content=
"no"
>
<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>
<script
src=
"lib/fsize.js"
></script>
<link
rel=
"stylesheet"
href=
"css/base.css"
/
>
<link
rel=
"stylesheet"
href=
"css/base.css"
>
<link
rel=
"stylesheet"
href=
"css/layer.css"
/
>
<link
rel=
"stylesheet"
href=
"css/layer.css"
>
<link
rel=
"stylesheet"
href=
"css/daily.css"
/
>
<link
rel=
"stylesheet"
href=
"css/daily.css"
>
<link
rel=
"stylesheet"
href=
"css/index.css?v=2024111201"
/
>
<link
rel=
"stylesheet"
href=
"css/index.css?v=2024111201"
>
<link
rel=
"stylesheet"
href=
"css/liMarquee.css"
/
>
<link
rel=
"stylesheet"
href=
"css/liMarquee.css"
>
<style>
<style>
.layui-layer-shade
{
.layui-layer-shade
{
opacity
:
0.7
!important
;
opacity
:
0.7
!important
;
...
@@ -34,22 +29,23 @@
...
@@ -34,22 +29,23 @@
border-radius
:
0rem
!important
;
border-radius
:
0rem
!important
;
}
}
</style>
</style>
</head>
</head>
<body
style=
"background: rgb(5, 0,
42)"
>
<body
style=
"background:rgb(5,0,
42)"
>
<div
class=
"layer-over"
>
<div
class=
"layer-over"
>
<p
class=
"layer-yes-p1"
>
xxxx米
</p>
<p
class=
"layer-yes-p1"
>
xxxx米
</p>
<p
class=
"layer-yes-p2"
>
xxxx米
</p>
<p
class=
"layer-yes-p2"
>
xxxx米
</p>
<p
class=
"layer-yes-p3"
>
xxxx米
</p>
<p
class=
"layer-yes-p3"
>
xxxx米
</p>
<div
class=
"layer-yes-gift-box1"
>
<div
class=
"layer-yes-gift-box1"
>
<img
src=
"images/gift.png"
alt=
""
/
>
<img
src=
"images/gift.png"
alt=
""
>
</div>
</div>
<div
class=
"layer-yes-gift-text1"
>
<div
class=
"layer-yes-gift-text1"
>
<p>
漫游太空
</p>
<p>
漫游太空
</p>
<p
class=
"yes-gift-text1-p1"
>
价值XX钻石
</p>
<p
class=
"yes-gift-text1-p1"
>
价值XX钻石
</p>
</div>
</div>
<div
class=
"layer-yes-gift-box2"
>
<div
class=
"layer-yes-gift-box2"
>
<img
style=
"width: 1.3rem"
src=
"images/zuan.png"
alt=
""
/
>
<img
style=
"width:1.3rem"
src=
"images/zuan.png"
alt=
""
>
</div>
</div>
<div
class=
"layer-yes-gift-text2"
>
<div
class=
"layer-yes-gift-text2"
>
<p>
额外惊喜
</p>
<p>
额外惊喜
</p>
...
@@ -57,7 +53,7 @@
...
@@ -57,7 +53,7 @@
</div>
</div>
</div>
</div>
<div
class=
"layer-record"
>
<div
class=
"layer-record"
>
<img
class=
"back"
src=
"images/back.png"
alt=
""
/
>
<img
class=
"back"
src=
"images/back.png"
alt=
""
>
<ul
class=
"layer-record-ul"
>
<ul
class=
"layer-record-ul"
>
<!-- <li>
<!-- <li>
<div class="layer-record1">000213</div>
<div class="layer-record1">000213</div>
...
@@ -101,13 +97,13 @@
...
@@ -101,13 +97,13 @@
<p
class=
"topUser-p4"
>
--x
</p>
<p
class=
"topUser-p4"
>
--x
</p>
</div>
</div>
</div>
</div>
<div
style=
"display: none"
class=
"layer-no2"
>
<div
style=
"display: none
;
"
class=
"layer-no2"
>
<div
class=
"layer-yes2-p1"
>
<div
class=
"layer-yes2-p1"
>
<div
class=
"line"
></div>
<div
class=
"line"
></div>
<p
class=
"layer-yes2-txt1"
>
贏取露水總額
</p>
<p
class=
"layer-yes2-txt1"
>
贏取露水總額
</p>
<p
class=
"layer-yes2-txt2"
>
--
</p>
<p
class=
"layer-yes2-txt2"
>
--
</p>
</div>
</div>
<div
class=
"
layer-yes2-p2"
>
<div
class=
"
layer-yes2-p2"
>
<div
class=
"line"
></div>
<div
class=
"line"
></div>
<p
class=
"layer-yes2-txt1"
>
飛船最高高度
</p>
<p
class=
"layer-yes2-txt1"
>
飛船最高高度
</p>
<p
class=
"layer-yes2-txt2"
>
--米
</p>
<p
class=
"layer-yes2-txt2"
>
--米
</p>
...
@@ -169,7 +165,7 @@
...
@@ -169,7 +165,7 @@
</div>
</div>
<div
class=
"fly-bg"
></div>
<div
class=
"fly-bg"
></div>
<div
class=
"get-show"
>
<div
class=
"get-show"
>
<img
src=
"images/h4/1_00001.png"
alt=
""
/
>
<img
src=
"images/h4/1_00001.png"
alt=
""
>
</div>
</div>
<div
class=
"ban-bg"
>
<div
class=
"ban-bg"
>
<div
class=
"user-out-box"
>
<div
class=
"user-out-box"
>
...
@@ -183,18 +179,20 @@
...
@@ -183,18 +179,20 @@
<div
class=
"star-show"
></div>
<div
class=
"star-show"
></div>
<div
class=
"mi-bg"
>
525米
</div>
<div
class=
"mi-bg"
>
525米
</div>
<div
class=
"layer-rule"
>
<div
class=
"layer-rule"
>
<img
class=
"back"
src=
"images/back.png"
alt=
""
/
>
<img
class=
"back"
src=
"images/back.png"
alt=
""
>
<div
class=
"layer-rule-content"
>
<div
class=
"layer-rule-content"
>
<img
src=
"images/rule-text.png?v=2024062901"
alt=
""
/
>
<img
src=
"images/rule-text.png?v=2024062901"
alt=
""
>
<div
style=
"height: 0.5rem
"
></div>
<div
style=
"height: 0.5rem;
"
></div>
</div>
</div>
</div>
</div>
<div
class=
"layer-history2"
>
<div
class=
"layer-history2"
>
<img
class=
"back"
src=
"images/back.png"
alt=
""
/>
<img
class=
"back"
src=
"images/back.png"
alt=
""
>
<ul
class=
"layer-history2-ul"
></ul>
<ul
class=
"layer-history2-ul"
>
</ul>
</div>
</div>
<div
class=
"layer-history"
>
<div
class=
"layer-history"
>
<img
class=
"back"
src=
"images/back.png"
alt=
""
/
>
<img
class=
"back"
src=
"images/back.png"
alt=
""
>
<ul
class=
"layer-history-ul"
>
<ul
class=
"layer-history-ul"
>
<!-- <li>
<!-- <li>
<div class="layer-history-box1">x月x日XX:XX</div>
<div class="layer-history-box1">x月x日XX:XX</div>
...
@@ -239,8 +237,10 @@
...
@@ -239,8 +237,10 @@
</ul>
</ul>
</div>
</div>
<div
class=
"layer-list"
>
<div
class=
"layer-list"
>
<img
class=
"back"
src=
"images/back.png"
alt=
""
/>
<img
class=
"back"
src=
"images/back.png"
alt=
""
>
<ul
class=
"layer-list-ul"
></ul>
<ul
class=
"layer-list-ul"
>
</ul>
</div>
</div>
<div
class=
"time-box"
>
<div
class=
"time-box"
>
<p
class=
"time-box-tips"
>
Getting ready · · ·
</p>
<p
class=
"time-box-tips"
>
Getting ready · · ·
</p>
...
@@ -249,14 +249,10 @@
...
@@ -249,14 +249,10 @@
<div
class=
"num-box-p2"
></div>
<div
class=
"num-box-p2"
></div>
</div>
</div>
<p
class=
"time-box-man"
>
<p
class=
"time-box-man"
>
<span>
--
</span><i
class=
"en-txt1"
>
人
</i><br
/><i
class=
"en-txt2"
<span>
--
</span><i
class=
"en-txt1"
>
人
</i><br><i
class=
"en-txt2"
>
已登船
</i>
>
已登船
</i
>
</p>
</p>
</div>
</div>
<div
class=
"top-btn1"
></div>
<div
class=
"top-btn1"
></div>
<div
class=
"top-btn4"
></div>
<div
class=
"top-btn5"
></div>
<div
class=
"top-btn2"
></div>
<div
class=
"top-btn2"
></div>
<div
class=
"top-btn3"
></div>
<div
class=
"top-btn3"
></div>
<!-- <div data-type="1" class="more-btn"></div>
<!-- <div data-type="1" class="more-btn"></div>
...
@@ -265,41 +261,33 @@
...
@@ -265,41 +261,33 @@
<div>历史纪录</div>
<div>历史纪录</div>
<div>用户日榜</div>
<div>用户日榜</div>
</div> -->
</div> -->
<img
class=
"boomShow"
src=
"images/boom1/1_00260.png"
alt=
""
/
>
<img
class=
"boomShow"
src=
"images/boom1/1_00260.png"
alt=
""
>
<div
class=
"fly
"
>
<div
class=
"fly
"
>
<div
class=
"fly-face-box"
></div>
<div
class=
"fly-face-box"
></div>
<img
class=
"hot-go"
src=
"images/h2/1_00134.png"
alt=
""
/>
<img
class=
"hot-go"
src=
"images/h2/1_00134.png"
alt=
""
>
<img
class=
"hot"
src=
"images/h3/1_00134.png"
alt=
""
/>
<img
class=
"hot"
src=
"images/h3/1_00134.png"
alt=
""
>
<img
<img
style=
"display: none;"
class=
"fly-face"
style=
"display: none"
src=
"https://zhibocdn.lvdou66.com/comm/user/boy.png?x-oss-process=image/resize,w_80"
alt=
""
>
class=
"fly-face"
src=
"https://zhibocdn.lvdou66.com/comm/user/boy.png?x-oss-process=image/resize,w_80"
alt=
""
/>
</div>
</div>
<div
class=
"bottom-box1"
>
<div
class=
"bottom-box1"
>
<div
class=
"card-box"
>
<div
class=
"card-box"
>
<img
src=
"images/ticket.png"
alt=
""
/
>
<span>
--
</span>
<img
src=
"images/ticket.png"
alt=
""
>
<span>
--
</span>
<div
class=
"card-add-box"
>
<div
class=
"card-add-box"
>
<!-- <div class="card-add-num">+100</div> -->
<!-- <div class="card-add-num">+100</div> -->
</div>
</div>
</div>
</div>
<ul
class=
"bottom-money-box"
>
<ul
class=
"bottom-money-box"
>
<li
data-type=
"1"
class=
"li-money-click"
>
<li
data-type=
"1"
class=
"li-money-click"
><img
src=
"images/dew.png"
>
100
</li>
<img
src=
"images/dew.png"
/>
100
<li
data-type=
"2"
><img
src=
"images/dew.png"
>
1000
</li>
</li>
<li
data-type=
"3"
><img
src=
"images/dew.png"
>
10k
</li>
<li
data-type=
"2"
><img
src=
"images/dew.png"
/>
1000
</li>
<li
data-type=
"4"
><img
src=
"images/dew.png"
>
100k
</li>
<li
data-type=
"3"
><img
src=
"images/dew.png"
/>
10k
</li>
<li
data-type=
"4"
><img
src=
"images/dew.png"
/>
100k
</li>
</ul>
</ul>
<div
class=
"diamond-box"
>
<div
class=
"diamond-box"
><span>
--
</span>
<img
class=
"add-btn"
src=
"images/add.png"
alt=
""
></div>
<span>
--
</span>
<img
class=
"add-btn"
src=
"images/add.png"
alt=
""
/>
</div>
<div
class=
"go-btn"
></div>
<div
class=
"go-btn"
></div>
</div>
</div>
<div
class=
"bottom-box2"
>
<div
class=
"bottom-box2"
>
<div
class=
"card-box"
>
<div
class=
"card-box"
>
<img
src=
"images/ticket.png"
alt=
""
/
>
<span>
--
</span>
<img
src=
"images/ticket.png"
alt=
""
>
<span>
--
</span>
</div>
</div>
<div
class=
"out-fly-box"
>
<div
class=
"out-fly-box"
>
...
@@ -307,49 +295,50 @@
...
@@ -307,49 +295,50 @@
<!-- <div class="out-fly-btn"></div> -->
<!-- <div class="out-fly-btn"></div> -->
<!-- <div class="out-fly-end">你已下船(588米)</div> -->
<!-- <div class="out-fly-end">你已下船(588米)</div> -->
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</body>
<script
src=
"lib/jquery-3.1.1.min.js"
></script>
<script
src=
"lib/jquery-3.1.1.min.js"
></script>
<script
src=
"layer-v3.1.0/layer/layer.js"
></script>
<script
src=
"layer-v3.1.0/layer/layer.js"
></script>
<script
src=
"lib/liMarquee.js"
></script>
<script
src=
"lib/liMarquee.js"
></script>
<script
src=
"lib/default.js?v='2024062103
'"
></script>
<script
src=
"lib/default.js?v='2024062102
'"
></script>
<script>
<script>
var
betType
;
var
betType
if
(
sessionStorage
.
lang
!=
2
&&
sessionStorage
.
lang
!=
0
)
{
if
(
sessionStorage
.
lang
!=
2
&&
sessionStorage
.
lang
!=
0
)
{
$
(
"body"
).
addClass
(
"bg-en"
);
$
(
"body"
).
addClass
(
"bg-en"
)
$
(
".layer-rule-content img"
).
attr
(
"src"
,
"images/en/rule-text.png"
);
$
(
".layer-rule-content img"
).
attr
(
"src"
,
"images/en/rule-text.png"
)
$
(
".en-txt1"
).
text
(
" player"
);
$
(
".en-txt1"
).
text
(
" player"
)
$
(
".en-txt2"
).
text
(
"Has boarded the rocket"
);
$
(
".en-txt2"
).
text
(
"Has boarded the rocket"
)
$
(
".layer-yes2-p1 .layer-yes2-txt1"
).
text
(
"Earn Total DEWs Amoun"
);
$
(
".layer-yes2-p1 .layer-yes2-txt1"
).
text
(
'Earn Total DEWs Amoun'
)
$
(
".layer-yes2-p2 .layer-yes2-txt1"
).
text
(
"Rocket's Max Height"
);
$
(
".layer-yes2-p2 .layer-yes2-txt1"
).
text
(
"Rocket's Max Height"
)
$
(
".layer-yes2-p3 .layer-yes2-txt1"
).
text
(
"Initial DEWs"
);
$
(
".layer-yes2-p3 .layer-yes2-txt1"
).
text
(
"Initial DEWs"
)
$
(
".layer-yes2-p4 .layer-yes2-txt1"
).
text
(
"My victory multiplier"
);
$
(
".layer-yes2-p4 .layer-yes2-txt1"
).
text
(
'My victory multiplier'
)
}
}
var
gameDateId
=
new
Date
().
getTime
()
;
var
gameDateId
=
new
Date
().
getTime
()
var
hot
=
null
;
var
hot
=
null
var
boomTime
=
null
;
var
boomTime
=
null
var
nowExplose
=
true
;
var
nowExplose
=
true
;
var
goHotTime1
=
null
;
var
goHotTime1
=
null
var
goHotTime2
=
null
;
var
goHotTime2
=
null
var
miTimer
=
null
;
var
miTimer
=
null
var
oldMeter
=
100
;
var
oldMeter
=
100
var
jumpOk
=
true
;
var
jumpOk
=
true
;
var
flyMan
=
0
;
var
flyMan
=
0
var
flyMan2
=
0
;
var
flyMan2
=
0
var
goManTimer
=
null
;
var
goManTimer
=
null
var
outManTimer
=
null
;
var
outManTimer
=
null
setTimeout
(
function
()
{
setTimeout
(
function
()
{
loadImageGo
(
"h2"
,
134
,
141
);
loadImageGo
(
'h2'
,
134
,
141
)
loadImageGo
(
"h3"
,
134
,
199
);
loadImageGo
(
'h3'
,
134
,
199
)
loadImageGo
(
"boom1"
,
252
,
269
);
loadImageGo
(
'boom1'
,
252
,
269
)
loadImageGo
(
"h4"
,
1
,
44
);
loadImageGo
(
'h4'
,
1
,
44
)
},
1000
)
;
},
1000
)
function
loadImageGo
(
name
,
sNum
,
eNum
)
{
function
loadImageGo
(
name
,
sNum
,
eNum
)
{
var
imgList
=
[];
var
imgList
=
[];
var
num
=
sNum
;
var
num
=
sNum
;
loadImage
();
loadImage
()
function
loadImage
()
{
function
loadImage
()
{
var
img
=
new
Image
();
var
img
=
new
Image
();
img
.
addEventListener
(
"load"
,
loadHandler
);
img
.
addEventListener
(
"load"
,
loadHandler
);
...
@@ -358,502 +347,366 @@
...
@@ -358,502 +347,366 @@
function
loadHandler
()
{
function
loadHandler
()
{
imgList
.
push
(
this
.
cloneNode
());
imgList
.
push
(
this
.
cloneNode
());
num
++
;
num
++
;
if
(
num
>
eNum
)
{
if
(
num
>
eNum
)
{
return
;
}
return
;
}
this
.
src
=
"images/"
+
name
+
"/1_"
+
imgAdd
(
num
)
+
".png"
;
this
.
src
=
"images/"
+
name
+
"/1_"
+
imgAdd
(
num
)
+
".png"
;
}
}
}
}
betType
=
1
;
betType
=
1
$
(
".more-btn"
).
on
(
"click"
,
function
()
{
$
(
".more-btn"
).
on
(
"click"
,
function
()
{
var
_self
=
$
(
this
);
var
_self
=
$
(
this
)
if
(
_self
.
attr
(
"data-type"
)
==
1
)
{
if
(
_self
.
attr
(
"data-type"
)
==
1
)
{
$
(
".more-list"
).
fadeIn
(
250
);
$
(
".more-list"
).
fadeIn
(
250
)
_self
.
attr
(
"data-type"
,
2
);
_self
.
attr
(
"data-type"
,
2
)
}
else
{
}
else
{
$
(
".more-list"
).
fadeOut
(
250
);
$
(
".more-list"
).
fadeOut
(
250
)
_self
.
attr
(
"data-type"
,
1
);
_self
.
attr
(
"data-type"
,
1
)
}
}
})
;
})
$
(
".more-list div"
)
$
(
".more-list div"
).
eq
(
0
).
on
(
"click"
,
function
()
{
.
eq
(
0
)
$
(
".layer-rule"
).
css
(
"left"
,
"0rem"
)
.
on
(
"click"
,
function
()
{
})
$
(
".layer-rule"
).
css
(
"left"
,
"0rem"
);
$
(
".more-list div"
).
eq
(
1
).
on
(
"click"
,
function
()
{
});
$
(
".layer-history2"
).
css
(
"left"
,
"0rem"
)
$
(
".more-list div"
)
history
()
.
eq
(
1
)
})
.
on
(
"click"
,
function
()
{
$
(
".more-list div"
).
eq
(
2
).
on
(
"click"
,
function
()
{
$
(
".layer-history2"
).
css
(
"left"
,
"0rem"
);
$
(
".layer-list"
).
css
(
"left"
,
"0rem"
)
history
();
Rank
()
});
})
$
(
".more-list div"
)
.
eq
(
2
)
.
on
(
"click"
,
function
()
{
$
(
".layer-list"
).
css
(
"left"
,
"0rem"
);
Rank
();
});
$
(
".top-btn1"
).
on
(
"click"
,
function
()
{
$
(
".top-btn1"
).
on
(
"click"
,
function
()
{
$
(
".layer-rule"
).
css
(
"left"
,
"0rem"
);
$
(
".layer-rule"
).
css
(
"left"
,
"0rem"
)
})
;
})
$
(
".top-btn2"
).
on
(
"click"
,
function
()
{
$
(
".top-btn2"
).
on
(
"click"
,
function
()
{
$
(
".layer-history2"
).
css
(
"left"
,
"0rem"
);
$
(
".layer-history2"
).
css
(
"left"
,
"0rem"
)
history
();
history
()
})
;
})
$
(
".top-btn3"
).
on
(
"click"
,
function
()
{
$
(
".top-btn3"
).
on
(
"click"
,
function
()
{
record
();
record
()
$
(
".layer-record"
).
css
(
"left"
,
"0rem"
);
$
(
".layer-record"
).
css
(
"left"
,
"0rem"
)
});
})
$
(
".top-btn4"
).
on
(
"click"
,
function
()
{
$
(
".top-btn4"
).
css
(
"display"
,
"none"
);
$
(
".top-btn5"
).
css
(
"display"
,
"block"
);
mAudios
.
bgm
.
muted
=
true
;
stopAll
();
});
$
(
".top-btn5"
).
on
(
"click"
,
function
()
{
$
(
".top-btn4"
).
css
(
"display"
,
"block"
);
$
(
".top-btn5"
).
css
(
"display"
,
"none"
);
mAudios
.
bgm
.
muted
=
false
;
mAudios
.
bgm
.
play
();
});
$
(
".back"
).
on
(
"click"
,
function
()
{
$
(
".back"
).
on
(
"click"
,
function
()
{
$
(
".layer-rule"
).
css
(
"left"
,
"-10rem"
);
$
(
".layer-rule"
).
css
(
"left"
,
"-10rem"
)
$
(
".layer-history2"
).
css
(
"left"
,
"-10rem"
);
$
(
".layer-history2"
).
css
(
"left"
,
"-10rem"
)
$
(
".layer-list"
).
css
(
"left"
,
"-10rem"
);
$
(
".layer-list"
).
css
(
"left"
,
"-10rem"
)
$
(
".layer-record"
).
css
(
"left"
,
"-10rem"
);
$
(
".layer-record"
).
css
(
"left"
,
"-10rem"
)
});
})
var
moneyArr
=
[
var
moneyArr
=
[
''
,
"
<
img
src
=
'images/dew.png'
>
100
", "
<
img
src
=
'images/dew.png'
>
1000
", "
<
img
src
=
'images/dew.png'
>
10
k
", "
<
img
src
=
'images/dew.png'
>
100
k
"]
""
,
var moneyArr2 = ['', "
<
img
src
=
'images/dew.png'
>
100
", "
<
img
src
=
'images/dew.png'
>
1000
", "
<
img
src
=
'images/dew.png'
>
10
k
", "
<
img
src
=
'images/dew.png'
>
100
k
"]
"
<
img
src
=
'images/dew.png'
>
100
",
"
<
img
src
=
'images/dew.png'
>
1000
",
"
<
img
src
=
'images/dew.png'
>
10
k
",
"
<
img
src
=
'images/dew.png'
>
100
k
",
];
var moneyArr2 = [
"",
"
<
img
src
=
'images/dew.png'
>
100
",
"
<
img
src
=
'images/dew.png'
>
1000
",
"
<
img
src
=
'images/dew.png'
>
10
k
",
"
<
img
src
=
'images/dew.png'
>
100
k
",
];
$("
.
bottom
-
money
-
box
li
").on("
click
"
,
function
()
{
$("
.
bottom
-
money
-
box
li
").on("
click
"
,
function
()
{
var
_self
=
$
(
this
);
var
_self
=
$
(
this
)
for
(
var
i
=
0
;
i
<
4
;
i
++
)
{
for
(
var
i
=
0
;
i
<
4
;
i
++
)
{
$
(
".bottom-money-box li"
)
$
(
".bottom-money-box li"
).
eq
(
i
).
html
(
moneyArr2
[
i
+
1
])
.
eq
(
i
)
}
.
html
(
moneyArr2
[
i
+
1
]);
$
(
".bottom-money-box li"
).
eq
((
_self
.
attr
(
"data-type"
)
-
1
)).
html
(
moneyArr
[(
_self
.
attr
(
"data-type"
))])
}
betType
=
_self
.
attr
(
"data-type"
)
$
(
".bottom-money-box li"
)
$
(
".bottom-money-box li"
).
removeClass
(
"li-money-click"
)
.
eq
(
_self
.
attr
(
"data-type"
)
-
1
)
_self
.
addClass
(
"li-money-click"
)
.
html
(
moneyArr
[
_self
.
attr
(
"data-type"
)]);
})
betType
=
_self
.
attr
(
"data-type"
);
$
(
".bottom-money-box li"
).
removeClass
(
"li-money-click"
);
_self
.
addClass
(
"li-money-click"
);
});
$
(
".add-btn"
).
on
(
"click"
,
function
()
{
$
(
".add-btn"
).
on
(
"click"
,
function
()
{
var
obj
=
{
var
obj
=
{
cid
:
12
,
"cid"
:
12
,
reqCode
:
new
Date
().
getTime
(),
"reqCode"
:
new
Date
().
getTime
(),
data
:
{
"data"
:
{
msg
:
"兌換露水"
,
"msg"
:
"兌換露水"
,
jumptype
:
15
,
"jumptype"
:
15
,
},
}
};
}
var
obj2
=
JSON
.
stringify
(
obj
);
var
obj2
=
JSON
.
stringify
(
obj
);
appCollaboration
(
obj2
);
appCollaboration
(
obj2
);
})
;
})
// view()
// view()
// goFlyMan(150)
// goFlyMan(150)
function
goOutMan
(
e
)
{
function
goOutMan
(
e
)
{
clearInterval
(
outManTimer
);
clearInterval
(
outManTimer
)
var
outNum
=
flyMan2
-
e
;
var
outNum
=
flyMan2
-
e
;
if
(
outNum
<=
0
)
return
;
if
(
outNum
<=
0
)
return
;
outManTimer
=
setInterval
(
function
()
{
outManTimer
=
setInterval
(
function
()
{
if
(
Math
.
random
()
>
0.5
)
{
if
(
Math
.
random
()
>
0.5
)
{
$
(
".user-out-box"
).
append
(
$
(
".user-out-box"
).
append
(
'
<
div
style
=
"top:' + Math.floor(Math.random() * 0.3 * 10) / 10 + 'rem"
class
=
"out-man user-out-left"
><
/div>'
)
'
<
div
style
=
"top:' +
Math.floor(Math.random() * 0.3 * 10) / 10 +
'rem"
class
=
"out-man user-out-left"
><
/div>
'
);
}
else
{
}
else
{
$
(
".user-out-box"
).
append
(
$
(
".user-out-box"
).
append
(
'
<
div
style
=
"top:' + Math.floor(Math.random() * 0.3 * 10) / 10 + 'rem"
class
=
"out-man user-out-right"
><
/div>'
)
'
<
div
style
=
"top:' +
Math.floor(Math.random() * 0.3 * 10) / 10 +
'rem"
class
=
"out-man user-out-right"
><
/div>
'
);
}
}
outNum
--
;
outNum
--
flyMan2
--
;
flyMan2
--
if
(
outNum
<=
0
)
clearInterval
(
outManTimer
);
if
(
outNum
<=
0
)
clearInterval
(
outManTimer
)
},
200
);
},
200
)
}
}
function
goFlyMan
(
e
)
{
function
goFlyMan
(
e
)
{
clearInterval
(
goManTimer
);
clearInterval
(
goManTimer
)
var
onlineNum
=
e
-
flyMan
;
var
onlineNum
=
e
-
flyMan
if
(
onlineNum
<=
0
)
return
;
if
(
onlineNum
<=
0
)
return
;
goManTimer
=
setInterval
(
function
()
{
goManTimer
=
setInterval
(
function
()
{
if
(
Math
.
random
()
>
0.5
)
{
if
(
Math
.
random
()
>
0.5
)
{
$
(
".user-going-box"
).
append
(
$
(
".user-going-box"
).
append
(
'
<
div
style
=
"left:' + Math.floor(Math.random() * 0.3 * 10) / 10 + 'rem"
class
=
"user-man user-man-left"
><
/div>'
)
'
<
div
style
=
"left:' +
Math.floor(Math.random() * 0.3 * 10) / 10 +
'rem"
class
=
"user-man user-man-left"
><
/div>
'
);
}
else
{
}
else
{
$
(
".user-going-box"
).
append
(
$
(
".user-going-box"
).
append
(
'
<
div
style
=
"left:-' + Math.floor(Math.random() * 0.3 * 10) / 10 + 'rem"
class
=
"user-man user-man-right"
><
/div>'
)
'
<
div
style
=
"left:-' +
}
Math.floor(Math.random() * 0.3 * 10) / 10 +
onlineNum
--
'rem"
class
=
"user-man user-man-right"
><
/div>
'
flyMan
++
);
if
(
onlineNum
<=
0
)
clearInterval
(
goManTimer
)
}
},
200
)
onlineNum
--
;
}
flyMan
++
;
var
getShowTime
=
null
if
(
onlineNum
<=
0
)
clearInterval
(
goManTimer
);
},
200
);
}
var
getShowTime
=
null
;
function
getShow
()
{
function
getShow
()
{
var
getNum
=
1
;
var
getNum
=
1
$
(
".get-show"
).
fadeIn
(
150
);
$
(
".get-show"
).
fadeIn
(
150
)
getShowTime
=
setInterval
(
function
()
{
getShowTime
=
setInterval
(
function
()
{
$
(
".get-show img"
).
attr
(
$
(
".get-show img"
).
attr
(
"src"
,
"images/h4/1_000"
+
add0
(
getNum
)
+
".png"
)
"src"
,
getNum
++
"images/h4/1_000"
+
add0
(
getNum
)
+
".png"
);
getNum
++
;
if
(
getNum
>=
30
)
{
if
(
getNum
>=
30
)
{
clearInterval
(
getShowTime
);
clearInterval
(
getShowTime
)
$
(
".get-show"
).
fadeOut
(
300
);
$
(
".get-show"
).
fadeOut
(
300
)
setTimeout
(
function
()
{
setTimeout
(
function
()
{
getNum
=
1
;
getNum
=
1
$
(
".get-show img"
).
attr
(
$
(
".get-show img"
).
attr
(
"src"
,
"images/h4/1_000"
+
add0
(
getNum
)
+
".png"
)
"src"
,
"images/h4/1_000"
+
add0
(
getNum
)
+
".png"
);
},
300
);
},
300
);
}
}
},
70
);
},
70
)
// 用户参与了但是没跳船成功
if
(
data
.
result
.
userData
.
player
==
1
&&
data
.
result
.
userData
.
jumper
!=
1
)
{
betLose
();
}
}
}
function
boomShow
()
{
function
boomShow
()
{
rocketStop
();
var
boomNum
=
252
var
boomNum
=
252
;
$
(
".fly"
).
fadeOut
(
350
)
$
(
".fly"
).
fadeOut
(
350
);
$
(
".boomShow"
).
show
()
$
(
".boomShow"
).
show
();
betBoom
();
boomTime
=
setInterval
(
function
()
{
boomTime
=
setInterval
(
function
()
{
$
(
".boomShow"
).
attr
(
"src"
,
"images/boom1/1_00"
+
boomNum
+
".png"
);
$
(
".boomShow"
).
attr
(
"src"
,
"images/boom1/1_00"
+
boomNum
+
".png"
)
boomNum
++
;
boomNum
++
if
(
boomNum
>=
269
)
{
if
(
boomNum
>=
269
)
{
clearInterval
(
boomTime
);
clearInterval
(
boomTime
)
$
(
".boomShow"
).
hide
();
$
(
".boomShow"
).
hide
()
}
}
},
70
);
},
70
)
}
}
function
goHotShow
()
{
function
goHotShow
()
{
var
goHotNum1
=
134
;
var
goHotNum1
=
134
var
goHotNum2
=
134
;
var
goHotNum2
=
134
$
(
".fly"
).
css
(
"top"
,
"2.8rem"
);
$
(
".fly"
).
css
(
"top"
,
"2.8rem"
)
rocket
();
setTimeout
(
function
()
{
setTimeout
(
function
()
{
$
(
".fly"
).
addClass
(
"fly-slow"
);
$
(
".fly"
).
addClass
(
"fly-slow"
)
},
1000
);
},
1000
);
$
(
".hot"
).
hide
();
$
(
".hot"
).
hide
()
$
(
".hot-go"
).
fadeIn
(
350
);
$
(
".hot-go"
).
fadeIn
(
350
)
clearInterval
(
hot
);
clearInterval
(
hot
)
goHotTime1
=
setInterval
(
function
()
{
goHotTime1
=
setInterval
(
function
()
{
$
(
".hot-go"
).
attr
(
"src"
,
"images/h2/1_00"
+
goHotNum1
+
".png"
);
$
(
".hot-go"
).
attr
(
"src"
,
"images/h2/1_00"
+
goHotNum1
+
".png"
)
goHotNum1
++
;
goHotNum1
++
if
(
goHotNum1
>=
141
)
{
if
(
goHotNum1
>=
141
)
{
clearInterval
(
goHotTime1
);
clearInterval
(
goHotTime1
);
$
(
".hot"
).
fadeIn
(
500
);
$
(
".hot"
).
fadeIn
(
500
)
$
(
".hot-go"
).
hide
();
$
(
".hot-go"
).
hide
()
goHotTime2
=
setInterval
(
function
()
{
goHotTime2
=
setInterval
(
function
()
{
$
(
".hot"
).
attr
(
"src"
,
"images/h3/1_00"
+
goHotNum2
+
".png"
);
$
(
".hot"
).
attr
(
"src"
,
"images/h3/1_00"
+
goHotNum2
+
".png"
)
goHotNum2
++
;
goHotNum2
++
if
(
goHotNum2
>=
199
)
goHotNum2
=
134
;
if
(
goHotNum2
>=
199
)
goHotNum2
=
134
},
90
);
},
90
)
}
}
},
90
);
},
90
)
}
}
function
record
()
{
function
record
()
{
$
.
ajax
({
$
.
ajax
({
url
:
$ip
+
"/rocketlaunch/queryMyLaunchRecord"
,
url
:
$ip
+
'/rocketlaunch/queryMyLaunchRecord'
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
// console.log('查询我的飞行记录',data)
// console.log('查询我的飞行记录',data)
var
html
=
""
;
var
html
=
''
for
(
var
i
=
0
;
i
<
data
.
result
.
recordList
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
data
.
result
.
recordList
.
length
;
i
++
)
{
var
list
=
data
.
result
.
recordList
[
i
];
var
list
=
data
.
result
.
recordList
[
i
]
html
+=
"
<
li
>
"
;
html
+=
'
<
li
>
';
html
+=
'
<
div
class
=
"layer-record1"
>
'
+
list
.
gameStage
+
"
<
/div>"
;
html += '
<
div
class
=
"layer-record1"
>
' + list.gameStage + '
<
/div>'
;
html
+=
html
+=
'
<
div
class
=
"layer-record2"
>
' + list.bettingAmount + '
<
/div>'
;
'
<
div
class
=
"layer-record2"
>
'
+
list
.
bettingAmount
+
"
<
/div>"
;
if
(
list
.
jumpHeight
==
0
)
{
if
(
list
.
jumpHeight
==
0
)
{
if
(
sessionStorage
.
lang
==
2
||
sessionStorage
.
lang
==
0
)
if
(
sessionStorage
.
lang
==
2
||
sessionStorage
.
lang
==
0
)
html
+=
'
<
div
class
=
"layer-record3"
>
未下船
<
/div>'
;
html
+=
'
<
div
class
=
"layer-record3"
>
未下船
<
/div>'
;
else
html
+=
'
<
div
class
=
"layer-record3"
>
explosion
<
/div>'
;
else
html
+=
'
<
div
class
=
"layer-record3"
>
explosion
<
/div>'
;
}
else
}
html
+=
else
html
+=
'
<
div
class
=
"layer-record3"
>
' + list.jumpHeight / 100 + '
x
<
/div>'
;
'
<
div
class
=
"layer-record3"
>
'
+
html
+=
'
<
div
class
=
"layer-record4"
>
' + list.maxLaunchHeight + '
x
<
/div>'
;
list
.
jumpHeight
/
100
+
html
+=
'
<
/li>'
;
"
x
<
/div>"
;
}
html
+=
$
(
".layer-record-ul"
).
html
(
html
)
'
<
div
class
=
"layer-record4"
>
'
+
list
.
maxLaunchHeight
+
"
x
<
/div>"
;
}
html
+=
"
<
/li>"
;
})
}
$
(
".layer-record-ul"
).
html
(
html
);
},
});
}
}
function
user
()
{
function
user
()
{
$
.
ajax
({
$
.
ajax
({
url
:
$ip
+
"/rocketlaunch/queryUserInfo"
,
url
:
$ip
+
'/rocketlaunch/queryUserInfo'
,
suucess
:
function
(
data
)
{
suucess
:
function
(
data
)
{
// console.log('用户的基础信息',data)
// console.log('用户的基础信息',data)
$
(
".diamond-box span"
).
text
(
data
.
result
.
userHaveChip
);
$
(
".diamond-box span"
).
text
(
data
.
result
.
userHaveChip
)
sessionStorage
.
userFace
=
data
.
result
.
face
;
sessionStorage
.
userFace
=
data
.
result
.
face
},
}
});
})
}
}
myDiamond
()
;
myDiamond
()
view2
()
;
view2
()
setInterval
(
function
()
{
setInterval
(
function
()
{
view2
();
view2
()
},
500
)
;
},
500
)
function
view2
()
{
function
view2
()
{
$
.
ajax
({
$
.
ajax
({
url
:
$ip
+
"/rocketlaunch/queryLaunchInfo"
,
url
:
$ip
+
'/rocketlaunch/queryLaunchInfo'
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
data
.
result
.
shipData
.
status
==
-
1
)
{
if
(
data
.
result
.
shipData
.
status
==
-
1
)
{
console
.
log
(
1212
);
console
.
log
(
1212
)
return
;
return
;
}
}
// console.log("获取视图信息接口",data)
// console.log("获取视图信息接口",data)
if
(
sessionStorage
.
lang
==
2
||
sessionStorage
.
lang
==
0
)
if
(
sessionStorage
.
lang
==
2
||
sessionStorage
.
lang
==
0
)
var
textArr
=
[
'米'
]
var
textArr
=
[
"米"
];
else
var
textArr
=
[
' m'
]
else
var
textArr
=
[
" m"
];
sessionStorage
.
gameId
=
data
.
result
.
shipData
.
gameStage
;
sessionStorage
.
gameId
=
data
.
result
.
shipData
.
gameStage
sessionStorage
.
state
=
data
.
result
.
shipData
.
status
;
sessionStorage
.
state
=
data
.
result
.
shipData
.
status
$
(
".time-box-man span"
).
text
(
data
.
result
.
shipData
.
betUserNum
);
$
(
".time-box-man span"
).
text
(
data
.
result
.
shipData
.
betUserNum
)
$
(
".card-box span"
).
text
(
data
.
result
.
userData
.
userBetAmount
);
$
(
".card-box span"
).
text
(
data
.
result
.
userData
.
userBetAmount
)
if
(
data
.
result
.
userData
.
userBetAmount
>
0
)
{
if
(
data
.
result
.
userData
.
userBetAmount
>
0
)
{
if
(
$
(
".fly-face"
).
css
(
"display"
)
==
"none"
)
if
(
$
(
".fly-face"
).
css
(
"display"
)
==
'none'
)
$
(
".fly-face"
).
attr
(
"src"
,
'https://big.bgp.ourpow.com/comm'
+
sessionStorage
.
userFace
+
'?x-oss-process=image/resize,w_80'
).
fadeIn
(
200
)
$
(
".fly-face"
)
.
attr
(
"src"
,
"https://big.bgp.ourpow.com/comm"
+
sessionStorage
.
userFace
+
"?x-oss-process=image/resize,w_80"
)
.
fadeIn
(
200
);
// $(".fly-face-box").html('
<
img
class
=
"fly-face"
src
=
"https://zhibocdn.lvdou66.com/comm'+data.result.userInfoResult.avatar+'?x-oss-process=image/resize,w_80"
alt
=
""
>
')
// $(".fly-face-box").html('
<
img
class
=
"fly-face"
src
=
"https://zhibocdn.lvdou66.com/comm'+data.result.userInfoResult.avatar+'?x-oss-process=image/resize,w_80"
alt
=
""
>
')
} else {
} else {
$(".fly-face").hide();
$(".fly-face").hide()
}
}
if (data.result.shipData.status == 0) {
if (data.result.shipData.status == 0) {
if (
if (sessionStorage.oldState == undefined || sessionStorage.oldState != sessionStorage.state) {
sessionStorage.oldState == undefined ||
clearInterval(goHotTime1)
sessionStorage.oldState != sessionStorage.state
clearInterval(goHotTime2)
) {
clearInterval(hot)
clearInterval(goHotTime1);
clearInterval(boomTime)
clearInterval(goHotTime2);
clearInterval(nowExplose)
clearInterval(hot);
clearInterval(miTimer)
clearInterval(boomTime);
clearInterval(nowExplose);
clearInterval(miTimer);
$(".user-going-box").show();
$(".user-out-box").hide().html("");
$(".user-going-box").show()
$(".user-out-box").hide().html('')
// sessionStorage.userFace=data.result.userInfoResult.avatar
// sessionStorage.userFace=data.result.userInfoResult.avatar
//第一次切换需要动画
//第一次切换需要动画
myDiamond();
myDiamond()
if (sessionStorage.lang == 2 || sessionStorage.lang == 0)
if (sessionStorage.lang == 2 || sessionStorage.lang == 0) $(".time-box-tips").text('
準備中
·
·
·
')
$(".time-box-tips").text("準備中 · · ·");
else $(".time-box-tips").text('
Getting
ready
·
·
·
')
else $(".time-box-tips").text("Getting ready · · ·");
layer.closeAll()
layer.closeAll();
$(".num-box").show()
$(".num-box").show();
$(".fly-bg").css("transition", "1s linear all")
$(".fly-bg").css("transition", "1s linear all");
$(".bottom-box1").css("bottom", "-0rem")
$(".bottom-box1").css("bottom", "-0rem");
$(".bottom-box2").css('
bottom
', "-2.373rem")
$(".bottom-box2").css("bottom", "-2.373rem");
}
}
goFlyMan(data.result.shipData.betUserNum)
goFlyMan(data.result.shipData.betUserNum);
var numArr = timeDeal2(data.result.shipData.prepareEndTime, data.systemDate)[3].toString().split("")
var numArr = timeDeal2(
$(".num-box-p1").removeClass('
n0
n1
n2
n3
n4
n5
n6
n7
n8
n9
').addClass('
n
' + numArr[0] + '')
data.result.shipData.prepareEndTime,
$(".num-box-p2").removeClass('
n0
n1
n2
n3
n4
n5
n6
n7
n8
n9
').addClass('
n
' + numArr[1] + '')
data.systemDate
)[3]
.toString()
.split("");
$(".num-box-p1")
.removeClass("n0 n1 n2 n3 n4 n5 n6 n7 n8 n9")
.addClass("n" + numArr[0] + "");
$(".num-box-p2")
.removeClass("n0 n1 n2 n3 n4 n5 n6 n7 n8 n9")
.addClass("n" + numArr[1] + "");
$(".go-btn")
$(".go-btn").unbind("click").on("click", function () {
.unbind("click")
if (getUrlParams().isAllowDialog == 1 && getUrlParams().appversion >= 7620) {
.on("click", function () {
if (
getUrlParams().isAllowDialog == 1 &&
getUrlParams().appversion >= 7620
) {
var obj = {
var obj = {
cid
: 48,
"cid"
: 48,
reqCode
: gameDateId,
"reqCode"
: gameDateId,
data
: {
"data"
: {
msg
: "用戶協議",
"msg"
: "用戶協議",
type: 0,
//遊戲
"type": 0,
//遊戲
},
}
};
}
var obj2 = JSON.stringify(obj);
var obj2 = JSON.stringify(obj);
appCollaboration(obj2);
appCollaboration(obj2);
} else {
} else {
goBetCallBack();
goBetCallBack()
}
}
});
})
}
}
if (data.result.shipData.status == 1) {
if (data.result.shipData.status == 1) {
clearInterval(miTimer);
clearInterval(miTimer)
var newMeter = data.result.shipData.launchHeight;
var newMeter = data.result.shipData.launchHeight
var addMeter = (newMeter - oldMeter) / 5;
var addMeter = (newMeter - oldMeter) / 5
if (
if (sessionStorage.oldState == undefined || sessionStorage.oldState != sessionStorage.state) {
sessionStorage.oldState == undefined ||
$(".card-add-box").html('')
sessionStorage.oldState != sessionStorage.state
$(".user-going-box").hide().html('')
) {
$(".user-out-box").show()
$(".card-add-box").html("");
flyMan2 = data.result.shipData.betUserNum
$(".user-going-box").hide().html("");
$(".user-out-box").show();
flyMan2 = data.result.shipData.betUserNum;
//第一次切换需要动画
//第一次切换需要动画
$(".star-show").addClass("star-show-go");
$(".star-show").addClass("star-show-go")
myDiamond();
myDiamond()
$(".mi-bg").fadeIn(350);
$(".mi-bg").fadeIn(350)
goHotShow();
goHotShow()
if (sessionStorage.lang == 2 || sessionStorage.lang == 0)
if (sessionStorage.lang == 2 || sessionStorage.lang == 0) $(".time-box-tips").text('
飛行中
·
·
·
')
$(".time-box-tips").text("飛行中 · · ·");
else $(".time-box-tips").text('
in
flight
·
·
·
')
else $(".time-box-tips").text("in flight · · ·");
$(".num-box").hide()
$(".num-box").hide();
$(".bottom-box1").css("bottom", "-3.1rem")
$(".bottom-box1").css("bottom", "-3.1rem");
$(".bottom-box2").css('
bottom
', "0rem")
$(".bottom-box2").css("bottom", "0rem");
$(".fly-bg").css("background-position-y", '
-
33
rem
')
$(".fly-bg").css("background-position-y", "-33rem");
setTimeout(function () {
setTimeout(function () {
$(".fly-bg").addClass("fly-bg-show");
$(".fly-bg").addClass("fly-bg-show")
}, 1000);
}, 1000);
}
}
//操作一下跳船
//操作一下跳船
if (data.result.userData.player == 1) {
if (data.result.userData.player == 1) {
//用户有参与
//用户有参与
if (data.result.userData.jumper == 1) {
if (data.result.userData.jumper == 1) {
if (sessionStorage.lang == 2 || sessionStorage.lang == 0)
if (sessionStorage.lang == 2 || sessionStorage.lang == 0) $(".out-fly-box").html('
<
div
class
=
"out-fly-end"
>
你已下船(
' + data.result.userData.jumpHeight + '
米,获得
' + data.result.userData.jumpRewardChip + '
露水)
<
/div>'
)
$(".out-fly-box").html(
else
$
(
".out-fly-box"
).
html
(
'
<
div
class
=
"out-fly-end"
>
By
flying
' + data.result.userData.jumpHeight + '
m
,
gain
' + data.result.userData.jumpRewardChip + '
DEWs
rewards
.
<
/div>'
)
'
<
div
class
=
"out-fly-end"
>
你已下船('
+
}
data
.
result
.
userData
.
jumpHeight
+
else
if
(
data
.
result
.
shipData
.
explosion
==
0
)
{
"米,获得"
+
$
(
".out-fly-box"
).
html
(
'
<
div
class
=
"out-fly-btn"
><
/div>'
)
data
.
result
.
userData
.
jumpRewardChip
+
$
(
".out-fly-box >div"
).
unbind
(
"click"
).
on
(
"click"
,
function
()
{
"露水)
<
/div>
"
);
else
$
(
".out-fly-box"
).
html
(
'
<
div
class
=
"out-fly-end"
>
By
flying
'
+
data
.
result
.
userData
.
jumpHeight
+
"m, gain "
+
data
.
result
.
userData
.
jumpRewardChip
+
"
DEWs
rewards
.
<
/div>
"
);
}
else
if
(
data
.
result
.
shipData
.
explosion
==
0
)
{
$
(
".out-fly-box"
).
html
(
'
<
div
class
=
"out-fly-btn"
><
/div>'
)
;
$
(
".out-fly-box >div"
)
.
unbind
(
"click"
)
.
on
(
"click"
,
function
()
{
if
(
jumpOk
==
false
)
return
;
if
(
jumpOk
==
false
)
return
;
jumpOk
=
false
;
jumpOk
=
false
jump
(
data
.
result
.
shipData
.
gameStage
);
jump
(
data
.
result
.
shipData
.
gameStage
)
});
})
}
else
{
}
else
{
}
}
}
else
{
}
else
{
//用户没有参与
//用户没有参与
$
(
".out-fly-box"
).
html
(
'
<
div
class
=
"out-fly-no"
><
/div>'
)
;
$
(
".out-fly-box"
).
html
(
'
<
div
class
=
"out-fly-no"
><
/div>'
)
}
}
goOutMan
(
data
.
result
.
shipData
.
betUserNum
);
goOutMan
(
data
.
result
.
shipData
.
betUserNum
)
if
(
data
.
result
.
shipData
.
explosion
==
1
&&
nowExplose
==
true
)
{
if
(
data
.
result
.
shipData
.
explosion
==
1
&&
nowExplose
==
true
)
{
clearInterval
(
miTimer
);
clearInterval
(
miTimer
)
nowExplose
=
false
;
nowExplose
=
false
setTimeout
(
function
()
{
setTimeout
(
function
()
{
clearInterval
(
miTimer
);
clearInterval
(
miTimer
)
$
(
".mi-bg"
).
text
(
$
(
".mi-bg"
).
text
(
""
+
data
.
result
.
shipData
.
launchHeight
+
""
+
textArr
[
0
]
+
""
)
""
+
data
.
result
.
shipData
.
launchHeight
+
""
+
textArr
[
0
]
+
""
);
},
350
);
},
350
);
betBoom
();
//这时候爆炸了
//这时候爆炸了
$
(
".out-fly-box >div"
)
$
(
".out-fly-box >div"
).
unbind
(
"click"
).
css
(
"filter"
,
"grayscale(100%)"
)
.
unbind
(
"click"
)
boomShow
()
.
css
(
"filter"
,
"grayscale(100%)"
);
boomShow
();
}
else
{
}
else
{
if
(
data
.
result
.
shipData
.
explosion
==
1
)
return
;
if
(
data
.
result
.
shipData
.
explosion
==
1
)
return
;
clearInterval
(
miTimer
);
clearInterval
(
miTimer
)
miTimer
=
setInterval
(
function
()
{
miTimer
=
setInterval
(
function
()
{
if
(
newMeter
==
100
)
{
if
(
newMeter
==
100
)
{
$
(
".mi-bg"
).
text
(
"100"
+
textArr
[
0
]
+
""
);
$
(
".mi-bg"
).
text
(
"100"
+
textArr
[
0
]
+
""
)
}
else
{
}
else
{
oldMeter
=
oldMeter
+
addMeter
;
oldMeter
=
oldMeter
+
addMeter
if
(
oldMeter
>=
newMeter
)
oldMeter
=
newMeter
;
if
(
oldMeter
>=
newMeter
)
oldMeter
=
newMeter
$
(
".mi-bg"
).
text
(
$
(
".mi-bg"
).
text
(
""
+
Math
.
floor
(
oldMeter
)
+
""
+
textArr
[
0
]
+
""
)
""
+
Math
.
floor
(
oldMeter
)
+
""
+
textArr
[
0
]
+
""
if
(
oldMeter
>=
100
&&
oldMeter
<
200
)
$
(
".mi-bg"
).
css
(
"color"
,
"#CCF783"
)
);
else
if
(
oldMeter
>=
200
&&
oldMeter
<
500
)
$
(
".mi-bg"
).
css
(
"color"
,
"#FFF81D"
)
if
(
oldMeter
>=
100
&&
oldMeter
<
200
)
else
if
(
oldMeter
>=
500
&&
oldMeter
<
1000
)
$
(
".mi-bg"
).
css
(
"color"
,
"#FCCA00"
)
$
(
".mi-bg"
).
css
(
"color"
,
"#CCF783"
);
else
if
(
oldMeter
>=
1000
&&
oldMeter
<
3000
)
$
(
".mi-bg"
).
css
(
"color"
,
"#BD3124"
)
else
if
(
oldMeter
>=
200
&&
oldMeter
<
500
)
else
if
(
oldMeter
>=
3000
)
$
(
".mi-bg"
).
css
(
"color"
,
"#951D1D"
)
$
(
".mi-bg"
).
css
(
"color"
,
"#FFF81D"
);
}
else
if
(
oldMeter
>=
500
&&
oldMeter
<
1000
)
},
95
)
$
(
".mi-bg"
).
css
(
"color"
,
"#FCCA00"
);
else
if
(
oldMeter
>=
1000
&&
oldMeter
<
3000
)
$
(
".mi-bg"
).
css
(
"color"
,
"#BD3124"
);
else
if
(
oldMeter
>=
3000
)
$
(
".mi-bg"
).
css
(
"color"
,
"#951D1D"
);
}
},
95
);
}
}
}
}
if
(
data
.
result
.
shipData
.
status
==
2
)
{
if
(
data
.
result
.
shipData
.
status
==
2
)
{
//第一次切换需要弹出结果
//第一次切换需要弹出结果
if
(
if
(
sessionStorage
.
oldState
==
undefined
||
sessionStorage
.
oldState
!=
sessionStorage
.
state
)
{
sessionStorage
.
oldState
==
undefined
||
myDiamond
()
sessionStorage
.
oldState
!=
sessionStorage
.
state
flyMan
=
0
)
{
myDiamond
();
flyMan
=
0
;
//第一次切换需要动画
//第一次切换需要动画
$
(
".out-fly-box >div"
).
css
(
"filter"
,
"none"
);
$
(
".out-fly-box >div"
).
css
(
"filter"
,
"none"
)
$
(
".mi-bg"
).
text
(
$
(
".mi-bg"
).
text
(
""
+
data
.
result
.
shipData
.
launchHeight
+
""
+
textArr
[
0
]
+
""
)
""
+
data
.
result
.
shipData
.
launchHeight
+
""
+
textArr
[
0
]
+
""
$
(
".star-show"
).
removeClass
(
"star-show-go"
)
);
$
(
".star-show"
).
removeClass
(
"star-show-go"
);
if
(
data
.
result
.
userData
.
player
==
0
)
{
if
(
data
.
result
.
userData
.
player
==
0
)
{
//你未参与
//你未参与
$
(
".layer-yes2-p1 .layer-yes2-txt2"
).
text
(
"0"
);
$
(
".layer-yes2-p1 .layer-yes2-txt2"
).
text
(
'0'
)
$
(
".layer-yes2-p2 .layer-yes2-txt2"
).
text
(
$
(
".layer-yes2-p2 .layer-yes2-txt2"
).
text
(
""
+
data
.
result
.
shipData
.
launchHeight
+
""
+
textArr
[
0
]
+
""
)
""
+
data
.
result
.
shipData
.
launchHeight
+
""
+
textArr
[
0
]
+
""
$
(
".layer-yes2-p3 .layer-yes2-txt2"
).
text
(
"0"
)
);
$
(
".layer-yes2-p4 .layer-yes2-txt2"
).
text
(
'0.00x'
)
$
(
".layer-yes2-p3 .layer-yes2-txt2"
).
text
(
"0"
);
getTopUser
()
$
(
".layer-yes2-p4 .layer-yes2-txt2"
).
text
(
"0.00x"
);
getTopUser
();
layer
.
open
({
layer
.
open
({
type
:
1
,
type
:
1
,
title
:
false
,
title
:
false
,
...
@@ -862,27 +715,21 @@
...
@@ -862,27 +715,21 @@
area
:
[
"9.906rem"
,
"8.32rem"
],
area
:
[
"9.906rem"
,
"8.32rem"
],
content
:
$
(
".layer-no2"
),
content
:
$
(
".layer-no2"
),
end
:
function
()
{
end
:
function
()
{
$
(
".layui-layer-shade"
).
hide
();
$
(
".layui-layer-shade"
).
hide
()
},
}
});
})
}
}
if
(
data
.
result
.
userData
.
jumper
==
1
)
{
if
(
data
.
result
.
userData
.
jumper
==
1
)
{
//跳船成功
//跳船成功
// layer-over
// layer-over
$
(
".layer-yes2-p1 .layer-yes2-txt2"
).
text
(
data
.
result
.
userData
.
jumpRewardChip
$
(
".layer-yes2-p1 .layer-yes2-txt2"
).
text
(
data
.
result
.
userData
.
jumpRewardChip
)
);
$
(
".layer-yes2-p2 .layer-yes2-txt2"
).
text
(
""
+
data
.
result
.
shipData
.
launchHeight
+
""
+
textArr
[
0
]
+
""
)
$
(
".layer-yes2-p2 .layer-yes2-txt2"
).
text
(
$
(
".layer-yes2-p3 .layer-yes2-txt2"
).
text
(
""
+
data
.
result
.
userData
.
userBetAmount
+
""
)
""
+
data
.
result
.
shipData
.
launchHeight
+
""
+
textArr
[
0
]
+
""
$
(
".layer-yes2-p4 .layer-yes2-txt2"
).
text
(
data
.
result
.
userData
.
jumpHeight
/
100
+
'x'
)
);
getTopUser
()
$
(
".layer-yes2-p3 .layer-yes2-txt2"
).
text
(
""
+
data
.
result
.
userData
.
userBetAmount
+
""
);
$
(
".layer-yes2-p4 .layer-yes2-txt2"
).
text
(
data
.
result
.
userData
.
jumpHeight
/
100
+
"x"
);
getTopUser
();
layer
.
open
({
layer
.
open
({
type
:
1
,
type
:
1
,
title
:
false
,
title
:
false
,
...
@@ -891,28 +738,18 @@
...
@@ -891,28 +738,18 @@
area
:
[
"9.906rem"
,
"8.32rem"
],
area
:
[
"9.906rem"
,
"8.32rem"
],
content
:
$
(
".layer-yes2"
),
content
:
$
(
".layer-yes2"
),
end
:
function
()
{
end
:
function
()
{
$
(
".layui-layer-shade"
).
hide
();
$
(
".layui-layer-shade"
).
hide
()
},
}
});
})
}
}
if
(
if
(
data
.
result
.
userData
.
player
==
1
&&
data
.
result
.
userData
.
jumper
==
0
)
{
data
.
result
.
userData
.
player
==
1
&&
$
(
".layer-yes2-p1 .layer-yes2-txt2"
).
text
(
data
.
result
.
userData
.
jumpRewardChip
)
data
.
result
.
userData
.
jumper
==
0
$
(
".layer-yes2-p2 .layer-yes2-txt2"
).
text
(
""
+
data
.
result
.
shipData
.
launchHeight
+
""
+
textArr
[
0
]
+
""
)
)
{
$
(
".layer-yes2-p3 .layer-yes2-txt2"
).
text
(
""
+
data
.
result
.
userData
.
userBetAmount
+
""
)
$
(
".layer-yes2-p1 .layer-yes2-txt2"
).
text
(
$
(
".layer-yes2-p4 .layer-yes2-txt2"
).
text
(
data
.
result
.
userData
.
jumpHeight
/
100
+
'x'
)
data
.
result
.
userData
.
jumpRewardChip
);
$
(
".layer-yes2-p2 .layer-yes2-txt2"
).
text
(
""
+
data
.
result
.
shipData
.
launchHeight
+
""
+
textArr
[
0
]
+
""
);
$
(
".layer-yes2-p3 .layer-yes2-txt2"
).
text
(
""
+
data
.
result
.
userData
.
userBetAmount
+
""
);
$
(
".layer-yes2-p4 .layer-yes2-txt2"
).
text
(
data
.
result
.
userData
.
jumpHeight
/
100
+
"x"
);
//跳船失败
//跳船失败
getTopUser
();
getTopUser
()
layer
.
open
({
layer
.
open
({
type
:
1
,
type
:
1
,
title
:
false
,
title
:
false
,
...
@@ -921,240 +758,199 @@
...
@@ -921,240 +758,199 @@
area
:
[
"9.906rem"
,
"8.32rem"
],
area
:
[
"9.906rem"
,
"8.32rem"
],
content
:
$
(
".layer-boom2"
),
content
:
$
(
".layer-boom2"
),
end
:
function
()
{
end
:
function
()
{
$
(
".layui-layer-shade"
).
hide
();
$
(
".layui-layer-shade"
).
hide
()
},
}
});
})
}
}
nowExplose
=
true
;
nowExplose
=
true
;
clearInterval
(
miTimer
);
clearInterval
(
miTimer
)
$
(
".num-box"
).
hide
();
$
(
".num-box"
).
hide
()
$
(
".mi-bg"
).
fadeOut
(
350
);
$
(
".mi-bg"
).
fadeOut
(
350
)
if
(
sessionStorage
.
lang
==
2
||
sessionStorage
.
lang
==
0
)
if
(
sessionStorage
.
lang
==
2
||
sessionStorage
.
lang
==
0
)
$
(
".time-box-tips"
).
text
(
'结算中 · · ·'
)
$
(
".time-box-tips"
).
text
(
"结算中 · · ·"
);
else
$
(
".time-box-tips"
).
text
(
'settling · · ·'
)
else
$
(
".time-box-tips"
).
text
(
"settling · · ·"
);
oldMeter
=
100
oldMeter
=
100
;
setTimeout
(
function
()
{
setTimeout
(
function
()
{
$
(
".bottom-box1"
).
css
(
"bottom"
,
"-0rem"
);
$
(
".bottom-box1"
).
css
(
"bottom"
,
"-0rem"
)
$
(
".bottom-box2"
).
css
(
"bottom"
,
"-2.373rem"
);
$
(
".bottom-box2"
).
css
(
'bottom'
,
"-2.373rem"
)
$
(
".fly"
).
removeClass
(
"fly-slow"
).
css
(
"top"
,
"3.6rem"
);
$
(
".fly"
).
removeClass
(
"fly-slow"
).
css
(
"top"
,
"3.6rem"
)
$
(
".fly-bg"
).
css
(
"transition"
,
"0s linear all"
);
$
(
".fly-bg"
).
css
(
"transition"
,
"0s linear all"
)
$
(
".fly-bg"
).
removeClass
(
"fly-bg-show"
);
$
(
".fly-bg"
).
removeClass
(
"fly-bg-show"
)
$
(
".fly-bg"
).
css
(
"background-position-y"
,
"-44.3rem"
);
$
(
".fly-bg"
).
css
(
"background-position-y"
,
'-44.3rem'
)
$
(
".hot"
).
hide
();
$
(
".hot"
).
hide
()
clearInterval
(
goHotTime1
);
clearInterval
(
goHotTime1
)
clearInterval
(
goHotTime2
);
clearInterval
(
goHotTime2
)
$
(
".fly"
).
fadeIn
(
350
);
$
(
".fly"
).
fadeIn
(
350
)
},
1000
);
},
1000
);
}
}
}
}
sessionStorage
.
oldState
=
data
.
result
.
shipData
.
status
;
sessionStorage
.
oldState
=
data
.
result
.
shipData
.
status
},
}
});
})
}
}
function
myDiamond
()
{
function
myDiamond
()
{
$
.
ajax
({
$
.
ajax
({
url
:
$ip
+
"/rocketlaunch/queryUserInfo"
,
url
:
$ip
+
'/rocketlaunch/queryUserInfo'
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
// console.log('用户的基础信息',data)
// console.log('用户的基础信息',data)
$
(
".diamond-box span"
).
text
(
data
.
result
.
userHaveChip
);
$
(
".diamond-box span"
).
text
(
data
.
result
.
userHaveChip
)
sessionStorage
.
userFace
=
data
.
result
.
face
;
sessionStorage
.
userFace
=
data
.
result
.
face
},
}
});
})
}
}
function
history
()
{
function
history
()
{
$
.
ajax
({
$
.
ajax
({
url
:
$ip
+
"/rocketlaunch/queryLaunchRecord"
,
url
:
$ip
+
'/rocketlaunch/queryLaunchRecord'
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
// console.log("历史记录",data)
// console.log("历史记录",data)
var
html
=
[];
var
html
=
[];
for
(
var
i
=
0
;
i
<
data
.
result
.
recordList
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
data
.
result
.
recordList
.
length
;
i
++
)
{
var
list
=
data
.
result
.
recordList
[
i
];
var
list
=
data
.
result
.
recordList
[
i
]
html
+=
"
<
li
>
"
;
html
+=
'
<
li
>
';
html
+=
'
<
p
class
=
"history2-p1"
>
'
+
list
.
gameStage
+
"
<
/p>"
;
html += '
<
p
class
=
"history2-p1"
>
' + list.gameStage + '
<
/p>'
;
if
(
list
.
launchHeight
>=
100
&&
list
.
launchHeight
<
200
)
if
(
list
.
launchHeight
>=
100
&&
list
.
launchHeight
<
200
)
html
+=
'
<
p
style
=
"color:#CCF783"
class
=
"history2-p2"
>
' + list.launchHeight / 100 + '
x
<
/p>'
;
html
+=
if
(
list
.
launchHeight
>=
200
&&
list
.
launchHeight
<
500
)
html
+=
'
<
p
style
=
"color:#FFF81D"
class
=
"history2-p2"
>
' + list.launchHeight / 100 + '
x
<
/p>'
;
'
<
p
style
=
"color:#CCF783"
class
=
"history2-p2"
>
'
+
if
(
list
.
launchHeight
>=
500
&&
list
.
launchHeight
<
1000
)
html
+=
'
<
p
style
=
"color:#FCCA00"
class
=
"history2-p2"
>
' + list.launchHeight / 100 + '
x
<
/p>'
;
list
.
launchHeight
/
100
+
if
(
list
.
launchHeight
>=
1000
&&
list
.
launchHeight
<
3000
)
html
+=
'
<
p
style
=
"color:#BD3124"
class
=
"history2-p2"
>
' + list.launchHeight / 100 + '
x
<
/p>'
;
"
x
<
/p>"
;
if
(
list
.
launchHeight
>=
3000
)
html
+=
'
<
p
style
=
"color:#951D1D"
class
=
"history2-p2"
>
' + list.launchHeight / 100 + '
x
<
/p>'
;
if
(
list
.
launchHeight
>=
200
&&
list
.
launchHeight
<
500
)
html
+=
'
<
/li>'
;
html
+=
'
<
p
style
=
"color:#FFF81D"
class
=
"history2-p2"
>
'
+
list
.
launchHeight
/
100
+
"
x
<
/p>"
;
if
(
list
.
launchHeight
>=
500
&&
list
.
launchHeight
<
1000
)
html
+=
'
<
p
style
=
"color:#FCCA00"
class
=
"history2-p2"
>
'
+
list
.
launchHeight
/
100
+
"
x
<
/p>"
;
if
(
list
.
launchHeight
>=
1000
&&
list
.
launchHeight
<
3000
)
html
+=
'
<
p
style
=
"color:#BD3124"
class
=
"history2-p2"
>
'
+
list
.
launchHeight
/
100
+
"
x
<
/p>"
;
if
(
list
.
launchHeight
>=
3000
)
html
+=
'
<
p
style
=
"color:#951D1D"
class
=
"history2-p2"
>
'
+
list
.
launchHeight
/
100
+
"
x
<
/p>"
;
html
+=
"
<
/li>"
;
}
}
$
(
".layer-history2-ul"
).
html
(
html
);
$
(
".layer-history2-ul"
).
html
(
html
);
},
}
});
})
}
}
function
Rank
()
{
function
Rank
()
{
$
.
ajax
({
$
.
ajax
({
url
:
$ip
+
"activity2024/rockrtcrusher/getDailyRank"
,
url
:
$ip
+
'activity2024/rockrtcrusher/getDailyRank'
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
// console.log('日榜记录',data)
// console.log('日榜记录',data)
var
html
=
[];
var
html
=
[]
for
(
var
i
=
0
;
i
<
data
.
rank
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
data
.
rank
.
length
;
i
++
)
{
var
list
=
data
.
rank
[
i
];
var
list
=
data
.
rank
[
i
]
html
+=
"
<
li
>
"
;
html
+=
'
<
li
>
'
;
html += '
<
div
class
=
"layer-list-box1"
>
'
;
html += '
<
div
class
=
"layer-list-box1"
>
'
;
if
(
i
<
3
)
html
+=
'
<
img
src
=
"images/m1.png"
alt
=
""
>
';
if
(
i
<
3
)
html
+=
'
<
img
src
=
"images/m1.png"
alt
=
""
>
';
else
html
+=
"No."
+
(
i
+
1
)
+
""
;
else html += '
No
.
' + (i + 1) + ''
;
html
+=
"
<
/div>"
;
html += '
<
/div>'
;
html
+=
'
<
div
class
=
"layer-list-box2"
>
';
html
+=
'
<
div
class
=
"layer-list-box2"
>
';
html +=
html += '
<
img
src
=
"https://big.bgp.ourpow.com/comm/user/boy.png?x-oss-process=image/resize,w_100"
alt
=
""
>
用户昵称预留
';
'
<
img
src
=
"https://big.bgp.ourpow.com/comm/user/boy.png?x-oss-process=image/resize,w_100"
alt
=
""
>
用户昵称预留'
;
html += '
<
/div>'
;
html
+=
"
<
/div>"
;
html
+=
'
<
div
class
=
"layer-list-box3"
>
';
html
+=
'
<
div
class
=
"layer-list-box3"
>
';
html
+=
"
<
span
>
探索值
:
<
/span>813216546"
;
html += '
<
span
>
探索值
:
<
/span>813216546'
;
html
+=
"
<
/div>"
;
html
+=
'
<
/div>'
;
html
+=
'
<
div
class
=
"line"
><
/div>'
;
html
+=
'
<
div
class
=
"line"
><
/div>'
;
html
+=
"
<
/li>"
;
html
+=
'
<
/li>'
;
}
}
$
(
".layer-list-ul"
).
html
(
html
);
$
(
".layer-list-ul"
).
html
(
html
);
},
});
}
})
}
}
function
getTopUser
()
{
function
getTopUser
()
{
$
.
ajax
({
$
.
ajax
({
url
:
$ip
+
"/rocketlaunch/queryHighest"
,
url
:
$ip
+
'/rocketlaunch/queryHighest'
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
// console.log('获取当日王牌',data)
// console.log('获取当日王牌',data)
var
html
=
[];
var
html
=
[];
if
(
data
.
result
.
topUidFace
==
""
)
{
if
(
data
.
result
.
topUidFace
==
''
)
{
if
(
sessionStorage
.
lang
==
2
||
sessionStorage
.
lang
==
0
)
html
+=
'
<
p
class
=
"topUser-p1"
>
本日王牌飛行員
<
/p>'
;
if
(
sessionStorage
.
lang
==
2
||
sessionStorage
.
lang
==
0
)
html
+=
'
<
p
class
=
"topUser-p1"
>
本日王牌飛行員
<
/p>'
;
else
html
+=
'
<
p
class
=
"topUser-p1"
>
Pilot
of
the
Day
<
/p>'
;
else
html
+=
'
<
p
class
=
"topUser-p1"
>
Pilot
of
the
Day
<
/p>'
;
if
(
sessionStorage
.
lang
==
2
||
sessionStorage
.
lang
==
0
)
if
(
sessionStorage
.
lang
==
2
||
sessionStorage
.
lang
==
0
)
html
+=
'
<
p
class
=
"topUser-p2"
>
虛位以待
<
/p>'
;
html
+=
'
<
p
class
=
"topUser-p2"
>
虛位以待
<
/p>'
;
else
html
+=
'
<
p
class
=
"topUser-p2"
>
Not
yet
<
/p>'
;
else
html
+=
'
<
p
class
=
"topUser-p2"
>
Not
yet
<
/p>'
;
if
(
sessionStorage
.
lang
==
2
||
sessionStorage
.
lang
==
0
)
if
(
sessionStorage
.
lang
==
2
||
sessionStorage
.
lang
==
0
)
html
+=
'
<
p
class
=
"topUser-p3"
>
飛行高度
<
/p>'
;
html
+=
'
<
p
class
=
"topUser-p3"
>
飛行高度
<
/p>'
;
else
html
+=
'
<
p
class
=
"topUser-p3"
>
flight
altitude
<
/p>'
;
else
html
+=
'
<
p
class
=
"topUser-p3"
>
flight
altitude
<
/p>'
;
html
+=
'
<
p
class
=
"topUser-p4"
>--
m
<
/p>'
;
html
+=
'
<
p
class
=
"topUser-p4"
>--
m
<
/p>'
;
$
(
".layer-yes-topUser"
).
html
(
html
);
$
(
".layer-yes-topUser"
).
html
(
html
);
}
else
{
}
else
{
// html+='
<
img
class
=
"topUser-face"
src
=
"https://big.bgp.ourpow.com/comm'+data.result.topUidFace+'?x-oss-process=image/resize,w_90"
alt
=
""
>
';
// html+='
<
img
class
=
"topUser-face"
src
=
"https://big.bgp.ourpow.com/comm'+data.result.topUidFace+'?x-oss-process=image/resize,w_90"
alt
=
""
>
';
if (sessionStorage.lang == 2 || sessionStorage.lang == 0)
if (sessionStorage.lang == 2 || sessionStorage.lang == 0) html += '
<
p
class
=
"topUser-p1"
>
本日王牌飛行員
<
/p>'
;
html += '
<
p
class
=
"topUser-p1"
>
本日王牌飛行員
<
/p>'
;
else
html
+=
'
<
p
class
=
"topUser-p1"
>
Pilot
of
the
Day
<
/p>'
;
else
html
+=
'
<
p
class
=
"topUser-p1"
>
Pilot
of
the
Day
<
/p>'
;
html
+=
html
+=
'
<
p
class
=
"topUser-p2"
>
' + data.result.topUidNickName + '
<
/p>'
;
'
<
p
class
=
"topUser-p2"
>
'
+
data
.
result
.
topUidNickName
+
"
<
/p>"
;
if
(
sessionStorage
.
lang
==
2
||
sessionStorage
.
lang
==
0
)
html
+=
'
<
p
class
=
"topUser-p3"
>
飛行高度
<
/p>'
;
if
(
sessionStorage
.
lang
==
2
||
sessionStorage
.
lang
==
0
)
html
+=
'
<
p
class
=
"topUser-p3"
>
飛行高度
<
/p>'
;
else
html
+=
'
<
p
class
=
"topUser-p3"
>
flight
altitude
<
/p>'
;
else
html
+=
'
<
p
class
=
"topUser-p3"
>
flight
altitude
<
/p>'
;
html
+=
'
<
p
class
=
"topUser-p4"
>
'
+
data
.
result
.
topHeight
+
"
m
<
/p>"
;
html
+=
'
<
p
class
=
"topUser-p4"
>
' + data.result.topHeight + '
m
<
/p>'
;
$
(
".layer-yes-topUser"
).
html
(
html
);
$
(
".layer-yes-topUser"
).
html
(
html
);
}
}
},
});
}
})
}
}
function
bet
(
gid
,
type
)
{
function
bet
(
gid
,
type
)
{
$
.
ajax
({
$
.
ajax
({
url
:
$ip
+
"/rocketlaunch/playGame"
,
url
:
$ip
+
'/rocketlaunch/playGame'
,
type
:
"post"
,
type
:
'post'
,
data
:
{
data
:
{
roomid
:
sessionStorage
.
roomId
,
roomid
:
sessionStorage
.
roomId
,
gameStage
:
gid
,
gameStage
:
gid
,
lang
:
sessionStorage
.
lang
,
lang
:
sessionStorage
.
lang
,
chipItem
:
type
,
chipItem
:
type
},
},
success
:
function
(
data
)
{
success
:
function
(
data
)
{
// console.log('用户登船',data)
// console.log('用户登船',data)
if
(
data
.
code
==
-
116
)
{
if
(
data
.
code
==
-
116
)
{
if
(
sessionStorage
.
lang
==
2
||
sessionStorage
.
lang
==
0
)
if
(
sessionStorage
.
lang
==
2
||
sessionStorage
.
lang
==
0
)
layer
.
msg
(
"露水不足"
)
layer
.
msg
(
"露水不足"
);
else
layer
.
msg
(
"no DEWs"
)
else
layer
.
msg
(
"no DEWs"
);
setTimeout
(
function
()
{
setTimeout
(
function
()
{
var
obj
=
{
var
obj
=
{
cid
:
12
,
"cid"
:
12
,
reqCode
:
new
Date
().
getTime
(),
"reqCode"
:
new
Date
().
getTime
(),
data
:
{
"data"
:
{
msg
:
"兌換露水"
,
"msg"
:
"兌換露水"
,
jumptype
:
15
,
"jumptype"
:
15
,
},
}
};
}
var
obj2
=
JSON
.
stringify
(
obj
);
var
obj2
=
JSON
.
stringify
(
obj
);
appCollaboration
(
obj2
);
appCollaboration
(
obj2
);
},
1000
);
},
1000
);
}
else
if
(
data
.
code
!=
1
)
{
}
layer
.
msg
(
data
.
msg
);
else
if
(
data
.
code
!=
1
)
{
layer
.
msg
(
data
.
msg
)
}
else
{
}
else
{
myDiamond
();
myDiamond
()
betSound
();
if
(
type
==
1
)
var
addNum
=
100
if
(
type
==
1
)
var
addNum
=
100
;
else
if
(
type
==
2
)
var
addNum
=
1000
else
if
(
type
==
2
)
var
addNum
=
1000
;
else
if
(
type
==
3
)
var
addNum
=
10000
else
if
(
type
==
3
)
var
addNum
=
10000
;
else
if
(
type
==
4
)
var
addNum
=
100000
else
if
(
type
==
4
)
var
addNum
=
100000
;
$
(
".card-add-box"
).
append
(
'
<
div
class
=
"card-add-num"
>+
' + addNum + '
<
/div>'
)
$
(
".card-add-box"
).
append
(
'
<
div
class
=
"card-add-num"
>+
'
+
addNum
+
"
<
/div>
"
);
}
}
},
}
});
})
}
}
function
jump
(
gid
)
{
function
jump
(
gid
)
{
$
.
ajax
({
$
.
ajax
({
url
:
$ip
+
"/rocketlaunch/jumpShip"
,
url
:
$ip
+
'/rocketlaunch/jumpShip'
,
data
:
{
data
:
{
roomid
:
sessionStorage
.
roomId
,
roomid
:
sessionStorage
.
roomId
,
gameStage
:
gid
,
gameStage
:
gid
,
lang
:
sessionStorage
.
lang
,
lang
:
sessionStorage
.
lang
},
},
type
:
"post"
,
type
:
"post"
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
// console.log('用户跳船',data)
// console.log('用户跳船',data)
if
(
data
.
code
==
1
)
{
if
(
data
.
code
==
1
)
{
setTimeout
(
function
()
{
setTimeout
(
function
()
{
getShow
();
getShow
()
},
500
);
},
500
);
$
(
".out-fly-box >div"
).
unbind
(
"click"
);
$
(
".out-fly-box >div"
).
unbind
(
"click"
)
if
(
sessionStorage
.
lang
==
2
||
sessionStorage
.
lang
==
0
)
if
(
sessionStorage
.
lang
==
2
||
sessionStorage
.
lang
==
0
)
$
(
".out-fly-box"
).
html
(
'
<
div
class
=
"out-fly-end"
>
你已下船(
' + data.result.jumpHeight + '
米,获得
' + data.result.userRewardChip + '
露水)
<
/div>'
)
$
(
".out-fly-box"
).
html
(
else
$
(
".out-fly-box"
).
html
(
'
<
div
class
=
"out-fly-end"
>
By
flying
' + data.result.jumpHeight + '
m
,
gain
' + data.result.userRewardChip + '
DEWs
rewards
.
<
/div>'
)
'
<
div
class
=
"out-fly-end"
>
你已下船('
+
myDiamond
()
data
.
result
.
jumpHeight
+
"米,获得"
+
data
.
result
.
userRewardChip
+
"露水)
<
/div>
"
);
else
$
(
".out-fly-box"
).
html
(
'
<
div
class
=
"out-fly-end"
>
By
flying
'
+
data
.
result
.
jumpHeight
+
"m, gain "
+
data
.
result
.
userRewardChip
+
"
DEWs
rewards
.
<
/div>
"
);
myDiamond
();
betWin
();
jumpOk
=
true
;
jumpOk
=
true
;
}
else
{
}
else
{
layer
.
msg
(
data
.
msg
);
layer
.
msg
(
data
.
msg
)
jumpOk
=
true
;
jumpOk
=
true
;
}
}
},
}
});
})
}
}
function
goBetCallBack
()
{
function
goBetCallBack
()
{
bet
(
sessionStorage
.
gameId
,
betType
);
bet
(
sessionStorage
.
gameId
,
betType
)
}
}
function
getUrlParams
()
{
function
getUrlParams
()
{
...
@@ -1162,9 +958,9 @@
...
@@ -1162,9 +958,9 @@
const
params
=
{};
const
params
=
{};
if
(
search
)
{
if
(
search
)
{
search
.
split
(
"&"
).
forEach
((
param
)
=>
{
search
.
split
(
'&'
).
forEach
(
param
=>
{
const
[
key
,
value
]
=
param
.
split
(
"="
);
const
[
key
,
value
]
=
param
.
split
(
'='
);
params
[
key
]
=
decodeURIComponent
(
value
||
""
);
// 解码特殊字符
params
[
key
]
=
decodeURIComponent
(
value
||
''
);
// 解码特殊字符
});
});
}
}
...
@@ -1181,19 +977,9 @@
...
@@ -1181,19 +977,9 @@
var
bIsAndroid
=
sUserAgent
.
match
(
/android/i
)
==
"android"
;
var
bIsAndroid
=
sUserAgent
.
match
(
/android/i
)
==
"android"
;
var
bIsCE
=
sUserAgent
.
match
(
/windows ce/i
)
==
"windows ce"
;
var
bIsCE
=
sUserAgent
.
match
(
/windows ce/i
)
==
"windows ce"
;
var
bIsWM
=
sUserAgent
.
match
(
/windows mobile/i
)
==
"windows mobile"
;
var
bIsWM
=
sUserAgent
.
match
(
/windows mobile/i
)
==
"windows mobile"
;
if
(
if
(
!
(
bIsIpad
||
bIsIphoneOs
||
bIsMidp
||
bIsUc7
||
bIsUc
||
bIsAndroid
||
bIsCE
||
bIsWM
))
{
!
(
}
bIsIpad
||
else
if
(
bIsAndroid
)
{
bIsIphoneOs
||
bIsMidp
||
bIsUc7
||
bIsUc
||
bIsAndroid
||
bIsCE
||
bIsWM
)
)
{
}
else
if
(
bIsAndroid
)
{
window
.
yazhai
.
appCollaboration
(
msg
);
window
.
yazhai
.
appCollaboration
(
msg
);
}
else
if
(
bIsIphoneOs
||
bIsIpad
)
{
}
else
if
(
bIsIphoneOs
||
bIsIpad
)
{
window
.
webkit
.
messageHandlers
.
appCollaboration
.
postMessage
(
msg
);
window
.
webkit
.
messageHandlers
.
appCollaboration
.
postMessage
(
msg
);
...
@@ -1204,14 +990,15 @@
...
@@ -1204,14 +990,15 @@
function
appCallback
(
msg
)
{
function
appCallback
(
msg
)
{
let
binaryString
=
atob
(
msg
);
let
binaryString
=
atob
(
msg
);
let
obj
=
JSON
.
parse
(
binaryString
);
let
obj
=
JSON
.
parse
(
binaryString
);
let
objStr
=
JSON
.
stringify
(
obj
);
let
objStr
=
JSON
.
stringify
(
obj
)
if
(
obj
.
reqCode
==
gameDateId
&&
obj
.
isAllagree
==
1
&&
obj
.
type
==
0
)
{
if
(
obj
.
reqCode
==
gameDateId
&&
obj
.
isAllagree
==
1
&&
obj
.
type
==
0
)
{
// layer.msg('客戶端回調成功')
// layer.msg('客戶端回調成功')
goBetCallBack
();
goBetCallBack
()
}
else
{
}
else
{
// console.log(`客戶端回調失敗:${objStr}`)
// console.log(`客戶端回調失敗:${objStr}`)
layer
.
msg
(
"請稍後重試"
);
layer
.
msg
(
'請稍後重試'
)
}
}
}
}
</script>
</script>
</html>
</html>
\ No newline at end of file
activeFt/luckySpace/lib/default.js
View file @
a1e5f868
...
@@ -4,30 +4,31 @@
...
@@ -4,30 +4,31 @@
var
bbb
=
location
.
href
;
var
bbb
=
location
.
href
;
if
(
bbb
.
indexOf
(
"https://fsactive.fusi.club/"
)
>
-
1
)
{
if
(
bbb
.
indexOf
(
"https://fsactive.fusi.club/"
)
>
-
1
)
{
$ip
=
"https://vc.game.tealive66.com"
;
$ip
=
"https://vc.game.tealive66.com"
;
$ws
=
"wss://zhiboweb.ishuaji.cn/yzsocket/ws?type=2"
;
$ws
=
'wss://zhiboweb.ishuaji.cn/yzsocket/ws?type=2'
$url
=
"https://activity.ishuaji.cn/"
;
$url
=
'https://activity.ishuaji.cn/'
}
else
{
}
$ip
=
"http://testvc.game.tealive66.com"
;
else
{
$ws
=
"ws://114.55.165.186:12308/ws?type=-1"
;
$ip
=
'http://testvc.game.tealive66.com'
;
$url
=
"https://vc.game.tealive66.com"
;
$ws
=
'ws://114.55.165.186:12308/ws?type=-1'
;
$url
=
'https://vc.game.tealive66.com'
}
}
var
bbb
=
location
.
href
;
var
bbb
=
location
.
href
;
var
data
=
url_get_params
(
bbb
)
;
var
data
=
url_get_params
(
bbb
)
if
(
sessionStorage
.
kkk
==
undefined
)
{
if
(
sessionStorage
.
kkk
==
undefined
)
{
sessionStorage
.
kkk
=
data
.
token
;
//t
sessionStorage
.
kkk
=
data
.
token
;
//t
sessionStorage
.
bbb
=
data
.
uid
;
//u
sessionStorage
.
bbb
=
data
.
uid
;
//u
sessionStorage
.
version
=
data
.
appversion
;
sessionStorage
.
version
=
data
.
appversion
;
sessionStorage
.
pkg
=
data
.
pkg
;
sessionStorage
.
pkg
=
data
.
pkg
sessionStorage
.
lang
=
data
.
lang
;
sessionStorage
.
lang
=
data
.
lang
if
(
data
.
roomID
!=
undefined
&&
data
.
roomID
!=
"undefined"
)
{
if
(
data
.
roomID
!=
undefined
&&
data
.
roomID
!=
'undefined'
)
{
sessionStorage
.
roomId
=
data
.
roomID
;
sessionStorage
.
roomId
=
data
.
roomID
;
}
else
{
}
else
{
sessionStorage
.
roomId
=
data
.
roomId
;
sessionStorage
.
roomId
=
data
.
roomId
;
}
}
if
(
sessionStorage
.
roomId
==
"undefined"
)
sessionStorage
.
roomId
=
0
;
if
(
sessionStorage
.
roomId
==
'undefined'
)
sessionStorage
.
roomId
=
0
}
}
sessionStorage
.
jump
=
data
.
jump
;
sessionStorage
.
jump
=
data
.
jump
sessionStorage
.
isShowHalf
=
data
.
isShowHalf
;
sessionStorage
.
isShowHalf
=
data
.
isShowHalf
function
url_get_params
(
url_path
)
{
function
url_get_params
(
url_path
)
{
var
url
=
url_path
;
var
url
=
url_path
;
var
theRequest
=
new
Object
();
var
theRequest
=
new
Object
();
...
@@ -42,96 +43,42 @@ function url_get_params(url_path) {
...
@@ -42,96 +43,42 @@ function url_get_params(url_path) {
}
}
if
(
bbb
.
indexOf
(
"http://localhost:63342"
)
>
-
1
)
{
if
(
bbb
.
indexOf
(
"http://localhost:63342"
)
>
-
1
)
{
sessionStorage
.
bbb
=
23871190
;
sessionStorage
.
bbb
=
23871190
;
sessionStorage
.
kkk
=
"debug"
;
sessionStorage
.
kkk
=
'debug'
sessionStorage
.
roomId
=
23864554
;
sessionStorage
.
roomId
=
23864554
}
}
if
(
bbb
.
indexOf
(
"file:///"
)
>
-
1
)
{
if
(
bbb
.
indexOf
(
"file:///"
)
>
-
1
)
{
sessionStorage
.
bbb
=
10007
;
sessionStorage
.
bbb
=
10007
;
sessionStorage
.
kkk
=
"debug"
;
sessionStorage
.
kkk
=
'debug'
sessionStorage
.
roomId
=
23868834
;
sessionStorage
.
roomId
=
23868834
sessionStorage
.
lang
=
1
;
sessionStorage
.
lang
=
1
}
}
//ajax设置默认参数
//ajax设置默认参数
$
.
ajaxSetup
({
$
.
ajaxSetup
({
global
:
false
,
global
:
false
,
type
:
"get"
,
type
:
'get'
,
data
:
{
data
:
{
uid
:
sessionStorage
.
bbb
,
uid
:
sessionStorage
.
bbb
,
token
:
sessionStorage
.
kkk
,
token
:
sessionStorage
.
kkk
,
},
dataType
:
"JSON"
,
});
mAudios
.
bgm
.
src
=
"dist/bg.mp3"
;
},
mAudios
.
betWin
.
src
=
"dist/betWin.mp3"
;
dataType
:
"JSON"
mAudios
.
betLose
.
src
=
"dist/betLose.mp3"
;
})
mAudios
.
clock
.
src
=
"dist/clock.mp3"
;
mAudios
.
boom
.
src
=
"dist/boom.mp3"
;
mAudios
.
rocket
.
src
=
"dist/rocket.mp3"
;
mAudios
.
water
.
src
=
"dist/water.mp3"
;
mAudios
.
bgm
.
loop
=
true
;
mAudios
.
bgm
.
play
();
//点击刷新
//点击刷新
$
(
".ref"
).
on
(
"click"
,
function
()
{
$
(
".ref"
).
on
(
"click"
,
function
()
{
sessionStorage
.
jump
=
undefined
;
sessionStorage
.
jump
=
undefined
;
window
.
location
.
reload
();
window
.
location
.
reload
()
})
;
})
function
btnHref
(
e
)
{
function
btnHref
(
e
){
var
myJson
=
{
var
myJson
=
{
cid
:
12
,
"cid"
:
12
,
reqCode
:
new
Date
().
getTime
(),
"reqCode"
:
new
Date
().
getTime
(),
data
:
{
"data"
:
{
msg
:
"跳转页面"
,
"msg"
:
'跳转页面'
,
jump
:
e
,
"jump"
:
e
,
},
};
var
obj
=
JSON
.
stringify
(
myJson
);
appCollaboration
(
obj
);
}
// 露水音效
function
betSound
()
{
mAudios
.
water
.
play
();
}
// 中奖音效
function
betWin
()
{
mAudios
.
betWin
.
play
();
}
// 未中奖音效
function
betLose
()
{
mAudios
.
betLose
.
play
();
}
// 爆炸音效
function
betBoom
()
{
mAudios
.
boom
.
play
();
}
// 火箭升空音效
function
rocket
()
{
if
(
mAudios
.
bgm
.
muted
)
{
return
;
}
mAudios
.
rocket
.
play
();
}
// 停止播放火箭升空音效
function
rocketStop
()
{
mAudios
.
rocket
.
pause
();
}
// 点击静音关闭所有
function
stopAll
()
{
mAudios
.
bgm
.
pause
();
mAudios
.
rocket
.
pause
();
mAudios
.
clock
.
pause
();
}
// 倒计时音效
function
clock
(
min
,
sec
)
{
if
(
mAudios
.
bgm
.
muted
)
{
return
;
}
}
if
(
Number
(
min
)
==
0
&&
Number
(
sec
)
==
3
)
{
mAudios
.
clock
.
play
();
}
}
var
obj
=
JSON
.
stringify
(
myJson
);
appCollaboration
(
obj
)
}
}
//与客户端交互
//与客户端交互
function
appCollaboration
(
msg
)
{
function
appCollaboration
(
msg
)
{
...
@@ -142,141 +89,126 @@ function appCollaboration(msg) {
...
@@ -142,141 +89,126 @@ function appCollaboration(msg) {
}
else
if
(
/android/
.
test
(
ua
))
{
}
else
if
(
/android/
.
test
(
ua
))
{
window
.
yazhai
.
appCollaboration
(
msg
);
window
.
yazhai
.
appCollaboration
(
msg
);
}
}
}
catch
(
e
)
{}
}
catch
(
e
)
{
}
}
}
//处理时间倒计时的函数
//处理时间倒计时的函数
function
timeDeal
(
e
)
{
function
timeDeal
(
e
){
var
endTime
=
e
;
var
endTime
=
e
;
var
newTime
=
new
Date
().
getTime
();
var
newTime
=
new
Date
().
getTime
();
var
Remain
=
Math
.
floor
((
endTime
-
newTime
)
/
1000
);
var
Remain
=
Math
.
floor
((
endTime
-
newTime
)
/
1000
);
if
(
Remain
<=
0
)
window
.
location
.
reload
();
if
(
Remain
<=
0
)
window
.
location
.
reload
();
var
day
=
Math
.
floor
(
Remain
/
86400
);
var
day
=
Math
.
floor
(
Remain
/
86400
);
var
hour
=
add0
(
Math
.
floor
((
Remain
%
86400
)
/
3600
));
var
hour
=
add0
(
Math
.
floor
(
Remain
%
86400
/
3600
));
if
(
hour
>
99
)
hour
=
99
;
if
(
hour
>
99
)
hour
=
99
;
var
min
=
add0
(
Math
.
floor
((
Remain
%
3600
)
/
60
));
var
min
=
add0
(
Math
.
floor
(
Remain
%
3600
/
60
));
var
sceond
=
add0
(
Math
.
floor
(
Remain
%
60
));
var
sceond
=
add0
(
Math
.
floor
(
Remain
%
60
));
var
timeArr
=
[
day
,
hour
,
min
,
sceond
];
var
timeArr
=
[
day
,
hour
,
min
,
sceond
];
return
timeArr
;
return
timeArr
;
}
}
function
timeDeal2
(
e
,
star
)
{
function
timeDeal2
(
e
,
star
)
{
var
endTime
=
e
;
var
endTime
=
e
;
var
newTime
=
star
;
var
newTime
=
star
;
var
Remain
=
Math
.
floor
((
endTime
-
newTime
)
/
1000
);
var
Remain
=
Math
.
floor
((
endTime
-
newTime
)
/
1000
);
if
(
Remain
<=
0
)
Remain
=
0
;
if
(
Remain
<=
0
)
Remain
=
0
var
day
=
Math
.
floor
(
Remain
/
86400
);
var
day
=
Math
.
floor
(
Remain
/
86400
);
var
hour
=
add0
(
Math
.
floor
((
Remain
%
86400
)
/
3600
));
var
hour
=
add0
(
Math
.
floor
(
Remain
%
86400
/
3600
));
if
(
hour
>
99
)
hour
=
99
;
if
(
hour
>
99
)
hour
=
99
;
var
min
=
add0
(
Math
.
floor
((
Remain
%
3600
)
/
60
));
var
min
=
add0
(
Math
.
floor
(
Remain
%
3600
/
60
));
var
sceond
=
add0
(
Math
.
floor
(
Remain
%
60
));
var
sceond
=
add0
(
Math
.
floor
(
Remain
%
60
));
if
(
sceond
<
0
)
sceond
=
0
;
if
(
sceond
<
0
)
sceond
=
0
var
timeArr
=
[
day
,
hour
,
min
,
sceond
];
var
timeArr
=
[
day
,
hour
,
min
,
sceond
];
return
timeArr
;
return
timeArr
;
}
}
//时间戳转具体 年月日时分秒
//时间戳转具体 年月日时分秒
function
timeGet
(
e
)
{
function
timeGet
(
e
){
var
time
=
new
Date
(
Number
(
e
));
var
time
=
new
Date
(
Number
(
e
));
var
y
=
time
.
getFullYear
();
var
y
=
time
.
getFullYear
();
var
m
=
time
.
getMonth
()
+
1
;
var
m
=
time
.
getMonth
()
+
1
;
var
d
=
time
.
getDate
();
var
d
=
time
.
getDate
();
var
h
=
time
.
getHours
();
var
h
=
time
.
getHours
();
var
mm
=
time
.
getMinutes
();
var
mm
=
time
.
getMinutes
();
var
s
=
time
.
getSeconds
();
var
s
=
time
.
getSeconds
();
var
timeArr
=
[
y
,
m
,
d
,
add0
(
h
),
add0
(
mm
),
s
];
var
timeArr
=
[
y
,
m
,
d
,
add0
(
h
),
add0
(
mm
),
s
]
return
timeArr
;
return
timeArr
}
}
//一位数前面加0
//一位数前面加0
function
add0
(
m
)
{
function
add0
(
m
)
{
return
m
<
10
?
"0"
+
m
:
m
;
return
m
<
10
?
'0'
+
m
:
m
}
}
function
add00
(
m
)
{
function
add00
(
m
){
if
(
m
<
10
)
{
if
(
m
<
10
)
{
return
"00"
+
m
;
return
'00'
+
m
}
else
if
(
m
>
10
&&
m
<
100
)
{
}
else
if
(
m
>
10
&&
m
<
100
)
{
return
"0"
+
m
;
return
'0'
+
m
}
else
{
}
else
{
return
m
;
return
m
}
}
}
}
function
imgAdd
(
m
)
{
function
imgAdd
(
m
){
if
(
String
(
m
).
length
>
5
)
return
m
;
if
(
String
(
m
).
length
>
5
)
return
m
;
return
(
Array
(
5
).
join
(
0
)
+
m
).
slice
(
-
5
);
return
(
Array
(
5
).
join
(
0
)
+
m
).
slice
(
-
5
);
}
}
//一万以上省略
//一万以上省略
function
addw
(
e
)
{
function
addw
(
e
){
if
(
e
>=
100000000
)
{
if
(
e
>=
100000000
){
return
Math
.
floor
((
e
/
100000000
).
toFixed
(
2
)
*
10
)
/
10
+
"亿"
;
return
Math
.
floor
((
e
/
100000000
).
toFixed
(
2
)
*
10
)
/
10
+
'亿'
;
}
else
if
(
e
>=
10000
)
{
}
return
Math
.
floor
((
e
/
10000
).
toFixed
(
2
)
*
10
)
/
10
+
"万"
;
else
if
(
e
>=
10000
){
}
else
{
return
Math
.
floor
((
e
/
10000
).
toFixed
(
2
)
*
10
)
/
10
+
'万'
;
}
else
{
return
Math
.
ceil
(
e
);
return
Math
.
ceil
(
e
);
}
}
}
}
function
addDoc
(
e
)
{
function
addDoc
(
e
){
if
(
e
%
1
==
0
)
{
if
(
e
%
1
==
0
)
{
return
e
+
".0"
;
return
e
+
'.0'
;
}
else
return
e
;
}
else
return
e
}
}
function
callFK
()
{
function
callFK
(){
var
obj2
=
{
var
obj2
=
{
cid
:
4
,
"cid"
:
4
,
reqCode
:
new
Date
().
getTime
(),
"reqCode"
:
new
Date
().
getTime
(),
data
:
{
"data"
:
{
msg
:
"请求客服"
,
"msg"
:
"请求客服"
,
},
}
};
}
var
obj
=
JSON
.
stringify
(
obj2
);
var
obj
=
JSON
.
stringify
(
obj2
);
appCollaboration
(
obj
);
appCollaboration
(
obj
)
}
}
//跳转充值页面
//跳转充值页面
function
goReg
()
{
function
goReg
(){
if
(
sessionStorage
.
pkg
==
"qingliang"
)
{
if
(
sessionStorage
.
pkg
==
'qingliang'
)
{
var
ua
=
window
.
navigator
.
userAgent
.
toLowerCase
();
var
ua
=
window
.
navigator
.
userAgent
.
toLowerCase
();
if
(
/iphone|ipad|ipod/
.
test
(
ua
))
{
if
(
/iphone|ipad|ipod/
.
test
(
ua
))
{
window
.
location
.
href
=
"yazhai://_recharge"
;
window
.
location
.
href
=
'yazhai://_recharge'
;
}
else
{
}
else
{
window
.
location
.
href
=
window
.
location
.
href
=
'http://web.yazhai.co/milkRecharge/index.html?uid='
+
sessionStorage
.
bbb
+
'&token='
+
sessionStorage
.
kkk
+
'&pkg=qingliang'
;
"http://web.yazhai.co/milkRecharge/index.html?uid="
+
sessionStorage
.
bbb
+
"&token="
+
sessionStorage
.
kkk
+
"&pkg=qingliang"
;
}
}
}
else
if
(
sessionStorage
.
pkg
==
"qiezi"
)
{
}
else
if
(
sessionStorage
.
pkg
==
'qiezi'
)
{
var
ua
=
window
.
navigator
.
userAgent
.
toLowerCase
();
var
ua
=
window
.
navigator
.
userAgent
.
toLowerCase
();
if
(
/iphone|ipad|ipod/
.
test
(
ua
))
{
if
(
/iphone|ipad|ipod/
.
test
(
ua
))
{
window
.
location
.
href
=
"yazhai://_recharge"
;
window
.
location
.
href
=
'yazhai://_recharge'
;
}
else
{
}
else
{
window
.
location
.
href
=
window
.
location
.
href
=
'http://web.yazhai.co/guodongRecharge/index.html?uid='
+
sessionStorage
.
bbb
+
'&token='
+
sessionStorage
.
kkk
+
'&pkg=qingliang'
;
"http://web.yazhai.co/guodongRecharge/index.html?uid="
+
sessionStorage
.
bbb
+
"&token="
+
sessionStorage
.
kkk
+
"&pkg=qingliang"
;
}
}
}
else
if
(
sessionStorage
.
pkg
==
"iosxiuse"
)
{
}
else
if
(
sessionStorage
.
pkg
==
'iosxiuse'
){
window
.
location
.
href
=
"yazhai://_recharge"
;
window
.
location
.
href
=
'yazhai://_recharge'
;
}
else
{
}
window
.
location
.
href
=
else
{
"http://web.yazhai.co/recharge/index.html?uid="
+
window
.
location
.
href
=
'http://web.yazhai.co/recharge/index.html?uid='
+
sessionStorage
.
bbb
+
'&token='
+
sessionStorage
.
kkk
+
'&pkg=yabo'
;
sessionStorage
.
bbb
+
"&token="
+
sessionStorage
.
kkk
+
"&pkg=yabo"
;
}
}
}
}
function
scrollTo
(
element
,
speed
)
{
function
scrollTo
(
element
,
speed
)
{
if
(
!
speed
)
{
if
(
!
speed
)
{
speed
=
300
;
speed
=
300
;
}
}
if
(
!
element
)
{
if
(
!
element
){
$
(
"html,body"
).
animate
({
scrollTop
:
0
},
speed
);
$
(
"html,body"
).
animate
({
scrollTop
:
0
},
speed
);
}
else
{
}
else
{
if
(
element
.
length
>
0
)
{
if
(
element
.
length
>
0
){
$
(
"html,body"
).
animate
(
$
(
"html,body"
).
animate
({
scrollTop
:
$
(
element
).
offset
().
top
-
200
},
speed
);
{
scrollTop
:
$
(
element
).
offset
().
top
-
200
},
speed
);
}
}
}
}
}
}
...
...
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