messServiceWater.vue 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <template>
  2. <el-row class="introduce">
  3. <el-col :span="24" class="bigImage"></el-col>
  4. <el-col :span="24" class="info">
  5. <el-col :span="24" class="menus">
  6. <menusIndex />
  7. </el-col>
  8. <el-col :span="24" class="bottom">
  9. <el-col :span="24" class="zero"> title </el-col>
  10. <el-col :span="24" class="zero"> content </el-col>
  11. </el-col>
  12. <el-col :span="24" class="foot">
  13. <foot-index />
  14. </el-col>
  15. </el-col>
  16. </el-row>
  17. </template>
  18. <script setup lang="ts">
  19. // 信息公开-企业服务-用水发展的详情页
  20. // TODO:需要自己排下版
  21. /* 菜单 */
  22. import menusIndex from '../../components/windows/menusIndex.vue'
  23. /* 底部信息 */
  24. import footIndex from '../../components/windows/footIndex.vue'
  25. import { common } from '@/api/api'
  26. import { get } from 'lodash-es'
  27. import { ref, onMounted, computed } from 'vue'
  28. import { useRoute } from 'vue-router'
  29. const route = useRoute()
  30. const data = ref()
  31. onMounted(() => {
  32. init()
  33. })
  34. const content_id = computed(() => {
  35. return get(route, 'query.content_id')
  36. })
  37. const init = async () => {
  38. const result = await common.content(content_id.value)
  39. if (result.errcode == 0) {
  40. data.value = get(result, 'data')
  41. }
  42. }
  43. </script>
  44. <style scoped lang="scss">
  45. .introduce {
  46. position: relative;
  47. .bigImage {
  48. height: 480px;
  49. overflow: hidden;
  50. background-image: url('/brief5.png');
  51. background-repeat: no-repeat;
  52. background-size: 100% 100%;
  53. }
  54. .info {
  55. position: absolute;
  56. top: 0;
  57. width: 100%;
  58. height: 100vh;
  59. overflow: hidden;
  60. .menus {
  61. height: 66px;
  62. overflow: hidden;
  63. }
  64. .bottom {
  65. height: calc(100vh - 350px);
  66. overflow-y: auto;
  67. margin: 0 auto;
  68. .zero {
  69. margin: 0 0 40px 0;
  70. }
  71. .top {
  72. padding: 0 17%;
  73. }
  74. }
  75. }
  76. }
  77. </style>