This commit is contained in:
@@ -209,17 +209,6 @@ const isCurrentDetailAudio = computed(() => globalAudioPlayer.isCurrentSource(cu
|
||||
const showAudioPlayer = computed(() => (
|
||||
globalAudioPlayer.visible.value && globalAudioPlayer.hasAudio.value
|
||||
))
|
||||
const isDetailAudioDockVisible = computed(() => (
|
||||
exhibit.value.audio.status === 'playable'
|
||||
&& !isCurrentDetailAudio.value
|
||||
))
|
||||
const audioDockTitle = computed(() => (
|
||||
selectedAudioLanguage.value === 'en-US' ? 'English audio' : '中文讲解音频'
|
||||
))
|
||||
const audioDockSubtitle = computed(() => [
|
||||
exhibit.value.title,
|
||||
exhibit.value.audio.durationLabel
|
||||
].filter(Boolean).join(' · ') || '讲解音频')
|
||||
const isCurrentDetailAudioTarget = computed(() => {
|
||||
const source = globalAudioPlayer.currentSource.value
|
||||
const targetType = exhibit.value.audio.playTargetType || 'ITEM'
|
||||
@@ -231,6 +220,15 @@ const isCurrentDetailAudioTarget = computed(() => {
|
||||
&& source.targetId === targetId
|
||||
)
|
||||
})
|
||||
const isDetailAudioDockVisible = computed(() => (
|
||||
exhibit.value.audio.status === 'playable'
|
||||
&& !isCurrentDetailAudioTarget.value
|
||||
))
|
||||
const audioDockTitle = computed(() => exhibit.value.title || '讲解内容')
|
||||
const audioDockSubtitle = computed(() => [
|
||||
selectedAudioLanguage.value === 'en-US' ? 'English' : '中文',
|
||||
exhibit.value.audio.durationLabel
|
||||
].filter(Boolean).join(' · ') || '讲解')
|
||||
// 讲解详情页只定位到所属展厅,不再追踪具体展品点位。
|
||||
const resolveHallGuidePoi = async () => {
|
||||
return guideUseCase.resolveContentLocationPreviewTarget({
|
||||
@@ -1271,6 +1269,8 @@ const handleBack = () => {
|
||||
.detail-audio-main {
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
padding-top: 18px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.detail-audio-title,
|
||||
|
||||
Reference in New Issue
Block a user