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
da4d1636
Commit
da4d1636
authored
Nov 14, 2019
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
张
parent
7b165dbc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
24 deletions
+22
-24
GT_activities.html
html/GT_activities.html
+2
-4
jquery.dataStatistics.js
js/jquery.dataStatistics.js
+20
-20
No files found.
html/GT_activities.html
View file @
da4d1636
...
@@ -236,7 +236,7 @@
...
@@ -236,7 +236,7 @@
var
ua
=
navigator
.
userAgent
.
toLowerCase
();
var
ua
=
navigator
.
userAgent
.
toLowerCase
();
if
(
platform
==
'H5'
&&
ua
.
match
(
/MicroMessenger/i
)
!=
"micromessenger"
)
{
if
(
platform
==
'H5'
&&
ua
.
match
(
/MicroMessenger/i
)
!=
"micromessenger"
)
{
//
$('.wx_bg').css('display', "block");
$
(
'.wx_bg'
).
css
(
'display'
,
"block"
);
}
else
if
(
platform
==
'H5'
)
{
}
else
if
(
platform
==
'H5'
)
{
this
.
initOpenid
()
this
.
initOpenid
()
}
}
...
@@ -249,10 +249,7 @@
...
@@ -249,10 +249,7 @@
$
(
'.app_share'
).
css
(
'display'
,
"block"
);
$
(
'.app_share'
).
css
(
'display'
,
"block"
);
}
}
if
(
login
==
false
){
$
(
'.click_use p'
).
html
(
'立即登录'
);
}
$
.
ajax
({
$
.
ajax
({
...
@@ -561,6 +558,7 @@
...
@@ -561,6 +558,7 @@
window
.
location
.
href
=
'https://activity.oytour.com/html/coupons.html'
;
window
.
location
.
href
=
'https://activity.oytour.com/html/coupons.html'
;
}
}
}
else
{
// 没登录去登录页面登录
}
else
{
// 没登录去登录页面登录
$
(
'.click_use p'
).
html
(
'立即登录'
);
window
.
location
.
href
=
'https://activity.oytour.com/html/login.html'
window
.
location
.
href
=
'https://activity.oytour.com/html/login.html'
// window.location.href = './login.html'
// window.location.href = './login.html'
}
}
...
...
js/jquery.dataStatistics.js
View file @
da4d1636
...
@@ -262,30 +262,30 @@ $.fn.dataStatistics = function(options) {
...
@@ -262,30 +262,30 @@ $.fn.dataStatistics = function(options) {
if
(
$
(
'.img_btn p'
).
css
(
'color'
)
==
'rgb(224, 50, 52)'
)
{
//判断按钮是否可以点击
if
(
$
(
'.img_btn p'
).
css
(
'color'
)
==
'rgb(224, 50, 52)'
)
{
//判断按钮是否可以点击
if
(
options
.
login
==
true
){
if
(
options
.
login
==
true
){
if
(
options
.
count
!=
0
)
{
//判断是可以抢购
if
(
options
.
count
!=
0
)
{
//判断是可以抢购
let
buyInfo
=
{
let
buyInfo
=
{
redemptionPrice
:
options
.
price
,
redemptionPrice
:
options
.
price
,
couponId
:
options
.
couponId
,
couponId
:
options
.
couponId
,
platform
:
options
.
platform
,
platform
:
options
.
platform
,
}
}
localStorage
.
buyInfo
=
JSON
.
stringify
(
buyInfo
)
localStorage
.
buyInfo
=
JSON
.
stringify
(
buyInfo
)
window
.
location
.
href
=
'https://activity.oytour.com/html/Rushbuy.html'
;
window
.
location
.
href
=
'https://activity.oytour.com/html/Rushbuy.html'
;
// window.location.href = './Rushbuy.html' ;
// window.location.href = './Rushbuy.html' ;
}
else
{
}
else
{
let
data
=
{
let
data
=
{
'action'
:
'jump'
,
// showToast->一个提示信息 showHud->一个黑色的loading
'action'
:
'jump'
,
// showToast->一个提示信息 showHud->一个黑色的loading
'page'
:
'teamWalker_2'
,
'page'
:
'teamWalker_2'
,
'pageData'
:
{
'pageData'
:
{
'backType'
:
'pop'
,
'backType'
:
'pop'
,
}
}
if
(
options
.
platform
==
'app'
)
{
window
.
postMessage
(
JSON
.
stringify
(
data
));
}
}
}
if
(
options
.
platform
==
'app'
)
{
window
.
postMessage
(
JSON
.
stringify
(
data
));
}
}
}
}
else
{
}
else
{
window
.
location
.
href
=
'https://activity.oytour.com/html/login.html'
window
.
location
.
href
=
'https://activity.oytour.com/html/login.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