修复讲解详情返回对象列表
Some checks failed
CI / verify (push) Has been cancelled

This commit is contained in:
lyf
2026-07-18 01:29:06 +08:00
parent 5a711377b0
commit d86f24566e
2 changed files with 28 additions and 3 deletions

View File

@@ -134,8 +134,11 @@ const handleExplainGuideStopClick = (stop: ExplainGuideStopCatalogItem) => {
? { targetType: stop.playTargetType, targetId: stop.playTargetId }
: normalizeExplainDetailTargetFromGuideStop({ id: stop.id })
const params = new URLSearchParams({ id: stop.id, tab: 'explain', targetType: target.targetType, targetId: target.targetId })
if (stop.hallId) params.set('hallId', stop.hallId)
if (stop.hallName) params.set('hallName', stop.hallName)
// 分页对象可能未回填展厅字段,详情返回必须保留当前列表的展厅上下文。
const hallId = stop.hallId || selectedExplainHallId.value
const hallName = stop.hallName || selectedExplainHallName.value
if (hallId) params.set('hallId', hallId)
if (hallName) params.set('hallName', hallName)
if (stop.floorId) params.set('floorId', stop.floorId)
if (stop.poiId) params.set('poiId', stop.poiId)
uni.navigateTo({ url: `/pages/exhibit/detail?${params.toString()}` })