修复展厅列表嵌入返回入口

This commit is contained in:
lyf
2026-07-19 15:46:51 +08:00
parent 215428db90
commit 127461dd60
5 changed files with 109 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
<template>
<view class="explain-hall-select" :class="{ 'host-navigation': shouldUseHostNavigation }">
<view class="explain-hall-select" :class="{ 'host-navigation': shouldUseHostNavigation && !showInternalHeader }">
<view v-if="showInternalHeader" class="explain-page-header">
<view class="header-back" @tap="handleBack">
<text class="header-back-icon"></text>
@@ -167,6 +167,7 @@ const props = withDefaults(defineProps<{
hasMore?: boolean
error?: string
loadMoreError?: string
forceInternalHeader?: boolean
}>(), {
halls: () => [],
guideStops: () => [],
@@ -176,7 +177,8 @@ const props = withDefaults(defineProps<{
loadingMore: false,
hasMore: false,
error: '',
loadMoreError: ''
loadMoreError: '',
forceInternalHeader: false
})
const emit = defineEmits<{
@@ -218,7 +220,7 @@ const hallCardThemeMap: Record<string, { color: string; englishName: string }> =
const filteredHalls = computed(() => props.halls)
const shouldUseHostNavigation = computed(() => isEmbeddedInWechatMiniProgram())
const showInternalHeader = computed(() => !shouldUseHostNavigation.value)
const showInternalHeader = computed(() => props.forceInternalHeader || !shouldUseHostNavigation.value)
const headerTitle = computed(() => {
if (props.stage === 'stop') return props.selectedHallName || '讲解对象'
return '展厅讲解'

View File

@@ -10,6 +10,7 @@
<ExplainHallSelect
:halls="explainHallItems"
stage="hall"
force-internal-header
:loading="explainLoading"
:error="explainError"
@hall-click="handleExplainHallClick"