index.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <template>
  2. <view class="home-page-box">
  3. <view class="navigation-box"></view>
  4. <!-- 单位 -->
  5. <view class="conpany-box">
  6. <view class="conpany-title">
  7. 黑龙滩管理处
  8. </view>
  9. <view class="split-line"></view>
  10. </view>
  11. <!-- 标题 -->
  12. <header-title></header-title>
  13. <!-- 水库水情功能区 -->
  14. <reservoir-func></reservoir-func>
  15. <!-- 巡查管护功能区 -->
  16. <inspection-func></inspection-func>
  17. <view class="empty-box"></view>
  18. </view>
  19. </template>
  20. <script setup>
  21. import {
  22. onMounted,
  23. ref
  24. } from 'vue';
  25. import moment from 'moment';
  26. import headerTitle from './components/headerTitle.vue';
  27. import reservoirFunc from './components/reservoirFunc.vue';
  28. import inspectionFunc from './components/inspectionFunc.vue';
  29. onMounted(() => {
  30. })
  31. </script>
  32. <style lang="scss" scoped>
  33. .home-page-box {
  34. min-height: calc(100vh - var(--window-bottom));
  35. background: url('@/static/images/index/bg.png') no-repeat;
  36. background-size: 100% 100%;
  37. padding: 0 20rpx;
  38. .navigation-box{
  39. height: var(--status-bar-height);
  40. min-height: 88rpx;
  41. margin-bottom: 44rpx;
  42. }
  43. .conpany-box{
  44. .conpany-title{
  45. font-family: Source Han Sans;
  46. font-size: 50rpx;
  47. font-weight: bold;
  48. font-feature-settings: "kern" on;
  49. color: $uni-text-color;
  50. line-height: 72rpx;
  51. }
  52. .split-line{
  53. margin-top: 16rpx;
  54. width: 140rpx;
  55. height: 8rpx;
  56. background: #2E7DF3;
  57. }
  58. }
  59. .empty-box{
  60. height: 40rpx;
  61. }
  62. }
  63. </style>