web端tabbar登录

This commit is contained in:
zoujiandong
2025-08-21 09:24:20 +08:00
parent 5ad468b546
commit aeb4884bec
33 changed files with 46 additions and 37 deletions
+14 -5
View File
@@ -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)