layout.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <template>
  2. <div :style="`background:url(${bg}) no-repeat fixed;background-size: 100% 100%;`">
  3. <el-row>
  4. <el-col :span="24" class="top">
  5. <top></top>
  6. </el-col>
  7. <el-col :span="24" class="logo">
  8. <div class="w_1200">
  9. <logo :info="info"></logo>
  10. </div>
  11. </el-col>
  12. <el-col :span="24" class="menu">
  13. <div class="w_1200">
  14. <menuInfo></menuInfo>
  15. </div>
  16. </el-col>
  17. <el-col :span="24" class="main">
  18. <div class="w_1200">
  19. <router-view />
  20. </div>
  21. </el-col>
  22. <el-col :span="24" class="foot">
  23. <div class="w_1200">
  24. <foot :info="info"></foot>
  25. </div>
  26. </el-col>
  27. </el-row>
  28. </div>
  29. </template>
  30. <script>
  31. import top from './top.vue';
  32. import logo from './logo.vue';
  33. import menuInfo from './menuInfo.vue';
  34. import foot from './foot.vue';
  35. export default {
  36. name: 'government',
  37. props: {
  38. info: null, //站点信息
  39. },
  40. components: {
  41. top, //头部
  42. logo, //logo
  43. menuInfo, //导航
  44. foot, //底部
  45. },
  46. data: () => ({
  47. bg: require('@common/assets/home/bg.jpg'),
  48. }),
  49. created() {},
  50. computed: {},
  51. methods: {},
  52. };
  53. </script>
  54. <style lang="less" scoped>
  55. .w_1200 {
  56. width: 1200px;
  57. margin: 0 auto;
  58. }
  59. .top {
  60. height: 40px;
  61. overflow: hidden;
  62. background-color: rgba(11, 58, 125, 0.8);
  63. }
  64. .logo {
  65. height: 200px;
  66. overflow: hidden;
  67. }
  68. .menu {
  69. height: 70px;
  70. overflow: hidden;
  71. }
  72. .main {
  73. // height: 1080px;
  74. overflow: hidden;
  75. margin: 10px 0;
  76. }
  77. .foot {
  78. float: left;
  79. width: 100%;
  80. height: 120px;
  81. overflow: hidden;
  82. }
  83. </style>