index.vue 1.9 KB

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