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
Expand all
Hide 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 @@
<meta
name=
"x5-orientation"
content=
"portrait"
>
</meta>
<!-- <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"
/>
<div
id=
'wx_pic'
style=
'margin:0 auto;display:none;'
>
<img
src=
'../images/18logo.png'
/>
...
...
html/Rushbuy.html
View file @
bcb81382
This diff is collapsed.
Click to expand it.
js/mian.js
View file @
bcb81382
let
locationName
=
window
.
location
.
hostname
;
function
getApiUrl
()
{
let
url
=
{
urlPost
:
"https://reborn.oytour.com/api/common/post"
,
//urlPost: locationName.indexOf('oytour') !== -1 ? "http://reborn.oytour.com/api/common/post" : "http://192.168.2.214:8082/api/common/post",
//urlJava: locationName.indexOf('oytour') !== -1 ? "https://efficient.oytour.com/" : "http://192.168.2.215:9000/"
urlJava
:
"https://efficient.oytour.com/"
}
return
url
let
url
=
{
urlPost
:
"https://reborn.oytour.com/api/common/post"
,
//urlPost: locationName.indexOf('oytour') !== -1 ? "http://reborn.oytour.com/api/common/post" : "http://192.168.2.214:8082/api/common/post",
//urlJava: locationName.indexOf('oytour') !== -1 ? "https://efficient.oytour.com/" : "http://192.168.2.215:9000/"
urlJava
:
"https://efficient.oytour.com/"
}
return
url
}
String
.
prototype
.
myReplace
=
function
(
f
,
e
){
//时间格式化 苹果手机-替换为/
var
reg
=
new
RegExp
(
f
,
"g"
);
//创建正则RegExp对象
return
this
.
replace
(
reg
,
e
);
String
.
prototype
.
myReplace
=
function
(
f
,
e
)
{
//时间格式化 苹果手机-替换为/
var
reg
=
new
RegExp
(
f
,
"g"
);
//创建正则RegExp对象
return
this
.
replace
(
reg
,
e
);
}
function
getLocalStorage
()
{
var
localStorageData
=
window
.
localStorage
[
"userInfo"
];
if
(
localStorageData
!=
undefined
)
{
return
JSON
.
parse
(
localStorageData
);
}
else
{
return
null
;
}
var
localStorageData
=
window
.
localStorage
[
"userInfo"
];
if
(
localStorageData
!=
undefined
)
{
return
JSON
.
parse
(
localStorageData
);
}
else
{
return
null
;
}
}
function
getLocalStorage2
()
{
var
localStorageData
=
window
.
localStorage
[
"userInfo2"
];
if
(
localStorageData
!=
undefined
)
{
return
JSON
.
parse
(
localStorageData
);
}
else
{
return
null
;
}
var
localStorageData
=
window
.
localStorage
[
"userInfo2"
];
if
(
localStorageData
!=
undefined
)
{
return
JSON
.
parse
(
localStorageData
);
}
else
{
return
null
;
}
}
function
clearLocalStorage
()
{
window
.
localStorage
.
removeItem
(
'userInfo'
)
window
.
localStorage
.
removeItem
(
'userInfo'
)
}
function
getAjaxData
(
cmd
,
msg
,
tk
)
{
if
(
msg
==
null
||
msg
==
""
)
{
msg
=
{}
}
let
timestamp
=
(
new
Date
()).
valueOf
();
let
token
=
""
;
let
key
=
""
;
if
(
getLocalStorage
()
!=
null
)
{
token
=
getLocalStorage
().
token
;
key
=
getLocalStorage
().
secretKey
;
}
let
encodeMsg
=
encodeURIComponent
(
JSON
.
stringify
(
msg
)).
toLowerCase
();
let
md5Str
=
hex_md5
(
`cmd=
${
cmd
}
&msg=
${
encodeMsg
}
×tamp=
${
timestamp
}
&token=
${
token
}
&key=
${
key
}
`
);
let
postData
=
{
"msg"
:
msg
,
"cmd"
:
cmd
,
"timestamp"
:
timestamp
,
"token"
:
tk
?
tk
:
token
,
"sign"
:
md5Str
}
return
JSON
.
stringify
(
postData
)
if
(
msg
==
null
||
msg
==
""
)
{
msg
=
{}
}
let
timestamp
=
(
new
Date
()).
valueOf
();
let
token
=
""
;
let
key
=
""
;
if
(
getLocalStorage
()
!=
null
)
{
token
=
getLocalStorage
().
token
;
key
=
getLocalStorage
().
secretKey
;
}
let
encodeMsg
=
encodeURIComponent
(
JSON
.
stringify
(
msg
)).
toLowerCase
();
let
md5Str
=
hex_md5
(
`cmd=
${
cmd
}
&msg=
${
encodeMsg
}
×tamp=
${
timestamp
}
&token=
${
token
}
&key=
${
key
}
`
);
let
postData
=
{
"msg"
:
msg
,
"cmd"
:
cmd
,
"timestamp"
:
timestamp
,
"token"
:
tk
?
tk
:
token
,
"sign"
:
md5Str
}
return
JSON
.
stringify
(
postData
)
}
function
getJavaData
(
msg
)
{
if
(
msg
==
null
||
msg
==
""
)
{
msg
=
{}
}
let
timestamp
=
(
new
Date
()).
valueOf
();
let
token
=
""
;
let
key
=
""
;
if
(
getLocalStorage
()
!=
null
)
{
token
=
getLocalStorage
().
token
;
key
=
getLocalStorage
().
S
ecretKey
;
}
else
if
(
getLocalStorage2
()
!=
null
)
{
if
(
getLocalStorage2
()
!=
null
)
{
token
=
getLocalStorage2
().
token
;
key
=
getLocalStorage2
().
secretKey
;
}
}
let
userInfo
=
localStorage
.
userInfo
?
JSON
.
parse
(
localStorage
.
userInfo
)
:
JSON
.
parse
(
localStorage
.
userInfo2
)
?
JSON
.
parse
(
localStorage
.
userInfo2
)
:
''
let
uid
=
userInfo
.
accountId
?
userInfo
.
accountId
:
0
let
encodeMsg
=
encodeURIComponent
(
JSON
.
stringify
(
msg
)).
toLowerCase
();
let
md5Str
=
hex_md5
(
`msg=
${
encodeMsg
}
×tamp=
${
timestamp
}
&token=
${
token
}
&key=
${
key
}
`
);
let
postData
=
{
"groupId"
:
2
,
"msg"
:
msg
,
"uid"
:
uid
,
"timestamp"
:
timestamp
,
"token"
:
token
,
"sign"
:
md5Str
}
return
JSON
.
stringify
(
postData
)
if
(
msg
==
null
||
msg
==
""
)
{
msg
=
{}
}
let
timestamp
=
(
new
Date
()).
valueOf
();
let
token
=
""
;
let
key
=
""
;
if
(
getLocalStorage
()
!=
null
)
{
token
=
getLocalStorage
().
token
;
key
=
getLocalStorage
().
s
ecretKey
;
}
else
if
(
getLocalStorage2
()
!=
null
)
{
if
(
getLocalStorage2
()
!=
null
)
{
token
=
getLocalStorage2
().
token
;
key
=
getLocalStorage2
().
secretKey
;
}
}
let
userInfo
=
localStorage
.
userInfo
?
JSON
.
parse
(
localStorage
.
userInfo
)
:
JSON
.
parse
(
localStorage
.
userInfo2
)
?
JSON
.
parse
(
localStorage
.
userInfo2
)
:
''
let
uid
=
userInfo
.
accountId
?
userInfo
.
accountId
:
0
let
encodeMsg
=
encodeURIComponent
(
JSON
.
stringify
(
msg
)).
toLowerCase
();
let
md5Str
=
hex_md5
(
`msg=
${
encodeMsg
}
×tamp=
${
timestamp
}
&token=
${
token
}
&key=
${
key
}
`
);
let
postData
=
{
"groupId"
:
2
,
"msg"
:
msg
,
"uid"
:
uid
,
"timestamp"
:
timestamp
,
"token"
:
token
,
"sign"
:
md5Str
}
return
JSON
.
stringify
(
postData
)
}
function
getJavaA
(
msg
,
tk
)
{
...
...
@@ -110,4 +114,4 @@ function getJavaA(msg, tk) {
"uid"
:
uid
,
}
return
JSON
.
stringify
(
postData
)
}
}
\ No newline at end of file
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