From 24d1c3477b2132fa62bd4a5452e4266699089e48 Mon Sep 17 00:00:00 2001
From: "Ray.Hao" <1490493387@qq.com>
Date: Fri, 13 Mar 2026 20:35:55 +0800
Subject: [PATCH] =?UTF-8?q?feat(api):=20=E6=B7=BB=E5=8A=A0=E9=87=8D?=
=?UTF-8?q?=E7=BD=AE=E7=94=A8=E6=88=B7=E5=AF=86=E7=A0=81=E6=8E=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/user.ts | 14 +
src/layouts/default.vue | 24 +-
src/layouts/tabbar.vue | 28 +-
src/pages/index/index.vue | 198 +++---------
src/pages/mine/about/index.vue | 391 +++++++++++++++++++-----
src/pages/mine/index.vue | 189 ++++--------
src/pages/mine/settings/theme/index.vue | 343 +++++++--------------
src/pages/work/config/index.vue | 2 +-
src/pages/work/dept/index.vue | 2 +-
src/pages/work/dict/index.vue | 2 +-
src/pages/work/dict/item/index.vue | 2 +-
src/pages/work/index.vue | 14 +-
src/pages/work/log/index.vue | 2 +-
src/pages/work/menu/index.vue | 12 +-
src/pages/work/notice/index.vue | 2 +-
src/pages/work/role/index.vue | 2 +-
src/pages/work/user/index.vue | 30 +-
src/styles/index.scss | 63 ++--
src/styles/theme.scss | 12 +-
src/types/env.d.ts | 3 +
vite.config.ts | 10 +
21 files changed, 657 insertions(+), 688 deletions(-)
diff --git a/src/api/user.ts b/src/api/user.ts
index acbca22..2bfaa87 100644
--- a/src/api/user.ts
+++ b/src/api/user.ts
@@ -143,6 +143,20 @@ const UserAPI = {
method: "DELETE",
});
},
+
+ /**
+ * 重置用户密码
+ *
+ * @param userId 用户ID
+ * @param password 新密码
+ */
+ resetPassword(userId: number | string, password: string) {
+ return request({
+ url: `${USER_BASE_URL}/${userId}/password/reset`,
+ method: "PUT",
+ data: { password },
+ });
+ },
};
export default UserAPI;
diff --git a/src/layouts/default.vue b/src/layouts/default.vue
index a5deb4a..e759cce 100644
--- a/src/layouts/default.vue
+++ b/src/layouts/default.vue
@@ -4,13 +4,6 @@ import { storeToRefs } from "pinia";
const themeStore = useThemeStore();
const { theme, themeVars } = storeToRefs(themeStore);
-
-// 获取系统状态栏高度
-const statusBarHeight = ref(0);
-onMounted(() => {
- const systemInfo = uni.getSystemInfoSync();
- statusBarHeight.value = systemInfo.statusBarHeight || 0;
-});
-
+
-
-
diff --git a/src/layouts/tabbar.vue b/src/layouts/tabbar.vue
index 5cd071d..fc73a18 100644
--- a/src/layouts/tabbar.vue
+++ b/src/layouts/tabbar.vue
@@ -1,16 +1,8 @@
-
+
{
- const systemInfo = uni.getSystemInfoSync();
- statusBarHeight.value = systemInfo.statusBarHeight || 0;
-
// #ifdef APP-PLUS
uni.hideTabBar();
// #endif
@@ -81,15 +67,3 @@ export default {
},
};
-
-
diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue
index 6708813..8f6b117 100644
--- a/src/pages/index/index.vue
+++ b/src/pages/index/index.vue
@@ -1,7 +1,7 @@
-
+
-
+
+
-
+
-
+
@@ -42,11 +43,11 @@
-
-
-
-
-
+
+
+
+
+
@@ -54,9 +55,9 @@
{{ visitStatsData.todayUvCount }}
-
-
-
+
+
+
@@ -64,22 +65,15 @@
{{ visitStatsData.todayPvCount }}
-
-
- 应用版本
-
-
- {{ appVersion }}
-
-
+
-
-
+
@@ -363,11 +357,7 @@ onReady(() => {
diff --git a/src/pages/mine/about/index.vue b/src/pages/mine/about/index.vue
index 6e60611..d7d4eac 100644
--- a/src/pages/mine/about/index.vue
+++ b/src/pages/mine/about/index.vue
@@ -1,98 +1,343 @@
-
+
-
-
-
-
-
-
- 有来开源组织
-
- 专注于快速构建和高效开发的应用解决方案
+
+ 项目介绍
+
+ 一个基于 uni-app + Vue 3 + TypeScript 的移动端模板,内置主题系统与 wot-design-uni
+ 组件库。同时提供管理端与多后端版本(Java / Gin / Nest / Django / ThinkPHP /
+ ASP.NET),并包含多租户实现。
+
-
-
-
-
-
- 基于 Vue3 + Vite7 + TypeScript5 + Element-Plus + Pinia 构建的中后台管理模板
-
-
+
+
+
+
+
+
+
+
+
-
-
- 基于 uni-app + Vue 3 + TypeScript,集成多种工具的移动端应用模板
-
-
+
+
+
+
+
-
-
- 基于 Spring Boot 3 + Vue 3 构建的前后端分离单体权限管理系统
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
+
+
-
-
diff --git a/src/pages/mine/index.vue b/src/pages/mine/index.vue
index f49d736..53f3f92 100644
--- a/src/pages/mine/index.vue
+++ b/src/pages/mine/index.vue
@@ -1,5 +1,5 @@
-
+
@@ -100,19 +100,23 @@
-
-
-
-
+
+
+
+
- {{ item.title }}
- {{ item.desc }}
+ 我的资料
+ 修改个人信息
+
+
+
+
+
+
+
+ 账号安全
+ 修改密码 / 账号绑定
@@ -123,20 +127,25 @@
系统工具