feat(用户中心): 新增用户中心相关功能模块
实现用户中心完整功能,包括: 1. 新增登录页面及登录逻辑 2. 添加个人资料、修改密码、关于我们等子页面 3. 实现头像上传功能 4. 添加js-cookie依赖处理token存储 5. 完善用户信息类型定义和API接口 6. 新增tabbar"我的"入口及相关路由配置 新增工具函数: 1. 添加auth.ts处理认证相关逻辑 2. 实现toast.ts统一消息提示 3. 添加uploadFile.ts处理文件上传 4. 新增isTableBar判断页面是否为tabbar页
This commit is contained in:
2
src/types/components.d.ts
vendored
2
src/types/components.d.ts
vendored
@@ -8,8 +8,6 @@ export {}
|
||||
declare module 'vue' {
|
||||
export interface GlobalComponents {
|
||||
FgNavbar: typeof import('./../components/fg-navbar/fg-navbar.vue')['default']
|
||||
FgTabbar: typeof import('./../components/fg-tabbar/fg-tabbar.vue')['default']
|
||||
PrivacyPopup: typeof import('./../components/privacy-popup/privacy-popup.vue')['default']
|
||||
Tabbar: typeof import('./../components/tabbar/tabbar.vue')['default']
|
||||
}
|
||||
}
|
||||
|
||||
9
src/types/uni-pages.d.ts
vendored
9
src/types/uni-pages.d.ts
vendored
@@ -5,12 +5,17 @@
|
||||
|
||||
interface NavigateToOptions {
|
||||
url: "/pages/index/index" |
|
||||
"/pages/about/about";
|
||||
"/pages/about/about" |
|
||||
"/pages/login/index" |
|
||||
"/pages/mine/index" |
|
||||
"/pages/mine/about/index" |
|
||||
"/pages/mine/info/index" |
|
||||
"/pages/mine/password/index";
|
||||
}
|
||||
interface RedirectToOptions extends NavigateToOptions {}
|
||||
|
||||
interface SwitchTabOptions {
|
||||
url: "/pages/index/index" | "/pages/about/about"
|
||||
url: "/pages/index/index" | "/pages/about/about" | "/pages/mine/index"
|
||||
}
|
||||
|
||||
type ReLaunchOptions = NavigateToOptions | SwitchTabOptions;
|
||||
|
||||
Reference in New Issue
Block a user