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
236ef2b0
Commit
236ef2b0
authored
5 years ago
by
Mac
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/huaguohao/surprised
parents
937a6b04
3f0bd2c8
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
20 additions
and
21 deletions
+20
-21
GT_activities.html
html/GT_activities.html
+6
-6
coupons.html
html/coupons.html
+2
-2
login.html
html/login.html
+3
-4
pay.html
html/pay.html
+4
-4
paySuccess.html
html/paySuccess.html
+1
-1
jquery.dataStatistics.js
js/jquery.dataStatistics.js
+1
-1
mian.js
js/mian.js
+3
-3
No files found.
html/GT_activities.html
View file @
236ef2b0
...
@@ -180,10 +180,10 @@
...
@@ -180,10 +180,10 @@
try
{
try
{
userInfo
=
JSON
.
parse
(
localStorage
.
u
);
userInfo
=
JSON
.
parse
(
localStorage
.
u
);
if
(
!
userInfo
.
customerId
)
{
if
(
!
userInfo
.
customerId
)
{
window
.
location
.
href
=
'http://activity.oytour.com/html/login.html'
;
window
.
location
.
href
=
'http
s
://activity.oytour.com/html/login.html'
;
}
}
}
catch
(
e
)
{
}
catch
(
e
)
{
window
.
location
.
href
=
'http://activity.oytour.com/html/login.html'
;
window
.
location
.
href
=
'http
s
://activity.oytour.com/html/login.html'
;
}
}
}
else
{
}
else
{
// 如果进入页面没有登录的参数 处理跳到h5页面登录
// 如果进入页面没有登录的参数 处理跳到h5页面登录
...
@@ -191,10 +191,10 @@
...
@@ -191,10 +191,10 @@
if
(
href
.
split
(
'?'
)[
1
].
indexOf
(
'customerId'
)
==
-
1
||
href
.
split
(
'?'
)[
1
].
indexOf
(
'accountId'
)
==
-
1
||
if
(
href
.
split
(
'?'
)[
1
].
indexOf
(
'customerId'
)
==
-
1
||
href
.
split
(
'?'
)[
1
].
indexOf
(
'accountId'
)
==
-
1
||
href
.
split
(
'?'
)[
1
].
indexOf
(
'token'
)
==
-
1
||
href
.
split
(
'?'
)[
1
].
indexOf
(
'secretKey'
)
==
-
1
||
href
.
split
(
'?'
)[
1
].
indexOf
(
'token'
)
==
-
1
||
href
.
split
(
'?'
)[
1
].
indexOf
(
'secretKey'
)
==
-
1
||
href
.
split
(
'?'
)[
1
].
indexOf
(
'platform'
)
==
-
1
)
{
href
.
split
(
'?'
)[
1
].
indexOf
(
'platform'
)
==
-
1
)
{
window
.
location
.
href
=
'http://activity.oytour.com/html/login.html'
;
window
.
location
.
href
=
'http
s
://activity.oytour.com/html/login.html'
;
}
}
}
else
{
}
else
{
window
.
location
.
href
=
'http://activity.oytour.com/html/login.html'
;
window
.
location
.
href
=
'http
s
://activity.oytour.com/html/login.html'
;
}
}
...
@@ -466,7 +466,7 @@
...
@@ -466,7 +466,7 @@
url_openid
=
encodeURIComponent
(
url_openid
);
url_openid
=
encodeURIComponent
(
url_openid
);
$
.
ajax
({
$
.
ajax
({
type
:
"GET"
,
type
:
"GET"
,
url
:
'http://reborn.oytour.com/api/test/GetHtmlByUrl?urlStr='
+
url_openid
,
url
:
'http
s
://reborn.oytour.com/api/test/GetHtmlByUrl?urlStr='
+
url_openid
,
async
:
false
,
async
:
false
,
success
:
function
(
res
)
{
success
:
function
(
res
)
{
if
(
res
)
{
if
(
res
)
{
...
@@ -508,7 +508,7 @@
...
@@ -508,7 +508,7 @@
}
}
//跳转到h5优惠券
//跳转到h5优惠券
if
(
platform
==
'H5'
)
{
if
(
platform
==
'H5'
)
{
window
.
location
.
href
=
'http://activity.oytour.com/html/coupons.html'
;
window
.
location
.
href
=
'http
s
://activity.oytour.com/html/coupons.html'
;
}
}
})
})
//点击隐藏提示
//点击隐藏提示
...
...
This diff is collapsed.
Click to expand it.
html/coupons.html
View file @
236ef2b0
...
@@ -519,7 +519,7 @@
...
@@ -519,7 +519,7 @@
layer
.
msg
(
'登录已过期,请重新登录'
);
layer
.
msg
(
'登录已过期,请重新登录'
);
setTimeout
(
function
(){
setTimeout
(
function
(){
localStorage
.
removeItem
(
"u"
);
localStorage
.
removeItem
(
"u"
);
window
.
location
.
href
=
'http://activity.oytour.com/html/login.html'
;
window
.
location
.
href
=
'http
s
://activity.oytour.com/html/login.html'
;
},
2000
)
},
2000
)
}
}
},
},
...
@@ -534,7 +534,7 @@
...
@@ -534,7 +534,7 @@
}
}
//跳转至下载
//跳转至下载
function
goDownLoad
(){
function
goDownLoad
(){
window
.
location
.
href
=
'http://activity.oytour.com/html/downloadApp.html'
;
window
.
location
.
href
=
'http
s
://activity.oytour.com/html/downloadApp.html'
;
}
}
</script>
</script>
</html>
</html>
This diff is collapsed.
Click to expand it.
html/login.html
View file @
236ef2b0
...
@@ -336,10 +336,10 @@
...
@@ -336,10 +336,10 @@
try
{
try
{
userInfo
=
JSON
.
parse
(
localStorage
.
u
);
userInfo
=
JSON
.
parse
(
localStorage
.
u
);
if
(
userInfo
.
customerId
){
if
(
userInfo
.
customerId
){
window
.
location
.
href
=
'http://activity.oytour.com/html/GT_activities.html'
;
window
.
location
.
href
=
'http
s
://activity.oytour.com/html/GT_activities.html'
;
}
}
}
catch
(
e
)
{
}
catch
(
e
)
{
window
.
location
.
href
=
'http://activity.oytour.com/html/login.html'
;
window
.
location
.
href
=
'http
s
://activity.oytour.com/html/login.html'
;
}
}
}
}
//跳转至激活
//跳转至激活
...
@@ -399,8 +399,7 @@
...
@@ -399,8 +399,7 @@
secretKey
:
res
.
data
.
secretKey
,
secretKey
:
res
.
data
.
secretKey
,
}
}
localStorage
.
u
=
JSON
.
stringify
(
userInfo
)
localStorage
.
u
=
JSON
.
stringify
(
userInfo
)
window
.
location
.
href
=
'https://activity.oytour.com/html/GT_activities.html'
;
window
.
location
.
href
=
'http://activity.oytour.com/html/GT_activities.html'
;
//window.location.href='http://127.0.0.1:5500/html/GT_activities.html';
//window.location.href='http://127.0.0.1:5500/html/GT_activities.html';
}
else
{
}
else
{
layer
.
msg
(
res
.
message
);
layer
.
msg
(
res
.
message
);
...
...
This diff is collapsed.
Click to expand it.
html/pay.html
View file @
236ef2b0
...
@@ -230,11 +230,11 @@
...
@@ -230,11 +230,11 @@
return
result
;
return
result
;
};
};
function
goActive
(){
function
goActive
(){
window
.
location
.
href
=
'http://activity.oytour.com/html/GT_activities.html'
;
window
.
location
.
href
=
'http
s
://activity.oytour.com/html/GT_activities.html'
;
}
}
function
pay
()
{
function
pay
()
{
if
(
!
localStorage
.
openid
)
{
if
(
!
localStorage
.
openid
)
{
window
.
location
.
href
=
'http://activity.oytour.com/html/GT_activities.html'
;
window
.
location
.
href
=
'http
s
://activity.oytour.com/html/GT_activities.html'
;
}
}
if
(
!
payBtn
)
{
if
(
!
payBtn
)
{
layer
.
msg
(
'您已经超出支付时间!'
);
layer
.
msg
(
'您已经超出支付时间!'
);
...
@@ -253,7 +253,7 @@
...
@@ -253,7 +253,7 @@
}
}
$
.
ajax
({
$
.
ajax
({
type
:
"POST"
,
type
:
"POST"
,
url
:
`http://reborn.oytour.com/api/WeChatNotify/DoPay?sOrderNo=
${
payMsg
.
sOrderNo
}
&sCurOpenID=
${
localStorage
.
openid
}
`
,
url
:
`http
s
://reborn.oytour.com/api/WeChatNotify/DoPay?sOrderNo=
${
payMsg
.
sOrderNo
}
&sCurOpenID=
${
localStorage
.
openid
}
`
,
contentType
:
"application/json"
,
contentType
:
"application/json"
,
async
:
false
,
async
:
false
,
success
:
function
(
res
)
{
success
:
function
(
res
)
{
...
@@ -294,7 +294,7 @@
...
@@ -294,7 +294,7 @@
if
(
res
.
err_msg
==
"get_brand_wcpay_request:ok"
)
{
if
(
res
.
err_msg
==
"get_brand_wcpay_request:ok"
)
{
// 使用以上方式判断前端返回,微信团队郑重提示:
// 使用以上方式判断前端返回,微信团队郑重提示:
//res.err_msg将在用户支付成功后返回ok,但并不保证它绝对可靠。
//res.err_msg将在用户支付成功后返回ok,但并不保证它绝对可靠。
window
.
location
.
href
=
'http://activity.oytour.com/html/paySuccess.html'
;
window
.
location
.
href
=
'http
s
://activity.oytour.com/html/paySuccess.html'
;
}
}
});
});
}
}
...
...
This diff is collapsed.
Click to expand it.
html/paySuccess.html
View file @
236ef2b0
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
<script>
<script>
function
goDetail
(){
function
goDetail
(){
//window.location.href = 'http://192.168.0.117:5500/html/coupons.html';
//window.location.href = 'http://192.168.0.117:5500/html/coupons.html';
window
.
location
.
href
=
'http://activity.oytour.com/html/coupons.html'
;
window
.
location
.
href
=
'http
s
://activity.oytour.com/html/coupons.html'
;
}
}
</script>
</script>
</html>
</html>
This diff is collapsed.
Click to expand it.
js/jquery.dataStatistics.js
View file @
236ef2b0
...
@@ -287,7 +287,7 @@ $.fn.dataStatistics = function(options) {
...
@@ -287,7 +287,7 @@ $.fn.dataStatistics = function(options) {
sessionStorage
.
setItem
(
"payInfo"
,
JSON
.
stringify
(
data
));
sessionStorage
.
setItem
(
"payInfo"
,
JSON
.
stringify
(
data
));
//window.location.href = 'https://127.0.0.1:5500/html/pay.html';
//window.location.href = 'https://127.0.0.1:5500/html/pay.html';
//window.location.href = 'http://192.168.0.117:5500/html/pay.html';
//window.location.href = 'http://192.168.0.117:5500/html/pay.html';
window
.
location
.
href
=
'http://activity.oytour.com/html/pay.html'
;
window
.
location
.
href
=
'http
s
://activity.oytour.com/html/pay.html'
;
}
}
...
...
This diff is collapsed.
Click to expand it.
js/mian.js
View file @
236ef2b0
...
@@ -2,11 +2,10 @@
...
@@ -2,11 +2,10 @@
let
locationName
=
window
.
location
.
hostname
;
let
locationName
=
window
.
location
.
hostname
;
function
getApiUrl
()
{
function
getApiUrl
()
{
let
url
=
{
let
url
=
{
urlPost
:
"http://reborn.oytour.com/api/common/post"
,
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",
//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: locationName.indexOf('oytour') !== -1 ? "https://efficient.oytour.com/" : "http://192.168.2.215:9000/"
urlJava
:
"http://efficient.oytour.com/"
urlJava
:
"http
s
://efficient.oytour.com/"
}
}
return
url
return
url
}
}
...
@@ -30,6 +29,7 @@ function getLocalStorage2() {
...
@@ -30,6 +29,7 @@ function getLocalStorage2() {
return
null
;
return
null
;
}
}
}
}
function
clearLocalStorage
()
{
function
clearLocalStorage
()
{
window
.
localStorage
.
removeItem
(
'userInfo'
)
window
.
localStorage
.
removeItem
(
'userInfo'
)
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment