同步移动端源码并修复小程序嵌入标题
Some checks failed
CI / verify (push) Has been cancelled

This commit is contained in:
lyf
2026-07-28 18:37:40 +08:00
parent 06ad609e1f
commit 540bb8627f
62 changed files with 4196 additions and 1410 deletions

View File

@@ -421,7 +421,7 @@ describe('WeakNetworkGuideFallback', () => {
const marker = wrapper.get('[data-poi-id="ticket"]')
expect(marker.attributes('data-poi-icon')).toBe('ticket-office')
expect(marker.get('.weak-network-marker-label-icon use').attributes('href'))
.toBe('/static/icons/poi/shortcut-icons.svg#poi-ticket-office')
.toBe('#poi-ticket-office')
expect(marker.get('.weak-network-marker-label').classes()).toContain('weak-network-marker-label')
})
@@ -557,6 +557,39 @@ describe('WeakNetworkGuideFallback', () => {
})
})
it('reserves two exterior zoom-out steps before reporting the Tencent Map handoff boundary', async () => {
const wrapper = mount(WeakNetworkGuideFallback, {
props: {
floorId: '2065808919904776194',
sceneView: 'overview',
floorModelVersion: 'model-v1',
basemapManifest: exteriorBasemapManifest,
presentation: 'two-dimensional',
pois: []
}
})
const renderer = wrapper.vm as unknown as {
zoomCamera: (direction: 'in' | 'out') => void
}
renderer.zoomCamera('out')
renderer.zoomCamera('out')
await wrapper.vm.$nextTick()
const intents = wrapper.emitted('zoomIntent') || []
expect(intents).toHaveLength(2)
expect(intents[0][0]).toMatchObject({
direction: 'out',
outdoorExitReached: false,
viewport: { visibleWorldSpan: 125 }
})
expect(intents[1][0]).toMatchObject({
direction: 'out',
outdoorExitReached: true,
viewport: { visibleWorldSpan: 135 }
})
})
it('routes native H5 wheel input through the semantic viewport zoom', async () => {
const wrapper = mount(WeakNetworkGuideFallback, {
props: {
@@ -651,7 +684,7 @@ describe('WeakNetworkGuideFallback', () => {
expect(wrapper.findAll('.weak-network-route-line')).toHaveLength(1)
})
it('falls back to the neutral grid when the floor model version has no basemap', () => {
it('keeps the sole valid floor basemap when the model version has advanced', () => {
const wrapper = mount(WeakNetworkGuideFallback, {
props: {
floorId: 'L1',
@@ -661,8 +694,8 @@ describe('WeakNetworkGuideFallback', () => {
}
})
expect(wrapper.find('[data-testid="weak-network-basemap"]').exists()).toBe(false)
expect(wrapper.get('[data-testid="weak-network-neutral-grid"]').exists()).toBe(true)
expect(wrapper.get('[data-testid="weak-network-basemap"]').exists()).toBe(true)
expect(wrapper.find('[data-testid="weak-network-neutral-grid"]').exists()).toBe(false)
})
it('keeps map-based route-start selection available in the two-dimensional guide', async () => {