web端tabbar登录
This commit is contained in:
+14
-5
@@ -17,11 +17,20 @@ function navTo(obj) {
|
||||
}
|
||||
}
|
||||
if (!token) {
|
||||
let page_url = pageUrl();
|
||||
uni.setStorageSync('redirectUrl', page_url);
|
||||
uni.navigateTo({
|
||||
url: '/pages/login/login?redirectUrl=has'
|
||||
});
|
||||
if(process.env.UNI_PLATFORM =="h5"){
|
||||
let H5url = 'https://dev-wx.igandan.com';
|
||||
if(window.location.href.indexOf('//dev-casedata.igandan.com') == -1) {
|
||||
H5url = 'https://wx.igandan.com'
|
||||
}
|
||||
window.location.href = H5url + "/hcp/Signup2020online_tologin?back_url=" + encodeURIComponent(window.location.href);
|
||||
}else{
|
||||
let page_url = pageUrl();
|
||||
uni.setStorageSync('redirectUrl', page_url);
|
||||
uni.navigateTo({
|
||||
url: '/pages/login/login?redirectUrl=has'
|
||||
});
|
||||
}
|
||||
|
||||
} else {
|
||||
if(process.env.UNI_PLATFORM =="h5"){
|
||||
uni.navigateTo(obj)
|
||||
|
||||
Reference in New Issue
Block a user