调整导览讲解为底部主导航

This commit is contained in:
lyf
2026-06-29 20:55:13 +08:00
parent 81b9eac2f7
commit 4c9d480cce
12 changed files with 271 additions and 64 deletions

View File

@@ -18,6 +18,7 @@
:target-focus-distance-factor="targetFocusDistanceFactor"
:route-preview="routePreview"
:show-route="showRoute"
:disable-auto-exit="disableAutoExit"
:auto-switch-threshold-low="autoSwitchThresholdLow"
:auto-switch-threshold-high="autoSwitchThresholdHigh"
@floor-change="handleThreeFloorChange"
@@ -29,7 +30,7 @@
<!-- #endif -->
<!-- #ifndef H5 -->
<view class="indoor-platform-fallback">
<text class="indoor-platform-title">内三维导览</text>
<text class="indoor-platform-title">内三维导览</text>
<text class="indoor-platform-desc">当前端暂不支持 WebGL 三维展示请在 H5 端查看</text>
</view>
<!-- #endif -->
@@ -81,14 +82,14 @@
:class="{ active: activeMode === '2d' }"
@tap="handleModeChange('2d')"
>
<text class="mode-label">外2D</text>
<text class="mode-label">外2D</text>
</view>
<view
class="mode-option"
:class="{ active: activeMode === '3d' }"
@tap="handleModeChange('3d')"
>
<text class="mode-label">内3D</text>
<text class="mode-label">内3D</text>
</view>
</template>
<template v-else>
@@ -98,14 +99,14 @@
:class="{ active: activeMode === '2d' }"
@tap="handleModeChange('2d')"
>
<text class="mode-label">外2D</text>
<text class="mode-label">外2D</text>
</view>
<view
class="mode-option"
:class="{ active: activeMode === '3d' }"
@tap="handleModeChange('3d')"
>
<text class="mode-label">内3D</text>
<text class="mode-label">内3D</text>
</view>
</view>
<view class="mode-status-chip" :class="`tone-${modeStatusTone}`">
@@ -316,6 +317,7 @@ const props = withDefaults(defineProps<{
targetFocusDistanceFactor?: number
routePreview?: GuideRouteResult | null
showRoute?: boolean
disableAutoExit?: boolean
autoSwitchThresholdLow?: number
autoSwitchThresholdHigh?: number
outdoorNavPolylines?: OutdoorNavPolyline[]
@@ -363,6 +365,7 @@ const props = withDefaults(defineProps<{
targetFocusDistanceFactor: 0.22,
routePreview: null,
showRoute: false,
disableAutoExit: false,
autoSwitchThresholdLow: 1.0,
autoSwitchThresholdHigh: 1.3,
outdoorNavPolylines: () => [] as OutdoorNavPolyline[]
@@ -590,8 +593,7 @@ defineExpose({
position: relative;
z-index: 0;
width: 100%;
height: 100vh;
height: 100dvh;
height: 100%;
overflow: hidden;
background: #ffffff;
color: #000000;