| | |
| | | import { commonNavigationBarProps } from '../NavigationBar/commonNavigationBar'; |
| | | import { useSystemStore } from '@/stores/modules/system'; |
| | | import Taro from '@tarojs/taro'; |
| | | import { TabBarPageRouter } from '@/constants'; |
| | | import { TabBarPageRouterList } from '@/constants'; |
| | | import { useAuth } from '@/hooks'; |
| | | import { Portal } from 'senin-mini/components'; |
| | | import { usePickProps } from 'senin-mini/hooks'; |
| | |
| | | const router = Taro.useRouter(); |
| | | |
| | | const pageHeightWithTabBar = computed(() => |
| | | Object.values(TabBarPageRouter).some((x) => x.toLowerCase() === router.path.toLowerCase()) |
| | | TabBarPageRouterList.some((x) => x.toLowerCase() === router.path.toLowerCase()) |
| | | ); |
| | | |
| | | const navigationBarHeight = computed( |
| | |
| | | : systemStore.pageHeight; |
| | | pageHeight = pageHeight + (props.showNavigationBar ? 0 : navigationBarHeight.value); |
| | | return pageHeight + 'px'; |
| | | }); |
| | | |
| | | Taro.getSetting({ |
| | | success: function (res) { |
| | | if (!res.authSetting['scope.userLocation']) { |
| | | Taro.authorize({ |
| | | scope: 'scope.userLocation', |
| | | }); |
| | | } |
| | | }, |
| | | }); |
| | | </script> |
| | | |