index.vue 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. import { useIM } from '@/hooks/useIM'
  23. useIM()
  24. </script>
  25. <style lang="scss" scoped>
  26. .page-app {
  27. position: relative;
  28. // color: var(--ui-TC);
  29. // background-color: var(--ui-BG-1) !important;
  30. z-index: 2;
  31. display: flex;
  32. width: 100%;
  33. height: 100vh;
  34. .page-main {
  35. position: absolute;
  36. z-index: 1;
  37. width: 100%;
  38. min-height: 100%;
  39. display: flex;
  40. flex-direction: column;
  41. .page-body {
  42. width: 100%;
  43. position: relative;
  44. z-index: 1;
  45. flex: 1;
  46. }
  47. }
  48. }
  49. </style>