index.vue 1004 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <!-- -->
  2. <template>
  3. <view class="page-app" >
  4. <view class="page-main">
  5. <view class="page-body">
  6. <!-- 页面内容插槽 -->
  7. <slot />
  8. </view>
  9. </view>
  10. <view class="page-modal">
  11. <!-- 全局授权弹窗 -->
  12. <authModal />
  13. <!-- 全局分享弹窗 -->
  14. <!-- <s-share-modal :shareInfo="shareInfo" /> -->
  15. <!-- 全局快捷入口 -->
  16. <!-- <s-menu-tools /> -->
  17. </view>
  18. </view>
  19. </template>
  20. <script setup>
  21. import authModal from './components/auth-modal.vue'
  22. </script>
  23. <style lang="scss" scoped>
  24. .page-app {
  25. position: relative;
  26. // color: var(--ui-TC);
  27. // background-color: var(--ui-BG-1) !important;
  28. z-index: 2;
  29. display: flex;
  30. width: 100%;
  31. height: 100vh;
  32. .page-main {
  33. position: absolute;
  34. z-index: 1;
  35. width: 100%;
  36. min-height: 100%;
  37. display: flex;
  38. flex-direction: column;
  39. .page-body {
  40. width: 100%;
  41. position: relative;
  42. z-index: 1;
  43. flex: 1;
  44. }
  45. }
  46. }
  47. </style>