制作登录

This commit is contained in:
2025-04-22 11:22:18 +08:00
parent 5d4a682c16
commit 16074dd05e
515 changed files with 28526 additions and 38120 deletions

View File

@ -72,6 +72,7 @@ async function _wxMnpLogin() {
})
}
} else {
const loginRoute = '/pages/login/login'
if (!tabbarList.includes(route)) {
if(loginRoute.includes(route)) return

View File

@ -83,7 +83,10 @@ service.interceptors.response.use(
wxMnpLogin();
// #endif
//#ifdef H5 || APP-PLUS
console.log('route=', route)
console.log('tabbarList=', tabbarList)
if (route && !tabbarList.includes(route)) {
console.log(1213)
toLogin();
}
// #endif

View File

@ -380,12 +380,13 @@ export function setTabbar() {
// #endif
}
// tabbar页面路径
// 忽略登录和tabbar页面路径
export const tabbarList = [
"pages/shop_cart/shop_cart",
"pages/user/user",
"pages/index/index",
"pages/sort/sort",
"pages/login/fast",
];
// 登录注册相关
export const acountList = [