feat(ui): unify logistics-style side panel flow

This commit is contained in:
Ruslan Bakiev
2026-04-21 10:46:35 +07:00
parent d3183bf6ad
commit 54aac790ee
8 changed files with 544 additions and 422 deletions

View File

@@ -5,6 +5,16 @@ const localePath = useLocalePath()
const isHomePage = computed(() => route.path === localePath('/'))
const isCatalogSection = computed(() => route.path.startsWith(localePath('/catalog')))
const isClientArea = computed(() => route.path.startsWith(localePath('/clientarea')))
const isFullscreenMapPage = computed(() => {
const p = route.path
return (
p.startsWith(localePath('/catalog/')) ||
p === localePath('/catalog') ||
p === localePath('/clientarea/orders') ||
p === localePath('/select-location/map') ||
p === localePath('/clientarea/orders/map')
)
})
const contentClass = computed(() => {
if (isCatalogSection.value || isHomePage.value) {
@@ -27,5 +37,7 @@ const mainStyle = computed(() => {
<main :class="contentClass" :style="mainStyle">
<slot />
</main>
<AppFooter v-if="!isFullscreenMapPage" />
</div>
</template>