Commit e7b99c09 authored by Mac's avatar Mac

修改接口的调取失败的情况

parent 2d10fdfe
......@@ -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=542342342"></script>
<script src="../js/jquery.dataStatistics.js?r=efa542342342"></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>
......@@ -503,18 +503,33 @@
add: true
}); //刚进入页面不执行动画
if (platform == 'app') {
window.postMessage(JSON.stringify({
'action': 'showToast',
'message': '请求人数过多,请返回再次进入!'
}));
} else {
layer.msg('请求人数过多,请返回再次进入!');
}
}
// clearInterval(xhtime)
},
error: function(res) {
layer.msg(res.message)
$('.dataStatistics').dataStatistics({
max: 0,
min: 0,
len: 4,
add: true
}); //刚进入页面不执行动画
if (platform == 'app') {
window.postMessage(JSON.stringify({
'action': 'showToast',
'message': '请求人数过多,请返回再次进入!'
}));
} else {
layer.msg('请求人数过多,请返回再次进入!');
}
}
});
......
......@@ -404,8 +404,11 @@
'message': res.message
}));
} else {
layer.msg(res.message)
location.href = 'https://activity.oytour.com/html/login.html'
layer.msg('登录已过期,请重新登录');
setTimeout(function() {
localStorage.removeItem("u");
window.location.href = 'https://activity.oytour.com/html/login.html';
}, 2000)
}
// window.location.reload()
......@@ -419,8 +422,11 @@
'action': 'dismissHud'
}));
} else if (platform == 'H5') {
layer.close(loadingFlag);
location.href = 'https://activity.oytour.com/html/login.html?r=123123123'
layer.msg('登录已过期,请重新登录');
setTimeout(function() {
localStorage.removeItem("u");
window.location.href = 'https://activity.oytour.com/html/login.html?r=uj23123';
}, 2000)
}
}
});
......
......@@ -289,7 +289,7 @@ $.fn.dataStatistics = function(options) {
// }
// localStorage.buyInfo = JSON.stringify(buyInfo)
window.location.href = `https://activity.oytour.com/html/Rushbuy.html?redemptionPrice=${options.price}&couponId=${options.couponId}&platform=${options.platform}&r=123123123123`;
window.location.href = `https://activity.oytour.com/html/Rushbuy.html?redemptionPrice=${options.price}&couponId=${options.couponId}&platform=${options.platform}&r=ef123123123123`;
//window.location.href = `./Rushbuy.html?redemptionPrice=${options.price}&couponId=${options.couponId}&platform=${options.platform}`;
} else {
let data = {
......
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