Commit e7b99c09 authored by Mac's avatar Mac

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

parent 2d10fdfe
...@@ -169,7 +169,7 @@ ...@@ -169,7 +169,7 @@
<!--<script type="text/javascript" src="js/countdown.js"></script>--> <!--<script type="text/javascript" src="js/countdown.js"></script>-->
<script type="text/javascript" src="../js/md5.js"></script> <script type="text/javascript" src="../js/md5.js"></script>
<script type="text/javascript" src="../js/mian.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="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/layer/layer.js"></script>
<script type="text/javascript" src="../js/yql.js"></script> <script type="text/javascript" src="../js/yql.js"></script>
...@@ -503,18 +503,33 @@ ...@@ -503,18 +503,33 @@
add: true add: true
}); //刚进入页面不执行动画 }); //刚进入页面不执行动画
if (platform == 'app') {
window.postMessage(JSON.stringify({
'action': 'showToast',
'message': '请求人数过多,请返回再次进入!'
}));
} else {
layer.msg('请求人数过多,请返回再次进入!');
}
} }
// clearInterval(xhtime) // clearInterval(xhtime)
}, },
error: function(res) { error: function(res) {
layer.msg(res.message)
$('.dataStatistics').dataStatistics({ $('.dataStatistics').dataStatistics({
max: 0, max: 0,
min: 0, min: 0,
len: 4, len: 4,
add: true add: true
}); //刚进入页面不执行动画 }); //刚进入页面不执行动画
if (platform == 'app') {
window.postMessage(JSON.stringify({
'action': 'showToast',
'message': '请求人数过多,请返回再次进入!'
}));
} else {
layer.msg('请求人数过多,请返回再次进入!');
}
} }
}); });
...@@ -704,4 +719,4 @@ ...@@ -704,4 +719,4 @@
</script> </script>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
.main { .main {
width: 100%; width: 100%;
height: 100%; height: 100%;
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
position: relative; position: relative;
overflow: hidden; overflow: hidden;
} }
.main .box { .main .box {
position: relative; position: relative;
top: 40%; top: 40%;
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
top: 40%; top: 40%;
opacity: 1; opacity: 1;
} }
.main .box.move { .main .box.move {
top: 40%; top: 40%;
opacity: 1; opacity: 1;
...@@ -45,11 +45,11 @@ ...@@ -45,11 +45,11 @@
-webkit-transition: all linear .5s; -webkit-transition: all linear .5s;
-o-transition: all linear .5s; -o-transition: all linear .5s;
} */ } */
.main .box .hongbao { .main .box .hongbao {
width: 80%; width: 80%;
} }
.main .box .anniu { .main .box .anniu {
width: 64%; width: 64%;
position: absolute; position: absolute;
...@@ -65,13 +65,13 @@ ...@@ -65,13 +65,13 @@
height: 4rem; height: 4rem;
line-height: 4rem; line-height: 4rem;
} }
.main .box .anniu::after { .main .box .anniu::after {
content: ""; content: "";
display: block; display: block;
padding-bottom: 36%; padding-bottom: 36%;
} }
#RushbuyTime { #RushbuyTime {
font-size: 0.13rem; font-size: 0.13rem;
color: #e03234; color: #e03234;
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
right: -18.5%; right: -18.5%;
top: 26%; top: 26%;
} }
.rushNocheck { .rushNocheck {
width: 0.9rem; width: 0.9rem;
height: 0.9rem; height: 0.9rem;
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
margin-right: 0.2rem; margin-right: 0.2rem;
display: none; display: none;
} }
.rushNocheckTwo { .rushNocheckTwo {
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
...@@ -103,12 +103,12 @@ ...@@ -103,12 +103,12 @@
top: 0.1rem; top: 0.1rem;
margin-right: 0.2rem; margin-right: 0.2rem;
} }
.rushNocheckTwo img { .rushNocheckTwo img {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.readXieyi { .readXieyi {
color: #fff; color: #fff;
font-size: 1rem; font-size: 1rem;
...@@ -117,12 +117,12 @@ ...@@ -117,12 +117,12 @@
position: absolute; position: absolute;
bottom: 3rem; bottom: 3rem;
} }
.benciXieyi { .benciXieyi {
color: #FFCE55; color: #FFCE55;
text-decoration: underline; text-decoration: underline;
} }
.activeXieyi { .activeXieyi {
position: absolute; position: absolute;
width: 100%; width: 100%;
...@@ -133,7 +133,7 @@ ...@@ -133,7 +133,7 @@
background: rgba(0, 0, 0, .6); background: rgba(0, 0, 0, .6);
color: #333333; color: #333333;
} }
.xieyiContent { .xieyiContent {
width: 80%; width: 80%;
height: 26rem; height: 26rem;
...@@ -143,13 +143,13 @@ ...@@ -143,13 +143,13 @@
margin-top: 6rem; margin-top: 6rem;
border-radius: 1rem; border-radius: 1rem;
} }
.xieyiTitle { .xieyiTitle {
font-size: 1rem; font-size: 1rem;
width: 100%; width: 100%;
text-align: center; text-align: center;
} }
.xieyiNei { .xieyiNei {
width: 100%; width: 100%;
height: 6rem; height: 6rem;
...@@ -161,28 +161,28 @@ ...@@ -161,28 +161,28 @@
color: #333333; color: #333333;
padding: 0 0.2rem; padding: 0 0.2rem;
} }
.xieyiNei div { .xieyiNei div {
margin-bottom: 1rem; margin-bottom: 1rem;
} }
.xieyiNei::-webkit-scrollbar { .xieyiNei::-webkit-scrollbar {
width: 4px; width: 4px;
height: 8px; height: 8px;
} }
.xieyiNei::-webkit-scrollbar-thumb { .xieyiNei::-webkit-scrollbar-thumb {
border-radius: 4px; border-radius: 4px;
box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2); box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2);
background: #c9c9c9; background: #c9c9c9;
} }
.xieyiNei::-webkit-scrollbar-track { .xieyiNei::-webkit-scrollbar-track {
box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2); box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2);
border-radius: 4px; border-radius: 4px;
background: #EDEDED; background: #EDEDED;
} }
.readBtn { .readBtn {
width: 6rem; width: 6rem;
height: 2.5rem; height: 2.5rem;
...@@ -404,8 +404,11 @@ ...@@ -404,8 +404,11 @@
'message': res.message 'message': res.message
})); }));
} else { } else {
layer.msg(res.message) layer.msg('登录已过期,请重新登录');
location.href = 'https://activity.oytour.com/html/login.html' setTimeout(function() {
localStorage.removeItem("u");
window.location.href = 'https://activity.oytour.com/html/login.html';
}, 2000)
} }
// window.location.reload() // window.location.reload()
...@@ -419,8 +422,11 @@ ...@@ -419,8 +422,11 @@
'action': 'dismissHud' 'action': 'dismissHud'
})); }));
} else if (platform == 'H5') { } else if (platform == 'H5') {
layer.close(loadingFlag); layer.msg('登录已过期,请重新登录');
location.href = 'https://activity.oytour.com/html/login.html?r=123123123' setTimeout(function() {
localStorage.removeItem("u");
window.location.href = 'https://activity.oytour.com/html/login.html?r=uj23123';
}, 2000)
} }
} }
}); });
...@@ -428,4 +434,4 @@ ...@@ -428,4 +434,4 @@
</script> </script>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -289,7 +289,7 @@ $.fn.dataStatistics = function(options) { ...@@ -289,7 +289,7 @@ $.fn.dataStatistics = function(options) {
// } // }
// localStorage.buyInfo = JSON.stringify(buyInfo) // 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}`; //window.location.href = `./Rushbuy.html?redemptionPrice=${options.price}&couponId=${options.couponId}&platform=${options.platform}`;
} else { } else {
let data = { let data = {
...@@ -515,4 +515,4 @@ $.fn.dataStatistics = function(options) { ...@@ -515,4 +515,4 @@ $.fn.dataStatistics = function(options) {
}); });
}, 300000) //5分钟请求一次接口 }, 300000) //5分钟请求一次接口
}; };
\ No newline at end of file
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