From 7caa0ac208f440bd3ec6f1cd85818e8ce865dfbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=9D=B0?= Date: Wed, 3 Sep 2025 15:53:43 +0800 Subject: [PATCH] fix: fix sticky bar style --- src/components/GuideBar/index.scss | 6 +++--- src/components/GuideBar/index.tsx | 2 +- src/pages/detail/index.scss | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/GuideBar/index.scss b/src/components/GuideBar/index.scss index 7cd40b1..96f4df2 100644 --- a/src/components/GuideBar/index.scss +++ b/src/components/GuideBar/index.scss @@ -1,19 +1,19 @@ @use '~@/scss/images.scss' as img; .guide-bar-container { - padding-top: calc(60px + 20px + env(safe-area-inset-bottom)); + // padding-top: calc(60px + 20px + env(safe-area-inset-bottom)); } .guide-bar { position: fixed; bottom: 0; width: 100%; - height: calc(60px + 20px + env(safe-area-inset-bottom)); + height: 112px; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; - padding: 20px 12px env(safe-area-inset-bottom); + padding: 20px 12px 32px; z-index: 999; &-pages { diff --git a/src/components/GuideBar/index.tsx b/src/components/GuideBar/index.tsx index a40271f..4dd0a82 100644 --- a/src/components/GuideBar/index.tsx +++ b/src/components/GuideBar/index.tsx @@ -39,7 +39,7 @@ const GuideBar = (props) => { if (code === 'personal') { url = '/pages/userInfo/myself/index' } - Taro.navigateTo({ + Taro.redirectTo({ url: url, }).then(() => { Taro.pageScrollTo({ diff --git a/src/pages/detail/index.scss b/src/pages/detail/index.scss index fa88e84..495151a 100644 --- a/src/pages/detail/index.scss +++ b/src/pages/detail/index.scss @@ -905,10 +905,10 @@ .sticky-bottom-bar { position: sticky; bottom: 0; - padding: 10px 10px env(safe-area-inset-bottom); + padding: 10px 10px 32px; box-sizing: border-box; width: 100%; - height: calc(52px + env(safe-area-inset-bottom)); + height: 92px; display: flex; align-items: center; justify-content: space-between;