From 0d46ac0e2c76b9e44e827084240f44cb08f1b2f0 Mon Sep 17 00:00:00 2001
From: DEV_DSW <562304744@qq.com>
Date: Wed, 27 May 2026 09:48:37 +0800
Subject: [PATCH] feat: enable and refactor more service
- uncomment and restore MineSetting in DrawerSection
- replace uni-ui popup and icons with Vant components in MoreService
- switch to project's custom event emitter instead of uni global events
- add VanIcons type definitions in components.d.ts
- rework popup state management with reactive show ref for MoreService
---
components.d.ts | 2 ++
.../home/components/DrawerSection/index.vue | 2 +-
src/pages/home/components/MoreService/index.vue | 17 ++++++++++-------
src/pages/home/index.vue | 4 ++--
4 files changed, 15 insertions(+), 10 deletions(-)
diff --git a/components.d.ts b/components.d.ts
index e0692f4..3504323 100644
--- a/components.d.ts
+++ b/components.d.ts
@@ -48,6 +48,7 @@ declare module 'vue' {
TopNavBar: typeof import('./src/components/TopNavBar/index.vue')['default']
UseDateRange: typeof import('./src/components/UseDateRange/index.vue')['default']
VanIcon: typeof import('vant/es')['Icon']
+ VanIcons: typeof import('vant/es')['Icons']
VanPopup: typeof import('vant/es')['Popup']
ZnIcon: typeof import('./src/components/ZnIcon/index.vue')['default']
}
@@ -91,6 +92,7 @@ declare global {
const TopNavBar: typeof import('./src/components/TopNavBar/index.vue')['default']
const UseDateRange: typeof import('./src/components/UseDateRange/index.vue')['default']
const VanIcon: typeof import('vant/es')['Icon']
+ const VanIcons: typeof import('vant/es')['Icons']
const VanPopup: typeof import('vant/es')['Popup']
const ZnIcon: typeof import('./src/components/ZnIcon/index.vue')['default']
}
\ No newline at end of file
diff --git a/src/pages/home/components/DrawerSection/index.vue b/src/pages/home/components/DrawerSection/index.vue
index 3c5716c..900416a 100644
--- a/src/pages/home/components/DrawerSection/index.vue
+++ b/src/pages/home/components/DrawerSection/index.vue
@@ -6,7 +6,7 @@
我的
-
+
diff --git a/src/pages/home/components/MoreService/index.vue b/src/pages/home/components/MoreService/index.vue
index d1da3fe..b02f79b 100644
--- a/src/pages/home/components/MoreService/index.vue
+++ b/src/pages/home/components/MoreService/index.vue
@@ -1,9 +1,9 @@
-
+
-
+
diff --git a/src/pages/home/index.vue b/src/pages/home/index.vue
index 7ea07a9..d57d809 100644
--- a/src/pages/home/index.vue
+++ b/src/pages/home/index.vue
@@ -7,7 +7,7 @@
@select="handleDateSelect" /> -->
-
+
@@ -21,7 +21,7 @@ import { emitter } from '@/utils/events'
// import { useAppStore } from "@/store";
// import { checkToken } from "@/hooks/useGoLogin";
// import ChatMainList from "./components/ChatMainList/index.vue";
-// import MoreService from "./components/MoreService/index.vue";
+import MoreService from "./components/MoreService/index.vue";
import DrawerSection from "./components/DrawerSection/index.vue";
// import Calender from "@/components/Calender/index.vue";