Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SURPRISED
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
华国豪
SURPRISED
Commits
bcb81382
Commit
bcb81382
authored
Nov 15, 2019
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
cada0c10
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
491 additions
and
417 deletions
+491
-417
GT_activities.html
html/GT_activities.html
+1
-1
Rushbuy.html
html/Rushbuy.html
+413
-343
mian.js
js/mian.js
+77
-73
No files found.
html/GT_activities.html
View file @
bcb81382
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
<meta
name=
"x5-orientation"
content=
"portrait"
>
<meta
name=
"x5-orientation"
content=
"portrait"
>
</meta>
</meta>
<!-- <link rel="shortcut icon" href="../images/favicon.ico" type="image/x-icon" />-->
<!-- <link rel="shortcut icon" href="../images/favicon.ico" type="image/x-icon" />-->
<link
rel=
"stylesheet"
href=
"../css/GT_activities.css"
>
<link
rel=
"stylesheet"
href=
"../css/GT_activities.css
?r=2341654165
"
>
<link
rel=
"stylesheet"
href=
"../css/GT_activities2.css"
media=
"screen"
type=
"text/css"
/>
<link
rel=
"stylesheet"
href=
"../css/GT_activities2.css"
media=
"screen"
type=
"text/css"
/>
<div
id=
'wx_pic'
style=
'margin:0 auto;display:none;'
>
<div
id=
'wx_pic'
style=
'margin:0 auto;display:none;'
>
<img
src=
'../images/18logo.png'
/>
<img
src=
'../images/18logo.png'
/>
...
...
html/Rushbuy.html
View file @
bcb81382
<html>
<html>
<head>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, target-densitydpi=device-dpi"
/>
content=
"width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, target-densitydpi=device-dpi"
/>
<meta
name=
"screen-orientation"
content=
"portrait"
>
<meta
name=
"screen-orientation"
content=
"portrait"
>
</meta>
</meta>
<meta
name=
"x5-orientation"
content=
"portrait"
>
<meta
name=
"x5-orientation"
content=
"portrait"
>
</meta>
</meta>
<title>
印象之旅11.18
</title>
<title>
印象之旅11.18
</title>
<style>
<style>
*
{
margin
:
0
;
padding
:
0
;}
*
{
.main
{
margin
:
0
;
padding
:
0
;
}
.main
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
background
:
url(../images/gongxi4.png)
no-repeat
;
background
:
url(../images/gongxi4.png)
no-repeat
;
background-size
:
100%
;
background-size
:
100%
;
background-color
:
#8d54cc
;
background-color
:
#8d54cc
;
position
:
relative
;
position
:
relative
;
overflow
:
hidden
;
overflow
:
hidden
;
}
}
.main
.box
{
.main
.box
{
position
:
relative
;
position
:
relative
;
top
:
30%
;
top
:
30%
;
width
:
100%
;
width
:
100%
;
opacity
:
0
;
opacity
:
0
;
text-align
:
center
;
text-align
:
center
;
}
}
.main
.box.nomove
{
.main
.box.nomove
{
top
:
40%
;
top
:
40%
;
opacity
:
1
;
opacity
:
1
;
}
}
.main
.box.move
{
.main
.box.move
{
top
:
40%
;
top
:
40%
;
opacity
:
1
;
opacity
:
1
;
transition
:
all
linear
.5s
;
transition
:
all
linear
.5s
;
-moz-transition
:
all
linear
.5s
;
/* Firefox 4 */
-moz-transition
:
all
linear
.5s
;
-webkit-transition
:
all
linear
.5s
;
/* Safari and Chrome */
/* Firefox 4 */
-o-transition
:
all
linear
.5s
;
/* Opera */
-webkit-transition
:
all
linear
.5s
;
/* Safari and Chrome */
-o-transition
:
all
linear
.5s
;
/* Opera */
}
}
.main
.box
.hongbao
{
.main
.box
.hongbao
{
width
:
80%
;
width
:
80%
;
}
}
.main
.box
.anniu
{
.main
.box
.anniu
{
width
:
64%
;
width
:
64%
;
position
:
absolute
;
position
:
absolute
;
left
:
18%
;
left
:
18%
;
bottom
:
15%
;
bottom
:
15%
;
background
:
url(../images/gongxi22.png)
;
background
:
url(../images/gongxi22.png)
;
background-repeat
:
no-repeat
;
background-repeat
:
no-repeat
;
background-size
:
100%
100%
;
background-size
:
100%
100%
;
background-position-x
:
center
;
background-position-x
:
center
;
margin
:
0
auto
;
margin
:
0
auto
;
font-size
:
1.4rem
;
font-size
:
1.4rem
;
...
@@ -57,13 +69,14 @@
...
@@ -57,13 +69,14 @@
height
:
4rem
;
height
:
4rem
;
line-height
:
4rem
;
line-height
:
4rem
;
}
}
.main
.box
.anniu
::after
{
.main
.box
.anniu
::after
{
content
:
""
;
content
:
""
;
display
:
block
;
display
:
block
;
padding-bottom
:
36%
;
padding-bottom
:
36%
;
}
}
#RushbuyTime
{
#RushbuyTime
{
font-size
:
0.13rem
;
font-size
:
0.13rem
;
color
:
#e03234
;
color
:
#e03234
;
height
:
0.2rem
;
height
:
0.2rem
;
...
@@ -72,96 +85,122 @@
...
@@ -72,96 +85,122 @@
right
:
-18.5%
;
right
:
-18.5%
;
top
:
26%
;
top
:
26%
;
}
}
.rushNocheck
{
width
:
0.9rem
;
.rushNocheck
{
height
:
0.9rem
;
width
:
0.9rem
;
border
:
1px
solid
#fff
;
height
:
0.9rem
;
border
:
1px
solid
#fff
;
display
:
inline-block
;
display
:
inline-block
;
border-radius
:
0.2rem
;
border-radius
:
0.2rem
;
position
:
relative
;
position
:
relative
;
top
:
0.1rem
;
top
:
0.1rem
;
margin-right
:
0.2rem
;
margin-right
:
0.2rem
;
display
:
none
;
display
:
none
;
}
}
.rushNocheckTwo
{
width
:
1rem
;
.rushNocheckTwo
{
height
:
1rem
;
width
:
1rem
;
height
:
1rem
;
display
:
inline-block
;
display
:
inline-block
;
border-radius
:
0.2rem
;
border-radius
:
0.2rem
;
position
:
relative
;
position
:
relative
;
top
:
0.1rem
;
top
:
0.1rem
;
margin-right
:
0.2rem
;
margin-right
:
0.2rem
;
}
}
.rushNocheckTwo
img
{
width
:
100%
;
.rushNocheckTwo
img
{
height
:
100%
;
width
:
100%
;
height
:
100%
;
}
}
.readXieyi
{
color
:
#fff
;
.readXieyi
{
font-size
:
1rem
;
color
:
#fff
;
width
:
100%
;
font-size
:
1rem
;
width
:
100%
;
text-align
:
center
;
text-align
:
center
;
position
:
absolute
;
position
:
absolute
;
bottom
:
3rem
;
bottom
:
3rem
;
}
}
.benciXieyi
{
color
:
#FFCE55
;
.benciXieyi
{
color
:
#FFCE55
;
text-decoration
:
underline
;
text-decoration
:
underline
;
}
}
.activeXieyi
{
.activeXieyi
{
position
:
absolute
;
position
:
absolute
;
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
display
:
none
;
display
:
none
;
top
:
0
;
top
:
0
;
left
:
0
;
left
:
0
;
background
:
rgba
(
0
,
0
,
0
,
.6
);
background
:
rgba
(
0
,
0
,
0
,
.6
);
color
:
#333333
;
color
:
#333333
;
}
}
.xieyiContent
{
width
:
80%
;
.xieyiContent
{
height
:
26rem
;
width
:
80%
;
padding
:
1rem
;
height
:
26rem
;
padding
:
1rem
;
background-color
:
#fff
;
background-color
:
#fff
;
margin
:
0
auto
;
margin
:
0
auto
;
margin-top
:
6rem
;
margin-top
:
6rem
;
border-radius
:
1rem
;
border-radius
:
1rem
;
}
}
.xieyiTitle
{
font-size
:
1rem
;
.xieyiTitle
{
width
:
100%
;
font-size
:
1rem
;
width
:
100%
;
text-align
:
center
;
text-align
:
center
;
}
}
.xieyiNei
{
width
:
100%
;
.xieyiNei
{
height
:
6rem
;
width
:
100%
;
height
:
6rem
;
width
:
100%
;
width
:
100%
;
height
:
20rem
;
height
:
20rem
;
margin-top
:
1rem
;
margin-top
:
1rem
;
overflow-y
:
auto
;
overflow-y
:
auto
;
font-size
:
0.9rem
;
font-size
:
0.9rem
;
color
:
#333333
;
color
:
#333333
;
padding
:
0
0.2rem
;
padding
:
0
0.2rem
;
}
}
.xieyiNei
div
{
margin-bottom
:
1rem
;
.xieyiNei
div
{
}
margin-bottom
:
1rem
;
.xieyiNei
::-webkit-scrollbar
{
width
:
4px
;
height
:
8px
;}
}
.xieyiNei
::-webkit-scrollbar-thumb
{
border-radius
:
4px
;
box-shadow
:
inset
0
0
2px
rgba
(
0
,
0
,
0
,
0.2
);
background
:
#c9c9c9
;}
.xieyiNei
::-webkit-scrollbar-track
{
box-shadow
:
inset
0
0
2px
rgba
(
0
,
0
,
0
,
0.2
);
border-radius
:
4px
;
background
:
#EDEDED
;}
.xieyiNei
::-webkit-scrollbar
{
.readBtn
{
width
:
4px
;
width
:
6rem
;
height
:
8px
;
height
:
2.5rem
;
}
.xieyiNei
::-webkit-scrollbar-thumb
{
border-radius
:
4px
;
box-shadow
:
inset
0
0
2px
rgba
(
0
,
0
,
0
,
0.2
);
background
:
#c9c9c9
;
}
.xieyiNei
::-webkit-scrollbar-track
{
box-shadow
:
inset
0
0
2px
rgba
(
0
,
0
,
0
,
0.2
);
border-radius
:
4px
;
background
:
#EDEDED
;
}
.readBtn
{
width
:
6rem
;
height
:
2.5rem
;
background-color
:
#FFC430
;
background-color
:
#FFC430
;
color
:
#A76104
;
color
:
#A76104
;
border
:
none
;
border
:
none
;
outline
:
none
;
outline
:
none
;
font-size
:
1rem
;
font-size
:
1rem
;
border-radius
:
0.5rem
;
border-radius
:
0.5rem
;
margin-top
:
1rem
;
margin-top
:
1rem
;
}
}
</style>
</style>
</head>
</head>
<body>
<body>
<div
class=
"main"
>
<div
class=
"main"
>
<div
class=
"box"
>
<div
class=
"box"
>
...
@@ -175,7 +214,7 @@
...
@@ -175,7 +214,7 @@
<div
class=
"readXieyi"
>
<div
class=
"readXieyi"
>
<div
class=
"rushNocheck"
></div>
<div
class=
"rushNocheck"
></div>
<div
class=
"rushNocheckTwo"
>
<div
class=
"rushNocheckTwo"
>
<img
src=
"../images/xyck.png"
alt=
""
/>
<img
src=
"../images/xyck.png"
alt=
""
/>
</div>
</div>
<span>
我已阅读并同意
</span><span
class=
"benciXieyi"
>
《本次活动说明》
</span>
<span>
我已阅读并同意
</span><span
class=
"benciXieyi"
>
《本次活动说明》
</span>
</div>
</div>
...
@@ -202,7 +241,7 @@
...
@@ -202,7 +241,7 @@
<script
type=
"text/javascript"
src=
"../js/jquery-1.10.2.js"
></script>
<script
type=
"text/javascript"
src=
"../js/jquery-1.10.2.js"
></script>
<script
type=
"text/javascript"
src=
"../js/md5.js"
></script>
<script
type=
"text/javascript"
src=
"../js/md5.js"
></script>
<script
type=
"text/javascript"
src=
"../js/layer/layer.js"
></script>
<script
type=
"text/javascript"
src=
"../js/layer/layer.js"
></script>
<script
type=
"text/javascript"
src=
"../js/mian.js
"
></script>
<script
type=
"text/javascript"
src=
"../js/mian.js?r=12312312312
"
></script>
<script
type=
"text/javascript"
src=
"https://res.wx.qq.com/open/js/jweixin-1.3.2.js"
></script>
<script
type=
"text/javascript"
src=
"https://res.wx.qq.com/open/js/jweixin-1.3.2.js"
></script>
<script>
<script>
...
@@ -210,7 +249,7 @@
...
@@ -210,7 +249,7 @@
let
price
=
param
?
param
[
0
].
split
(
'='
)[
1
]
:
0
;
let
price
=
param
?
param
[
0
].
split
(
'='
)[
1
]
:
0
;
let
couponId
=
param
?
param
[
1
].
split
(
'='
)[
1
]
:
0
;
let
couponId
=
param
?
param
[
1
].
split
(
'='
)[
1
]
:
0
;
let
platform
=
param
?
param
[
2
].
split
(
'='
)[
1
]
:
0
;
let
platform
=
param
?
param
[
2
].
split
(
'='
)[
1
]
:
0
;
$
(
'.anniu'
).
html
(
'支付'
+
price
+
'元领取'
)
$
(
'.anniu'
).
html
(
'支付'
+
price
+
'元领取'
)
let
buyIf
=
{}
let
buyIf
=
{}
// if (localStorage.buyInfo) {
// if (localStorage.buyInfo) {
// buyIf = JSON.parse(localStorage.buyInfo)
// buyIf = JSON.parse(localStorage.buyInfo)
...
@@ -222,50 +261,73 @@
...
@@ -222,50 +261,73 @@
}
else
{
}
else
{
move
(
2
)
move
(
2
)
}
}
let
RushbuyTime
=
localStorage
.
RushbuyTime
?
JSON
.
parse
(
localStorage
.
RushbuyTime
)
:
{
RushbuyTime
:
''
}
let
RushbuyTime
=
localStorage
.
RushbuyTime
?
JSON
.
parse
(
localStorage
.
RushbuyTime
)
:
{
RushbuyTime
:
''
}
$
(
'#RushbuyTime'
).
html
(
`有效期截止:`
+
RushbuyTime
.
RushbuyTime
)
$
(
'#RushbuyTime'
).
html
(
`有效期截止:`
+
RushbuyTime
.
RushbuyTime
)
function
move
(
t
){
function
move
(
t
)
{
if
(
t
===
1
)
{
if
(
t
===
1
)
{
$
(
'.box'
).
addClass
(
'nomove'
)
$
(
'.box'
).
addClass
(
'nomove'
)
}
else
{
}
else
{
setTimeout
(
function
()
{
setTimeout
(
function
()
{
$
(
'.box'
).
addClass
(
'move'
)
$
(
'.box'
).
addClass
(
'move'
)
},
500
)
},
500
)
}
}
}
}
var
isChecke
=
true
;
var
isChecke
=
true
;
$
(
'.readXieyi'
).
click
(
function
(){
$
(
'.readXieyi'
).
click
(
function
()
{
isChecke
=!
isChecke
isChecke
=
!
isChecke
if
(
!
isChecke
){
if
(
!
isChecke
)
{
$
(
'.rushNocheckTwo'
).
css
({
'display'
:
'none'
})
$
(
'.rushNocheckTwo'
).
css
({
$
(
'.rushNocheck'
).
css
({
'display'
:
'inline-block'
})
'display'
:
'none'
}
else
{
})
$
(
'.rushNocheckTwo'
).
css
({
'display'
:
'inline-block'
})
$
(
'.rushNocheck'
).
css
({
$
(
'.rushNocheck'
).
css
({
'display'
:
'none'
})
'display'
:
'inline-block'
})
}
else
{
$
(
'.rushNocheckTwo'
).
css
({
'display'
:
'inline-block'
})
$
(
'.rushNocheck'
).
css
({
'display'
:
'none'
})
}
}
})
})
//点击本次协议弹出窗
//点击本次协议弹出窗
$
(
".benciXieyi"
).
click
(
function
(
e
)
{
$
(
".benciXieyi"
).
click
(
function
(
e
)
{
e
.
stopPropagation
();
e
.
stopPropagation
();
$
(
'.activeXieyi'
).
css
({
'display'
:
'block'
});
$
(
'.activeXieyi'
).
css
({
'display'
:
'block'
});
});
});
//关闭弹窗
//关闭弹窗
$
(
'.readBtn'
).
click
(
function
(){
$
(
'.readBtn'
).
click
(
function
()
{
$
(
'.activeXieyi'
).
css
({
'display'
:
'none'
});
$
(
'.activeXieyi'
).
css
({
'display'
:
'none'
});
})
})
$
(
'.anniu'
).
click
(
function
()
{
$
(
'.anniu'
).
click
(
function
()
{
if
(
!
isChecke
)
{
if
(
!
isChecke
)
{
layer
.
msg
(
'请同意活动说明'
);
layer
.
msg
(
'请同意活动说明'
);
return
;
return
;
}
}
var
loadingFlag
;
var
loadingFlag
;
if
(
platform
==
'app'
)
{
if
(
platform
==
'app'
)
{
window
.
postMessage
(
JSON
.
stringify
({
'action'
:
'showHud'
,
'message'
:
'抢购中...'
}));
window
.
postMessage
(
JSON
.
stringify
({
'action'
:
'showHud'
,
'message'
:
'抢购中...'
}));
}
}
if
(
platform
==
'H5'
)
{
if
(
platform
==
'H5'
)
{
loadingFlag
=
layer
.
msg
(
'抢购中...'
,
{
icon
:
16
,
shade
:
0.01
,
shadeClose
:
false
,
time
:
60000
});
loadingFlag
=
layer
.
msg
(
'抢购中...'
,
{
icon
:
16
,
shade
:
0.01
,
shadeClose
:
false
,
time
:
60000
});
}
}
$
.
ajax
({
$
.
ajax
({
type
:
"POST"
,
type
:
"POST"
,
...
@@ -277,9 +339,11 @@
...
@@ -277,9 +339,11 @@
productName
:
'印象之旅-200元线路产品优惠券'
productName
:
'印象之旅-200元线路产品优惠券'
}),
}),
async
:
false
,
async
:
false
,
success
:
function
(
res
)
{
success
:
function
(
res
)
{
if
(
platform
==
'app'
)
{
if
(
platform
==
'app'
)
{
window
.
postMessage
(
JSON
.
stringify
({
'action'
:
'dismissHud'
}));
window
.
postMessage
(
JSON
.
stringify
({
'action'
:
'dismissHud'
}));
}
}
if
(
platform
==
'H5'
)
{
if
(
platform
==
'H5'
)
{
layer
.
close
(
loadingFlag
);
layer
.
close
(
loadingFlag
);
...
@@ -297,12 +361,12 @@
...
@@ -297,12 +361,12 @@
'price'
:
res
.
data
.
preferPrice
,
'price'
:
res
.
data
.
preferPrice
,
'backType'
:
'reload'
,
'backType'
:
'reload'
,
'data'
:
res
.
data
,
'data'
:
res
.
data
,
'goBack'
:
'1'
,
'goBack'
:
'1'
,
'cardInfo'
:
{
'cardInfo'
:
{
title
:
RushbuyTime
.
title
,
title
:
RushbuyTime
.
title
,
date
:
RushbuyTime
.
RushbuyTime
,
date
:
RushbuyTime
.
RushbuyTime
,
userName
:
RushbuyTime
.
userName
,
userName
:
RushbuyTime
.
userName
,
shopName
:
RushbuyTime
.
shopName
,
shopName
:
RushbuyTime
.
shopName
,
}
}
}
}
}
}
...
@@ -317,7 +381,7 @@
...
@@ -317,7 +381,7 @@
data
.
sProductName
=
title
;
data
.
sProductName
=
title
;
data
.
productId
=
res
.
data
.
couponId
;
data
.
productId
=
res
.
data
.
couponId
;
data
.
dTotalPrice
=
res
.
data
.
preferPrice
;
data
.
dTotalPrice
=
res
.
data
.
preferPrice
;
wx
.
miniProgram
.
getEnv
(
function
(
res
)
{
wx
.
miniProgram
.
getEnv
(
function
(
res
)
{
window
.
wx
.
miniProgram
.
navigateTo
({
window
.
wx
.
miniProgram
.
navigateTo
({
url
:
`/pages/Home/pay/pay?data=`
+
JSON
.
stringify
(
data
),
url
:
`/pages/Home/pay/pay?data=`
+
JSON
.
stringify
(
data
),
});
});
...
@@ -340,7 +404,10 @@
...
@@ -340,7 +404,10 @@
}
else
{
}
else
{
if
(
platform
==
'app'
)
{
if
(
platform
==
'app'
)
{
window
.
postMessage
(
JSON
.
stringify
({
'action'
:
'showToast'
,
'message'
:
res
.
message
}));
window
.
postMessage
(
JSON
.
stringify
({
'action'
:
'showToast'
,
'message'
:
res
.
message
}));
}
else
{
}
else
{
layer
.
msg
(
res
.
message
)
layer
.
msg
(
res
.
message
)
}
}
...
@@ -350,10 +417,12 @@
...
@@ -350,10 +417,12 @@
}
}
},
},
error
:
function
(
res
)
{
error
:
function
(
res
)
{
console
.
log
(
platform
)
console
.
log
(
platform
)
if
(
platform
==
'app'
)
{
if
(
platform
==
'app'
)
{
window
.
postMessage
(
JSON
.
stringify
({
'action'
:
'dismissHud'
}));
window
.
postMessage
(
JSON
.
stringify
({
'action'
:
'dismissHud'
}));
}
else
if
(
platform
==
'H5'
)
{
}
else
if
(
platform
==
'H5'
)
{
layer
.
close
(
loadingFlag
);
layer
.
close
(
loadingFlag
);
}
}
...
@@ -362,4 +431,5 @@
...
@@ -362,4 +431,5 @@
})
})
</script>
</script>
</body>
</body>
</html>
</html>
\ No newline at end of file
js/mian.js
View file @
bcb81382
let
locationName
=
window
.
location
.
hostname
;
let
locationName
=
window
.
location
.
hostname
;
function
getApiUrl
()
{
function
getApiUrl
()
{
let
url
=
{
let
url
=
{
urlPost
:
"https://reborn.oytour.com/api/common/post"
,
urlPost
:
"https://reborn.oytour.com/api/common/post"
,
...
@@ -9,10 +9,11 @@ function getApiUrl() {
...
@@ -9,10 +9,11 @@ function getApiUrl() {
}
}
return
url
return
url
}
}
String
.
prototype
.
myReplace
=
function
(
f
,
e
){
//时间格式化 苹果手机-替换为/
String
.
prototype
.
myReplace
=
function
(
f
,
e
)
{
//时间格式化 苹果手机-替换为/
var
reg
=
new
RegExp
(
f
,
"g"
);
//创建正则RegExp对象
var
reg
=
new
RegExp
(
f
,
"g"
);
//创建正则RegExp对象
return
this
.
replace
(
reg
,
e
);
return
this
.
replace
(
reg
,
e
);
}
}
function
getLocalStorage
()
{
function
getLocalStorage
()
{
var
localStorageData
=
window
.
localStorage
[
"userInfo"
];
var
localStorageData
=
window
.
localStorage
[
"userInfo"
];
if
(
localStorageData
!=
undefined
)
{
if
(
localStorageData
!=
undefined
)
{
...
@@ -21,6 +22,7 @@ function getLocalStorage() {
...
@@ -21,6 +22,7 @@ function getLocalStorage() {
return
null
;
return
null
;
}
}
}
}
function
getLocalStorage2
()
{
function
getLocalStorage2
()
{
var
localStorageData
=
window
.
localStorage
[
"userInfo2"
];
var
localStorageData
=
window
.
localStorage
[
"userInfo2"
];
if
(
localStorageData
!=
undefined
)
{
if
(
localStorageData
!=
undefined
)
{
...
@@ -33,6 +35,7 @@ function getLocalStorage2() {
...
@@ -33,6 +35,7 @@ function getLocalStorage2() {
function
clearLocalStorage
()
{
function
clearLocalStorage
()
{
window
.
localStorage
.
removeItem
(
'userInfo'
)
window
.
localStorage
.
removeItem
(
'userInfo'
)
}
}
function
getAjaxData
(
cmd
,
msg
,
tk
)
{
function
getAjaxData
(
cmd
,
msg
,
tk
)
{
if
(
msg
==
null
||
msg
==
""
)
{
if
(
msg
==
null
||
msg
==
""
)
{
msg
=
{}
msg
=
{}
...
@@ -55,6 +58,7 @@ function getAjaxData(cmd, msg, tk) {
...
@@ -55,6 +58,7 @@ function getAjaxData(cmd, msg, tk) {
}
}
return
JSON
.
stringify
(
postData
)
return
JSON
.
stringify
(
postData
)
}
}
function
getJavaData
(
msg
)
{
function
getJavaData
(
msg
)
{
if
(
msg
==
null
||
msg
==
""
)
{
if
(
msg
==
null
||
msg
==
""
)
{
msg
=
{}
msg
=
{}
...
@@ -64,7 +68,7 @@ function getJavaData(msg) {
...
@@ -64,7 +68,7 @@ function getJavaData(msg) {
let
key
=
""
;
let
key
=
""
;
if
(
getLocalStorage
()
!=
null
)
{
if
(
getLocalStorage
()
!=
null
)
{
token
=
getLocalStorage
().
token
;
token
=
getLocalStorage
().
token
;
key
=
getLocalStorage
().
S
ecretKey
;
key
=
getLocalStorage
().
s
ecretKey
;
}
else
if
(
getLocalStorage2
()
!=
null
)
{
}
else
if
(
getLocalStorage2
()
!=
null
)
{
if
(
getLocalStorage2
()
!=
null
)
{
if
(
getLocalStorage2
()
!=
null
)
{
token
=
getLocalStorage2
().
token
;
token
=
getLocalStorage2
().
token
;
...
...
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