Commit e07388b5 authored by 罗超's avatar 罗超

判断优先进入

parent bcb81382
...@@ -257,7 +257,7 @@ ...@@ -257,7 +257,7 @@
let login = true; //判断是否登录 let login = true; //判断是否登录
let userInfo = {}; let userInfo = {};
let platform = "H5"; let platform = "H5";
if (localStorage.u) { if (localStorage.u && href.indexOf("platform") == -1) {
try { try {
userInfo = JSON.parse(localStorage.u); userInfo = JSON.parse(localStorage.u);
if (!userInfo.customerId) { if (!userInfo.customerId) {
...@@ -277,8 +277,6 @@ ...@@ -277,8 +277,6 @@
login = false login = false
} }
} else { } else {
// 如果进入页面没有登录的参数 处理跳到h5页面登录 // 如果进入页面没有登录的参数 处理跳到h5页面登录
if (href.split('?')[1]) { if (href.split('?')[1]) {
...@@ -300,7 +298,6 @@ ...@@ -300,7 +298,6 @@
secretKey: param[3].split('=')[1] secretKey: param[3].split('=')[1]
} }
platform = param[4].split('=')[1] //获取从哪里跳过来的 platform = param[4].split('=')[1] //获取从哪里跳过来的
} }
} else { } else {
// window.location.href = 'https://activity.oytour.com/html/login.html'; // window.location.href = 'https://activity.oytour.com/html/login.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