From 1846e783a3704f47eaeedf9f402e7bd2e85ca94b Mon Sep 17 00:00:00 2001 From: hwj Date: Tue, 19 May 2026 11:34:47 +0800 Subject: [PATCH] =?UTF-8?q?refactor=EF=BC=9A=E6=9B=B4=E6=8D=A2uview-plus?= =?UTF-8?q?=20tabbar=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/BottomActionBar.vue | 2 +- src/components/common/TabBar.vue | 107 +++++++-------------- src/components/dashboard/BannerSection.vue | 2 +- src/components/dashboard/NavMenuEditor.vue | 14 ++- src/components/dashboard/NavMenuMore.vue | 2 +- src/pages/index.vue | 4 +- 6 files changed, 48 insertions(+), 83 deletions(-) diff --git a/src/components/common/BottomActionBar.vue b/src/components/common/BottomActionBar.vue index fc1d48c..e1df4fd 100644 --- a/src/components/common/BottomActionBar.vue +++ b/src/components/common/BottomActionBar.vue @@ -51,7 +51,7 @@ function handleClick(btn, index) { background: #ffffff; box-shadow: 0 -6rpx 24rpx rgba(0, 0, 0, 0.08); padding: 20rpx 24rpx calc(20rpx + env(safe-area-inset-bottom)); - z-index: 99; + z-index: 90; } .action-row { diff --git a/src/components/common/TabBar.vue b/src/components/common/TabBar.vue index 03fd01c..f289771 100644 --- a/src/components/common/TabBar.vue +++ b/src/components/common/TabBar.vue @@ -1,24 +1,29 @@ \ No newline at end of file + diff --git a/src/components/dashboard/BannerSection.vue b/src/components/dashboard/BannerSection.vue index 3e5dd8e..769dab4 100644 --- a/src/components/dashboard/BannerSection.vue +++ b/src/components/dashboard/BannerSection.vue @@ -188,7 +188,7 @@ defineExpose({ loadTodoList }) display: flex; align-items: center; justify-content: center; - z-index: 100; + z-index: 10; } .bell-icon { diff --git a/src/components/dashboard/NavMenuEditor.vue b/src/components/dashboard/NavMenuEditor.vue index e250c81..20e8f0c 100644 --- a/src/components/dashboard/NavMenuEditor.vue +++ b/src/components/dashboard/NavMenuEditor.vue @@ -14,8 +14,10 @@ - - + + {{ item.symbol }} {{ item.displayName }} @@ -34,8 +36,10 @@ - - + + {{ item.symbol }} {{ item.displayName }} @@ -208,7 +212,7 @@ watch(() => props.visible, async (val) => { z-index: 1000; display: flex; align-items: flex-end; - padding-bottom: calc(100rpx + env(safe-area-inset-bottom)); + padding-bottom: calc(90rpx + env(safe-area-inset-bottom)); box-sizing: border-box; transition: opacity 0.3s ease; diff --git a/src/components/dashboard/NavMenuMore.vue b/src/components/dashboard/NavMenuMore.vue index 3551348..34e46dd 100644 --- a/src/components/dashboard/NavMenuMore.vue +++ b/src/components/dashboard/NavMenuMore.vue @@ -125,7 +125,7 @@ function handleClose() { z-index: 1000; display: flex; align-items: flex-end; - padding-bottom: calc(100rpx + env(safe-area-inset-bottom)); + padding-bottom: calc(90rpx + env(safe-area-inset-bottom)); box-sizing: border-box; transition: opacity 0.3s ease; diff --git a/src/pages/index.vue b/src/pages/index.vue index c739a8e..3c3847d 100644 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -73,7 +73,7 @@ function goTop() { padding: 0 24rpx 24rpx; margin-top: -40rpx; position: relative; - z-index: 5; + z-index: 1; } .go-top-btn { @@ -88,7 +88,7 @@ function goTop() { align-items: center; justify-content: center; box-shadow: 0 8rpx 24rpx rgba(26, 58, 92, 0.3); - z-index: 10; + z-index: 50; &:active { transform: scale(0.95);