Commit 5fd5df55 authored by Mac's avatar Mac

修改活动

parent 68195447
......@@ -159,9 +159,9 @@
// let href='http://127.0.0.1:5500/html/GT_activities.html?customerId=1549&accountId=1182&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE1NzM0NjY2NjMuMCwiZXhwIjoxNTczNTUzMDYzLjAsInVzZXJJbmZvIjp7InVpZCI6IjExODIiLCJyZXF1ZXN0RnJvbSI6NH19.hX2b2MqSWYmWS0k3YsthxW-T6UxarIm5rdbqCVQtxdQ&secretKey=5d5e16254bd741c486fe2b83b42171d2&platform=app';
let userInfo={};
let platform = "H5";
if(localStorage.userInfo){
if(localStorage.u){
try{
userInfo=JSON.parse(localStorage.userInfo);
userInfo=JSON.parse(localStorage.u);
if(!userInfo.customerId){
window.location.href = 'http://activity.oytour.com/html/login.html';
}
......@@ -461,9 +461,9 @@
}
})
//点击隐藏提示
function hideTips(){
$('.wx_bg').css({'display':'none'})
}
// function hideTips(){
// $('.wx_bg').css({'display':'none'})
// }
</script>
</body>
......
......@@ -310,7 +310,7 @@
<body>
<div class="coupons_page">
<div class="coupons_Top">
<img src="../images/login/login_arrowleft.png"/>我的优惠券
<img src="../images/login/login_arrowleft.png"/>
</div>
<div class="coupons_title">
<div class="coupons_Navone" onclick="showList()">
......
......@@ -331,6 +331,17 @@
<script type="text/javascript" src="../js/mian.js"></script>
<script src="../js/md5.js"></script>
<script>
if(localStorage.u){
let userInfo = {}
try{
userInfo=JSON.parse(localStorage.u);
if(userInfo.customerId){
window.location.href = 'http://activity.oytour.com/html/GT_activities.html';
}
}catch (e) {
// window.location.href = 'http://activity.oytour.com/html/login.html';
}
}
//跳转至激活
function goJihuo(){
$(".login_denglu").css({'display':'none'});
......@@ -387,7 +398,7 @@
token: res.data.token,
secretKey: res.data.secretKey,
}
localStorage.userInfo = JSON.stringify(userInfo)
localStorage.u = JSON.stringify(userInfo)
window.location.href = 'http://activity.oytour.com/html/GT_activities.html';
//window.location.href = 'http://127.0.0.1:5500/html/GT_activities.html';
......
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