| | |
| | | import IconArrowWhite from '@/assets/common/icon-navi-arrow-white.png'; |
| | | import Taro from '@tarojs/taro'; |
| | | import { goBack } from '@/utils'; |
| | | import { TabBarPageRouter } from '@/constants'; |
| | | import { TabBarPageRouterForCheck } from '@/constants'; |
| | | |
| | | defineOptions({ |
| | | name: 'TransparentNavigationBar', |
| | |
| | | const props = defineProps(commonNavigationBarProps); |
| | | |
| | | const router = Taro.useRouter(); |
| | | console.log('router: ', router); |
| | | |
| | | const isLastPage = computed(() => { |
| | | const pages = Taro.getCurrentPages(); |
| | |
| | | }); |
| | | |
| | | const isTabbarPage = computed(() => |
| | | Object.values(TabBarPageRouter).some((x) => x.toLowerCase() === router.path.toLowerCase()) |
| | | Object.values(TabBarPageRouterForCheck).some((x) => |
| | | router.path.toLowerCase().includes(x.toLowerCase()) |
| | | ) |
| | | ); |
| | | |
| | | const barStyle = computed(() => { |
| | |
| | | width: 100%; |
| | | |
| | | .common-navigation-bar-title { |
| | | height: 36px; |
| | | height: 48px; |
| | | } |
| | | } |
| | | </style> |