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
478213bc
Commit
478213bc
authored
Nov 18, 2019
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
4e7e85f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
26 deletions
+8
-26
GT_activities.html
html/GT_activities.html
+1
-1
jquery.dataStatistics.js
js/jquery.dataStatistics.js
+7
-25
No files found.
html/GT_activities.html
View file @
478213bc
...
...
@@ -169,7 +169,7 @@
<!--<script type="text/javascript" src="js/countdown.js"></script>-->
<script
type=
"text/javascript"
src=
"../js/md5.js"
></script>
<script
type=
"text/javascript"
src=
"../js/mian.js"
></script>
<script
src=
"../js/jquery.dataStatistics.js?r=
yerpi677342
"
></script>
<script
src=
"../js/jquery.dataStatistics.js?r=
bnm87665
"
></script>
<script
type=
"text/javascript"
src=
"https://res.wx.qq.com/open/js/jweixin-1.3.2.js"
></script>
<script
type=
"text/javascript"
src=
"../js/layer/layer.js"
></script>
<script
type=
"text/javascript"
src=
"../js/yql.js"
></script>
...
...
js/jquery.dataStatistics.js
View file @
478213bc
...
...
@@ -162,6 +162,8 @@ $.fn.dataStatistics = function(options) {
if
(
num
>
5
)
{
$
(
'.digit_set'
).
empty
()
clearInterval
(
timer2
);
clearInterval
(
timer3
);
$
(
'.dataStatistics'
).
dataStatistics
({
max
:
nownumber
,
min
:
nownumber
,
...
...
@@ -183,6 +185,8 @@ $.fn.dataStatistics = function(options) {
}
else
if
(
num
<
0
)
{
$
(
'.digit_set'
).
empty
()
clearInterval
(
timer2
);
clearInterval
(
timer3
);
$
(
'.dataStatistics'
).
dataStatistics
({
max
:
nownumber
,
min
:
nownumber
,
...
...
@@ -254,6 +258,7 @@ $.fn.dataStatistics = function(options) {
}
}
}
}
else
{
...
...
@@ -273,27 +278,6 @@ $.fn.dataStatistics = function(options) {
$
(
'.img_btn'
).
click
(
function
()
{
// let userInfo = JSON.parse(localStorage.userInfo)
// if(userInfo.accountId && userInfo.accountId == '1182'){ //如果为唐杰的号直接跳转
// if (options.count != 0) { //判断是可以抢购
// window.location.href = `https://activity.oytour.com/html/Rushbuy.html?redemptionPrice=${options.price}&couponId=${options.couponId}&platform=${options.platform}`;
// } else {
// let data = {
// 'action': 'jump', // showToast->一个提示信息 showHud->一个黑色的loading
// 'page': 'teamWalker_2',
// 'pageData': {
// 'backType': 'pop',
// }
// }
// if (options.platform == 'app') {
// window.postMessage(JSON.stringify(data));
// } else if (options.platform == 'H5') {
// window.location.href = 'https://activity.oytour.com/html/downloadApp.html'
// }
//
// }
//
// }else {
if
(
$
(
'.img_btn p'
).
css
(
'color'
)
==
'rgb(224, 50, 52)'
)
{
//判断按钮是否可以点击
if
(
options
.
login
==
true
)
{
...
...
@@ -342,11 +326,9 @@ $.fn.dataStatistics = function(options) {
}
}
// }
})
//页面所有数据请求一次 5分钟来一次
//页面所有数据请求一次 5分钟来一次
var
timer3
=
setInterval
(()
=>
{
clearInterval
(
timer2
);
clearInterval
(
timer3
);
...
...
@@ -531,6 +513,6 @@ $.fn.dataStatistics = function(options) {
}
});
},
300000
)
//5分钟请求一次接口
};
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