@@ -276,6 +276,7 @@ import {
|
||||
type GuideTopTab
|
||||
} from '@/utils/guideTopTabs'
|
||||
import { isEmbeddedInWechatMiniProgram } from '@/utils/hostEnvironment'
|
||||
import { syncHostNavigationTitle } from '@/utils/hostNavigationTitle'
|
||||
import {
|
||||
guideUseCase
|
||||
} from '@/usecases/guideUseCase'
|
||||
@@ -419,6 +420,14 @@ let pendingPoiDetailUiContext: Readonly<{
|
||||
|
||||
// 状态
|
||||
const currentTab = ref<GuideTopTab>(initialTopTab())
|
||||
const topTabNavigationTitle = (tab: GuideTopTab) => (
|
||||
tab === 'explain' ? '免费讲解' : '地图导览'
|
||||
)
|
||||
|
||||
watch(currentTab, (tab) => {
|
||||
syncHostNavigationTitle(topTabNavigationTitle(tab))
|
||||
}, { immediate: true })
|
||||
|
||||
const launchOverlayVisible = ref(shouldShowLaunchOverlay())
|
||||
const launchOverlayLeaving = ref(false)
|
||||
const launchProgress = ref(8)
|
||||
|
||||
Reference in New Issue
Block a user