feat: 优化用户界面和功能实现

- 新增自定义用户信息卡片样式
- 优化登录页面输入框和按钮样式
- 重构首页布局和图标展示
- 添加多种操作图标资源
- 改进用户退出登录逻辑
- 优化页面跳转和错误处理
This commit is contained in:
2025-08-21 17:49:37 +08:00
parent 7a3d4f8c8a
commit 684ad6f152
33 changed files with 436 additions and 216 deletions

View File

@@ -21,25 +21,26 @@ let list = ["navigateTo", "redirectTo", "reLaunch", "switchTab"]
list.forEach(item => {
uni.addInterceptor(item, {
invoke(to) {
if (getToken()) {
// if (to.url === loginPage) {
// uni.reLaunch({
// url: loginPage
// })
// }
return true
} else {
if (checkWhite(to.url)) {
return true
}
uni.reLaunch({
url: loginPage
})
return false
}
},
const token = getToken();
if (token) {
// if (to.url === loginPage) {
// uni.reLaunch({
// url: loginPage
// })
// }
return true
} else {
if (checkWhite(to.url)) {
return true
}
uni.reLaunch({
url: loginPage
})
return false
}
},
fail(err) {
console.log(err)
}
// 页面跳转拦截器执行失败处理
}
})
})