index.vue 836 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <template>
  2. <div :style="{ '--current-color': theme }" class="app-wrapper">
  3. <van-nav-bar :title="route.meta.title || '福建水利监管工作平台'" />
  4. <!-- 展示页 -->
  5. <app-main />
  6. <!-- 底部 -->
  7. <bottom-nav />
  8. </div>
  9. </template>
  10. <script setup>
  11. import { ref } from 'vue';
  12. import { AppMain, BottomNav } from '@/layout/components/index.js'
  13. import { useRoute } from "vue-router";
  14. const route = useRoute()
  15. const theme = ref(localStorage.getItem('theme'))
  16. </script>
  17. <style lang="scss" scoped>
  18. .app-wrapper {
  19. height: 100%;
  20. width: 100%;
  21. position: relative;
  22. .app-main {
  23. position: absolute;
  24. top: 46px;
  25. left: 0;
  26. width: 100%;
  27. height: calc(100% - 102.8px);
  28. background-color: #ebecf0;
  29. }
  30. }
  31. </style>
  32. <style>
  33. .app-wrapper .van-nav-bar__content {
  34. background-color: #007BFF;
  35. }
  36. </style>