调整讲解入口为悬浮按钮
Some checks failed
CI / verify (push) Has been cancelled

This commit is contained in:
lyf
2026-07-05 20:51:06 +08:00
parent 4b581da81d
commit eca85b9fed
2 changed files with 51 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
<view class="guide-bottom-nav">
<view class="guide-bottom-nav-inner">
<view
v-for="tab in GUIDE_TOP_TABS"
v-for="tab in bottomNavTabs"
:key="tab.id"
class="guide-bottom-tab"
:class="[`tab-${tab.id}`, { active: activeTab === tab.id }]"
@@ -31,6 +31,8 @@ import {
type GuideTopTab
} from '@/utils/guideTopTabs'
const bottomNavTabs = GUIDE_TOP_TABS.filter((tab) => tab.id !== 'explain')
withDefaults(defineProps<{
activeTab?: GuideTopTab
}>(), {
@@ -64,7 +66,7 @@ const handleTabTap = (tab: GuideTopTab) => {
.guide-bottom-nav-inner {
height: 56px;
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
grid-template-columns: minmax(0, 1fr);
gap: 10px;
padding: 4px;
box-sizing: border-box;