Commit 478213bc authored by Mac's avatar Mac

1

parent 4e7e85f6
......@@ -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>
......
......@@ -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分钟请求一次接口
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment