|  |  | 
 |  |  |       </slot> | 
 |  |  |  | 
 |  |  |       <div class="page-layout-scroll-view-wrapper" :style="{ height: scrollViewHeight }"> | 
 |  |  |         <slot :scrollViewHeight="scrollViewHeight" v-if="isAuth"></slot> | 
 |  |  |         <!-- <template v-if="isAuth"> | 
 |  |  |         <DevelopingLayout v-if="developing"></DevelopingLayout> | 
 |  |  |         <template v-else> | 
 |  |  |           <slot :scrollViewHeight="scrollViewHeight" v-if="isAuth"></slot> | 
 |  |  |           <!-- <template v-if="isAuth"> | 
 |  |  |           <slot v-if="useView" :scrollViewHeight="scrollViewHeight"></slot> | 
 |  |  |           <scroll-view | 
 |  |  |             v-else | 
 |  |  | 
 |  |  |             <slot :scrollViewHeight="scrollViewHeight"></slot> | 
 |  |  |           </scroll-view> | 
 |  |  |         </template> --> | 
 |  |  |         </template> | 
 |  |  |       </div> | 
 |  |  |       <div v-if="!pageHeightWithTabBar" class="safe-area-bottom"></div> | 
 |  |  |     </div> | 
 |  |  | 
 |  |  | 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'; | 
 |  |  | import { DevelopingLayout } from '@12333/components'; | 
 |  |  |  | 
 |  |  | defineOptions({ | 
 |  |  |   name: 'PageLayout', | 
 |  |  | 
 |  |  |     type: Number, | 
 |  |  |     default: 388, | 
 |  |  |   }, | 
 |  |  |   developing: { | 
 |  |  |     type: Boolean, | 
 |  |  |     default: false, | 
 |  |  |   }, | 
 |  |  | }); | 
 |  |  |  | 
 |  |  | const _commonNavigationBarProps = usePickProps(props, commonNavigationBarProps); | 
 |  |  | 
 |  |  | 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> | 
 |  |  |  |