Commit 9a31b4dd authored by 黄媛媛's avatar 黄媛媛

11

parent 109da684
...@@ -171,7 +171,9 @@ ...@@ -171,7 +171,9 @@
} }
platform = param[4].split('=')[1] platform = param[4].split('=')[1]
}else{ }else{
if (localStorage.u){
userInfo = JSON.parse(localStorage.u);
}
} }
localStorage.userInfo = JSON.stringify(userInfo) localStorage.userInfo = JSON.stringify(userInfo)
$.ajax({ $.ajax({
...@@ -226,6 +228,9 @@ ...@@ -226,6 +228,9 @@
window.location.href = `https://activity.oytour.com/html/GT_activities.html?customerId=${userInfo.customerId}&accountId=${userInfo.accountId}&token=${userInfo.token}&secretKey=${userInfo.secretKey}&platform=xcx`; window.location.href = `https://activity.oytour.com/html/GT_activities.html?customerId=${userInfo.customerId}&accountId=${userInfo.accountId}&token=${userInfo.token}&secretKey=${userInfo.secretKey}&platform=xcx`;
} }
else{
window.location.href="https://activity.oytour.com/html/GT_activities.html"
}
}) })
$('.click_use').click(function() { $('.click_use').click(function() {
if(platform=="xcx"){ if(platform=="xcx"){
...@@ -234,6 +239,8 @@ ...@@ -234,6 +239,8 @@
url: `/pages/member/Coupon/Coupon`, url: `/pages/member/Coupon/Coupon`,
}); });
}); });
}else{
window.location.href="https://activity.oytour.com/html/coupons.html"
} }
}) })
</script> </script>
......
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