| | |
| | | <template> |
| | | <PageLayout v-bind="props"> |
| | | <template #navigationBar> |
| | | <TransparentNavigationBar :title="title" :is-absolute="false"> |
| | | <template #left> |
| | | <slot name="left"></slot> |
| | | </template> |
| | | </TransparentNavigationBar> |
| | | <TransparentNavigationBar :title="title" :is-absolute="false"></TransparentNavigationBar> |
| | | </template> |
| | | <template #bg> |
| | | <img :src="OssAssets.common.CommonPageBg" class="common-page-bg" /> |
| | | </template> |
| | | <template #default="{ scrollViewHeight }"> |
| | | <slot :scrollViewHeight="scrollViewHeight" /> |
| | | <template #default> |
| | | <img :src="IconBg" class="common-page-bg" /> |
| | | <slot /> |
| | | </template> |
| | | </PageLayout> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import PageLayout from './PageLayout.vue'; |
| | | import IconBg from '@/assets/components/icon-page-bg.png'; |
| | | import TransparentNavigationBar from '../NavigationBar/TransparentNavigationBar.vue'; |
| | | import _ from 'lodash'; |
| | | import { OssAssets } from '@/constants'; |
| | | |
| | | defineOptions({ |
| | | name: 'PageLayoutWithBg', |
| | |
| | | const props = withDefaults(defineProps<Props>(), {}); |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | @import '@/styles/common.scss'; |
| | | <style lang="scss" scoped> |
| | | @use '@/style/common.scss' as *; |
| | | |
| | | .common-page-bg { |
| | | position: fixed; |
| | | z-index: -1; |
| | | top: 0; |
| | | left: 0; |
| | | z-index: -1; |
| | | width: 100%; |
| | | height: 644px; |
| | | object-fit: cover; |
| | | } |
| | | </style> |