wupengfei
11 小时以前 75ad2eb9984bac7705b337706efaf6e5dd7091ce
apps/cMiniApp/src/components/Layout/PageLayout.vue
@@ -16,8 +16,10 @@
      </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
@@ -28,6 +30,7 @@
            <slot :scrollViewHeight="scrollViewHeight"></slot>
          </scroll-view>
        </template> -->
        </template>
      </div>
      <div v-if="!pageHeightWithTabBar" class="safe-area-bottom"></div>
    </div>
@@ -45,6 +48,7 @@
import { useAuth } from '@/hooks';
import { Portal } from 'senin-mini/components';
import { usePickProps } from 'senin-mini/hooks';
import { DevelopingLayout } from '@12333/components';
defineOptions({
  name: 'PageLayout',
@@ -68,6 +72,10 @@
  linearBgHeight: {
    type: Number,
    default: 388,
  },
  developing: {
    type: Boolean,
    default: false,
  },
});
@@ -94,16 +102,6 @@
    : 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>