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
5fbccdad
Commit
5fbccdad
authored
Nov 13, 2019
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
f3214ad1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
16 deletions
+16
-16
GT_activities.html
html/GT_activities.html
+7
-7
coupons.html
html/coupons.html
+1
-1
login.html
html/login.html
+3
-3
pay.html
html/pay.html
+2
-2
paySuccess.html
html/paySuccess.html
+1
-1
jquery.dataStatistics.js
js/jquery.dataStatistics.js
+2
-2
No files found.
html/GT_activities.html
View file @
5fbccdad
...
...
@@ -161,7 +161,7 @@
<script>
// let href = window.location.href;
let
href
=
'http://127.0.0.1:5500/html/GT_activities.html?customerId=1549&accountId=1182&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE1NzM0NjY2NjMuMCwiZXhwIjoxNTczNTUzMDYzLjAsInVzZXJJbmZvIjp7InVpZCI6IjExODIiLCJyZXF1ZXN0RnJvbSI6NH19.hX2b2MqSWYmWS0k3YsthxW-T6UxarIm5rdbqCVQtxdQ&secretKey=5d5e16254bd741c486fe2b83b42171d2&platform=app'
;
let
href
=
'http
s
://127.0.0.1:5500/html/GT_activities.html?customerId=1549&accountId=1182&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE1NzM0NjY2NjMuMCwiZXhwIjoxNTczNTUzMDYzLjAsInVzZXJJbmZvIjp7InVpZCI6IjExODIiLCJyZXF1ZXN0RnJvbSI6NH19.hX2b2MqSWYmWS0k3YsthxW-T6UxarIm5rdbqCVQtxdQ&secretKey=5d5e16254bd741c486fe2b83b42171d2&platform=app'
;
let
userInfo
=
{};
let
platform
=
"H5"
;
...
...
@@ -169,10 +169,10 @@
try
{
userInfo
=
JSON
.
parse
(
localStorage
.
u
);
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
)
{
window
.
location
.
href
=
'http://activity.oytour.com/html/login.html'
;
window
.
location
.
href
=
'http
s
://activity.oytour.com/html/login.html'
;
}
}
else
{
// 如果进入页面没有登录的参数 处理跳到h5页面登录
...
...
@@ -180,10 +180,10 @@
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
(
'platform'
)
==
-
1
)
{
window
.
location
.
href
=
'http://activity.oytour.com/html/login.html'
;
window
.
location
.
href
=
'http
s
://activity.oytour.com/html/login.html'
;
}
}
else
{
window
.
location
.
href
=
'http://activity.oytour.com/html/login.html'
;
window
.
location
.
href
=
'http
s
://activity.oytour.com/html/login.html'
;
}
...
...
@@ -450,7 +450,7 @@
url_openid
=
encodeURIComponent
(
url_openid
);
$
.
ajax
({
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
,
success
:
function
(
res
)
{
if
(
res
)
{
...
...
@@ -492,7 +492,7 @@
}
//跳转到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'
;
}
})
//点击隐藏提示
...
...
html/coupons.html
View file @
5fbccdad
...
...
@@ -530,7 +530,7 @@
}
//跳转至下载
function
goDownLoad
(){
window
.
location
.
href
=
'http://activity.oytour.com/html/downloadApp.html'
;
window
.
location
.
href
=
'http
s
://activity.oytour.com/html/downloadApp.html'
;
}
</script>
</html>
html/login.html
View file @
5fbccdad
...
...
@@ -336,10 +336,10 @@
try
{
userInfo
=
JSON
.
parse
(
localStorage
.
u
);
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
)
{
window
.
location
.
href
=
'http://activity.oytour.com/html/login.html'
;
window
.
location
.
href
=
'http
s
://activity.oytour.com/html/login.html'
;
}
}
//跳转至激活
...
...
@@ -400,7 +400,7 @@
}
localStorage
.
u
=
JSON
.
stringify
(
userInfo
)
window
.
location
.
href
=
'http://activity.oytour.com/html/GT_activities.html'
;
window
.
location
.
href
=
'http
s
://activity.oytour.com/html/GT_activities.html'
;
//window.location.href='http://127.0.0.1:5500/html/GT_activities.html';
}
else
{
layer
.
msg
(
res
.
message
);
...
...
html/pay.html
View file @
5fbccdad
...
...
@@ -229,7 +229,7 @@
function
pay
()
{
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
)
{
layer
.
msg
(
'您已经超出支付时间!'
);
...
...
@@ -288,7 +288,7 @@
if
(
res
.
err_msg
==
"get_brand_wcpay_request: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'
;
}
});
}
...
...
html/paySuccess.html
View file @
5fbccdad
...
...
@@ -64,7 +64,7 @@
<script>
function
goDetail
(){
//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>
</html>
js/jquery.dataStatistics.js
View file @
5fbccdad
...
...
@@ -222,7 +222,7 @@ $.fn.dataStatistics = function(options) {
window
.
postMessage
(
JSON
.
stringify
({
'action'
:
'showHud'
,
'message'
:
'抢购中...'
}));
}
if
(
options
.
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
({
type
:
"POST"
,
...
...
@@ -287,7 +287,7 @@ $.fn.dataStatistics = function(options) {
sessionStorage
.
setItem
(
"payInfo"
,
JSON
.
stringify
(
data
));
//window.location.href = 'http://127.0.0.1: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'
;
}
...
...
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