index.vue 852 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. </view>
  14. </view>
  15. </template>
  16. <script setup>
  17. import authModal from './components/auth-modal.vue'
  18. </script>
  19. <style lang="scss" scoped>
  20. .page-app {
  21. position: relative;
  22. // color: var(--ui-TC);
  23. // background-color: var(--ui-BG-1) !important;
  24. // z-index: 2;
  25. display: flex;
  26. width: 100%;
  27. height: 100vh;
  28. .page-main {
  29. position: absolute;
  30. z-index: 1;
  31. width: 100%;
  32. min-height: 100%;
  33. display: flex;
  34. flex-direction: column;
  35. .page-body {
  36. width: 100%;
  37. position: relative;
  38. z-index: 1;
  39. flex: 1;
  40. }
  41. }
  42. }
  43. </style>