Commit 38a6dea7 authored by Mac's avatar Mac

修改token过期的跳转方式

parent 6fdb1bcc
...@@ -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=efa5420042"></script> <script src="../js/jquery.dataStatistics.js?r=efm54202"></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>
......
...@@ -245,6 +245,7 @@ ...@@ -245,6 +245,7 @@
let price = param ? param[0].split('=')[1] : 0; let price = param ? param[0].split('=')[1] : 0;
let couponId = param ? param[1].split('=')[1] : 0; let couponId = param ? param[1].split('=')[1] : 0;
let platform = param ? param[2].split('=')[1] : 0; let platform = param ? param[2].split('=')[1] : 0;
let noClick = param ? param[3].split('=')[1] : 0;
$('.anniu').html('支付' + price + '元领取') $('.anniu').html('支付' + price + '元领取')
let buyIf = {} let buyIf = {}
// if (localStorage.buyInfo) { // if (localStorage.buyInfo) {
...@@ -260,6 +261,8 @@ ...@@ -260,6 +261,8 @@
let RushbuyTime = localStorage.RushbuyTime ? JSON.parse(localStorage.RushbuyTime) : { let RushbuyTime = localStorage.RushbuyTime ? JSON.parse(localStorage.RushbuyTime) : {
RushbuyTime: '' RushbuyTime: ''
} }
$('#RushbuyTime').html(`有效期截止:` + RushbuyTime.RushbuyTime) $('#RushbuyTime').html(`有效期截止:` + RushbuyTime.RushbuyTime)
function move(t) { function move(t) {
...@@ -305,7 +308,17 @@ ...@@ -305,7 +308,17 @@
}); });
}) })
var that=this
console.log(noClick)
if(noClick == 1){ //0不执行 1为执行点击事件
that.btnClick()
}
$('.anniu').click(function() { $('.anniu').click(function() {
that.btnClick()
})
function btnClick() {
if (!isChecke) { if (!isChecke) {
layer.msg('请同意活动说明'); layer.msg('请同意活动说明');
return; return;
...@@ -325,6 +338,7 @@ ...@@ -325,6 +338,7 @@
time: 60000 time: 60000
}); });
} }
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: `${getApiUrl().urlJava}api/appActivity/PanicBuyingCoupon`, url: `${getApiUrl().urlJava}api/appActivity/PanicBuyingCoupon`,
...@@ -407,7 +421,9 @@ ...@@ -407,7 +421,9 @@
layer.msg('登录已过期,请重新登录'); layer.msg('登录已过期,请重新登录');
setTimeout(function() { setTimeout(function() {
localStorage.removeItem("u"); localStorage.removeItem("u");
window.location.href = 'https://activity.oytour.com/html/login.html'; window.location.href = `https://activity.oytour.com/html/login.html?redemptionPrice=${price}&couponId=${couponId}&platform=${platform}&jumpPay=${'1'}&r=opfr12123`;
// window.location.href = `./login.html?redemptionPrice=${price}&couponId=${couponId}&platform=${platform}&jumpPay=${'1'}&r=efr12123`;
}, 2000) }, 2000)
} }
...@@ -425,12 +441,13 @@ ...@@ -425,12 +441,13 @@
layer.msg('登录已过期,请重新登录'); layer.msg('登录已过期,请重新登录');
setTimeout(function() { setTimeout(function() {
localStorage.removeItem("u"); localStorage.removeItem("u");
window.location.href = 'https://activity.oytour.com/html/login.html?r=uj23123'; window.location.href = `https://activity.oytour.com/html/login.html?redemptionPrice=${price}&couponId=${couponId}&platform=${platform}&jumpPay=${'1'}&r=eiu12123`;
// window.location.href = `./login.html?redemptionPrice=${price}&couponId=${couponId}&platform=${platform}&jumpPay=${'1'}&r=efr12123`;
}, 2000) }, 2000)
} }
} }
}); });
}) }
</script> </script>
</body> </body>
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
.login_page { .login_page {
position: relative; position: relative;
height: 100%; height: 100%;
...@@ -48,13 +48,13 @@ ...@@ -48,13 +48,13 @@
background-image: url('https://vt-im-bucket.oss-cn-chengdu.aliyuncs.com/activity/login_bg.jpg'); background-image: url('https://vt-im-bucket.oss-cn-chengdu.aliyuncs.com/activity/login_bg.jpg');
background-size: cover; background-size: cover;
} }
.login_page .page__bd { .login_page .page__bd {
position: relative; position: relative;
z-index: 2; z-index: 2;
padding-top: 33rem; padding-top: 33rem;
} }
.login_page .header { .login_page .header {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
...@@ -62,44 +62,44 @@ ...@@ -62,44 +62,44 @@
align-items: center; align-items: center;
width: 100%; width: 100%;
} }
.login_page .header_span { .login_page .header_span {
font-size: 3rem; font-size: 3rem;
color: #EE4454; color: #EE4454;
margin-top: 0.5rem; margin-top: 0.5rem;
} }
.login_page .header_image { .login_page .header_image {
width: 10rem; width: 10rem;
height: 10rem; height: 10rem;
} }
.login_page .headBg { .login_page .headBg {
position: relative; position: relative;
width: 54rem; width: 54rem;
height: 50rem; height: 50rem;
margin: 0 auto; margin: 0 auto;
} }
.login_page .headBgImg { .login_page .headBgImg {
position: absolute; position: absolute;
width: 100%; width: 100%;
height: 100%; height: 100%;
z-index: -1; z-index: -1;
} }
.login_page .form { .login_page .form {
margin: 6rem 0 0 0; margin: 6rem 0 0 0;
padding: 0 6rem; padding: 0 6rem;
} }
.login_page .form_item1 { .login_page .form_item1 {
width: 100%; width: 100%;
height: 6rem; height: 6rem;
display: flex; display: flex;
align-items: center; align-items: center;
} }
.login_page .form_item2 { .login_page .form_item2 {
margin: 3rem 0 0 0; margin: 3rem 0 0 0;
width: 100%; width: 100%;
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
display: flex; display: flex;
align-items: center; align-items: center;
} }
.login_page .form_item_icoBox { .login_page .form_item_icoBox {
flex-shrink: 0; flex-shrink: 0;
display: flex; display: flex;
...@@ -118,12 +118,12 @@ ...@@ -118,12 +118,12 @@
border: 1px solid #257BF1; border: 1px solid #257BF1;
border-radius: 50%; border-radius: 50%;
} }
.login_page .form_item_ico { .login_page .form_item_ico {
width: 2.5rem; width: 2.5rem;
height: 2.5rem height: 2.5rem
} }
.login_page .form_item_inBox { .login_page .form_item_inBox {
margin: 0 0 0 10px; margin: 0 0 0 10px;
flex-grow: 1; flex-grow: 1;
...@@ -132,7 +132,7 @@ ...@@ -132,7 +132,7 @@
height: 6rem; height: 6rem;
border-bottom: 1px solid #666666; border-bottom: 1px solid #666666;
} }
.login_page .form_item_input { .login_page .form_item_input {
flex-grow: 1; flex-grow: 1;
font-size: 14px; font-size: 14px;
...@@ -145,18 +145,18 @@ ...@@ -145,18 +145,18 @@
font-size: 2rem; font-size: 2rem;
margin-top: 1rem; margin-top: 1rem;
} }
.login_page .login_Zh { .login_page .login_Zh {
font-size: 2rem; font-size: 2rem;
margin: 0.5rem 0 0 0.8rem; margin: 0.5rem 0 0 0.8rem;
color: #111111; color: #111111;
} }
input::-webkit-input-placeholder { input::-webkit-input-placeholder {
/* WebKit browsers */ /* WebKit browsers */
color: #CCCCCC; color: #CCCCCC;
} }
.login_page .login_btn { .login_page .login_btn {
margin: 0 auto; margin: 0 auto;
font-size: 2rem; font-size: 2rem;
...@@ -175,18 +175,18 @@ ...@@ -175,18 +175,18 @@
background: rgba(238, 68, 84, 1); background: rgba(238, 68, 84, 1);
box-shadow: 0px 6px 6px 0px rgba(139, 139, 139, 0.25); box-shadow: 0px 6px 6px 0px rgba(139, 139, 139, 0.25);
} }
.login_page .jihuoDiv { .login_page .jihuoDiv {
margin-top: 6rem; margin-top: 6rem;
text-align: center; text-align: center;
font-size: 2rem; font-size: 2rem;
color: #999; color: #999;
} }
.login_page .jilijihuo { .login_page .jilijihuo {
color: #EE4454; color: #EE4454;
} }
.login_page .login_xieyi { .login_page .login_xieyi {
position: absolute; position: absolute;
bottom: 3rem; bottom: 3rem;
...@@ -196,12 +196,12 @@ ...@@ -196,12 +196,12 @@
text-align: center; text-align: center;
color: #111111; color: #111111;
} }
.login_page .login_xieyi span:last-child { .login_page .login_xieyi span:last-child {
color: #EE4454; color: #EE4454;
text-decoration: underline; text-decoration: underline;
} }
.form_validate_input { .form_validate_input {
color: #333333; color: #333333;
text-align: left; text-align: left;
...@@ -213,7 +213,7 @@ ...@@ -213,7 +213,7 @@
font-size: 2rem; font-size: 2rem;
margin-top: 1rem; margin-top: 1rem;
} }
.login_yzm { .login_yzm {
font-size: 2rem; font-size: 2rem;
color: #EE4454; color: #EE4454;
...@@ -221,34 +221,34 @@ ...@@ -221,34 +221,34 @@
padding: 0 2rem; padding: 0 2rem;
border-left: 1px solid #666666; border-left: 1px solid #666666;
} }
.login_jihuo, .login_jihuo,
.login_Agreement { .login_Agreement {
display: none; display: none;
} }
.login_Agreement { .login_Agreement {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.boxcenter { .boxcenter {
padding: 0 2rem; padding: 0 2rem;
} }
.login_Agreement .boxcenter h1 { .login_Agreement .boxcenter h1 {
font-size: 2.3rem; font-size: 2.3rem;
margin-top: 3rem; margin-top: 3rem;
line-height: 4rem; line-height: 4rem;
} }
.login_Agreement .boxcenter span { .login_Agreement .boxcenter span {
font-size: 2rem; font-size: 2rem;
display: inline-block; display: inline-block;
margin-top: 1rem; margin-top: 1rem;
line-height: 4rem; line-height: 4rem;
} }
.login_AgreeTitle { .login_AgreeTitle {
width: 100%; width: 100%;
height: 8rem; height: 8rem;
...@@ -258,14 +258,14 @@ ...@@ -258,14 +258,14 @@
border: 0; border: 0;
box-shadow: 0px 0px 20px #d1d1d1; box-shadow: 0px 0px 20px #d1d1d1;
} }
.login_AgreeTitle img { .login_AgreeTitle img {
position: relative; position: relative;
left: 3rem; left: 3rem;
top: 3rem; top: 3rem;
float: left; float: left;
} }
.layui-layer-content { .layui-layer-content {
font-size: 1.8rem!important; font-size: 1.8rem!important;
padding: 2rem 1rem!important; padding: 2rem 1rem!important;
...@@ -390,6 +390,19 @@ ...@@ -390,6 +390,19 @@
// window.location.href = 'https://activity.oytour.com/html/login.html'; // window.location.href = 'https://activity.oytour.com/html/login.html';
// } // }
// } // }
let jumpPay = 0; //0 为跳转到活动页面 1位支付页面
let price = 0;
let couponId = 0;
let platform = 0;
let href = window.location.href;
if(href.split('?')[1] && href.split('?')[1].indexOf('redemptionPrice') != -1){
let param = href.split('?')[1].split("&") ? href.split('?')[1].split("&") : null;
price = param ? param[0].split('=')[1] : 0;
couponId = param ? param[1].split('=')[1] : 0;
platform = param ? param[2].split('=')[1] : 0;
jumpPay = param ? param[3].split('=')[1] : 1;
}
//跳转至激活 //跳转至激活
function goJihuo() { function goJihuo() {
$(".login_denglu").css({ $(".login_denglu").css({
...@@ -463,7 +476,15 @@ ...@@ -463,7 +476,15 @@
secretKey: res.data.secretKey, secretKey: res.data.secretKey,
} }
localStorage.u = JSON.stringify(userInfo) localStorage.u = JSON.stringify(userInfo)
window.location.href = 'https://activity.oytour.com/html/GT_activities.html'; if(jumpPay == 0 || couponId == 0){
window.location.href = 'https://activity.oytour.com/html/GT_activities.html';
// window.location.href = './GT_activities.html';
}else {
window.location.href = `https://activity.oytour.com/html/Rushbuy.html?redemptionPrice=${price}&couponId=${couponId}&platform=${platform}&noClick=${'1'}&r=ejhr12123`;
// window.location.href = `./Rushbuy.html?redemptionPrice=${price}&couponId=${couponId}&platform=${platform}&noClick=${'1'}&r=efr12123`;
}
//window.location.href='http://127.0.0.1:5500/html/GT_activities.html'; //window.location.href='http://127.0.0.1:5500/html/GT_activities.html';
} else { } else {
layer.msg(res.message); layer.msg(res.message);
...@@ -569,4 +590,4 @@ ...@@ -569,4 +590,4 @@
} }
</script> </script>
</html> </html>
\ No newline at end of file
...@@ -289,8 +289,8 @@ $.fn.dataStatistics = function(options) { ...@@ -289,8 +289,8 @@ $.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=efr12123`; window.location.href = `https://activity.oytour.com/html/Rushbuy.html?redemptionPrice=${options.price}&couponId=${options.couponId}&platform=${options.platform}&noClick=${'0'}&r=efrq12123`;
//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}&noClick=${'0'}&r=efr12123`;
} else { } else {
let data = { let data = {
'action': 'jump', // showToast->一个提示信息 showHud->一个黑色的loading 'action': 'jump', // showToast->一个提示信息 showHud->一个黑色的loading
......
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