diff --git a/components.d.ts b/components.d.ts index 3a065f4..870eb97 100644 --- a/components.d.ts +++ b/components.d.ts @@ -18,7 +18,6 @@ declare module 'vue' { QiunDataCharts: typeof import('./src/components/qiun-data-charts/qiun-data-charts.vue')['default'] QiunError: typeof import('./src/components/qiun-error/qiun-error.vue')['default'] QiunLoading: typeof import('./src/components/qiun-loading/qiun-loading.vue')['default'] - WdActionSheet: typeof import('wot-design-uni/components/wd-action-sheet/wd-action-sheet.vue')['default'] WdBadge: typeof import('wot-design-uni/components/wd-badge/wd-badge.vue')['default'] WdButton: typeof import('wot-design-uni/components/wd-button/wd-button.vue')['default'] WdCalendar: typeof import('wot-design-uni/components/wd-calendar/wd-calendar.vue')['default'] diff --git a/src/api/user.ts b/src/api/user.ts index 981cf77..acbca22 100644 --- a/src/api/user.ts +++ b/src/api/user.ts @@ -149,34 +149,34 @@ export default UserAPI; /** 登录用户信息 */ export interface UserInfo { /** 用户ID */ - userId?: number + userId?: number; /** 用户名 */ - username?: string + username?: string; /** 昵称 */ - nickname?: string + nickname?: string; /** 头像URL */ - avatar?: string + avatar?: string; /** 手机号 */ - mobile?: string + mobile?: string; /** 邮箱 */ - email?: string + email?: string; /** 部门名称 */ - deptName?: string + deptName?: string; /** 角色编码集合 */ - roles?: string[] + roles?: string[]; /** 权限标识集合 */ - perms?: string[] + perms?: string[]; /** 角色名称(前端计算字段,取 roles[0] 的中文映射) */ - roleName?: string + roleName?: string; } /** diff --git a/src/pages.json b/src/pages.json index aac284f..4d30f53 100644 --- a/src/pages.json +++ b/src/pages.json @@ -163,10 +163,6 @@ "style": { "navigationBarTitleText": "主题设置" } - }, - { - "path": "pages/work/user/detail/index", - "type": "page" } ], "globalStyle": { diff --git a/src/pages/mine/index.vue b/src/pages/mine/index.vue index ff9d078..f49d736 100644 --- a/src/pages/mine/index.vue +++ b/src/pages/mine/index.vue @@ -468,7 +468,7 @@ const settingsItems = computed(() => [ { title: "网络检测", desc: "检测接口连通性", - icon: "chart-trending-o", + icon: "server", tint: "#fed7aa", iconColor: "#c2410c", action: openNetworkTest, @@ -488,7 +488,7 @@ const helpItems = computed(() => [ { title: "用户协议", desc: "了解产品使用规则", - icon: "document", + icon: "secured", tint: "#d1fae5", iconColor: "#065f46", action: openUserAgreement, diff --git a/src/pages/work/user/detail/index.vue b/src/pages/work/user/detail/index.vue deleted file mode 100644 index 5e36a93..0000000 --- a/src/pages/work/user/detail/index.vue +++ /dev/null @@ -1,110 +0,0 @@ - - - diff --git a/src/pages/work/user/index.vue b/src/pages/work/user/index.vue index dd2783c..9d106a6 100644 --- a/src/pages/work/user/index.vue +++ b/src/pages/work/user/index.vue @@ -1,148 +1,175 @@ @@ -397,22 +376,60 @@ export default { diff --git a/src/types/uni-pages.d.ts b/src/types/uni-pages.d.ts index 68d8f76..c6b7409 100644 --- a/src/types/uni-pages.d.ts +++ b/src/types/uni-pages.d.ts @@ -25,8 +25,7 @@ interface NavigateToOptions { "/pages/mine/settings/agreement/index" | "/pages/mine/settings/network/index" | "/pages/mine/settings/privacy/index" | - "/pages/mine/settings/theme/index" | - "/pages/work/user/detail/index"; + "/pages/mine/settings/theme/index"; } interface RedirectToOptions extends NavigateToOptions {}