index.vue 1009 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <div class="layout">
  3. <!-- <div class="fixed-mask"></div> -->
  4. <HeadCpt></HeadCpt>
  5. <router-view v-slot="{ Component }">
  6. <component :is="Component"></component>
  7. </router-view>
  8. <SidebarCpt></SidebarCpt>
  9. <LoginModal v-if="appStore.showLoginModal"></LoginModal>
  10. <PayCourse></PayCourse>
  11. </div>
  12. </template>
  13. <script lang="ts" setup>
  14. import { useAppStore } from '@/store/app';
  15. import HeadCpt from './head/index.vue';
  16. import SidebarCpt from './sidebar/index.vue';
  17. document.body.style.minWidth = '1200px';
  18. const appStore = useAppStore();
  19. </script>
  20. <style lang="scss" scoped>
  21. .layout {
  22. box-sizing: border-box;
  23. padding-top: $header-height;
  24. min-height: 100vh;
  25. .fixed-mask {
  26. position: fixed;
  27. top: 0;
  28. right: 0;
  29. z-index: 50;
  30. width: 400px;
  31. height: 300px;
  32. background-color: #ffd700;
  33. background-image: linear-gradient(239deg, #ffd700 0%, #ffffff 100%);
  34. opacity: 0.2;
  35. filter: blur(70px);
  36. pointer-events: none;
  37. }
  38. }
  39. </style>