index.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <template>
  2. <div id="index">
  3. <el-row>
  4. <el-col :sapn="24" class="top">
  5. <top :info="info"></top>
  6. </el-col>
  7. <el-col :sapn="24" class="banner">
  8. <banner :info="info"></banner>
  9. </el-col>
  10. <el-col :sapn="24" class="menu">
  11. <menuInfo></menuInfo>
  12. </el-col>
  13. <el-col :sapn="24" class="main">
  14. 主題
  15. </el-col>
  16. <el-col :sapn="24" class="down">
  17. <down :info="info"></down>
  18. </el-col>
  19. </el-row>
  20. </div>
  21. </template>
  22. <script>
  23. import top from "@/layout/index/top.vue";
  24. import banner from "@/layout/index/banner.vue";
  25. import menuInfo from "@/layout/index/menuInfo.vue";
  26. import down from "@/layout/index/down.vue";
  27. export default {
  28. name: "index",
  29. props: {
  30. info: null //站点信息
  31. },
  32. components: {
  33. top, //头部
  34. banner, //banner
  35. menuInfo, //菜单
  36. down //底部
  37. },
  38. data: () => ({}),
  39. created() {},
  40. computed: {},
  41. methods: {}
  42. };
  43. </script>
  44. <style lang="less" scoped>
  45. .w_1270 {
  46. width: 1270px;
  47. margin: 0 auto;
  48. }
  49. .top {
  50. height: 40px;
  51. overflow: hidden;
  52. }
  53. .banner {
  54. height: 300px;
  55. overflow: hidden;
  56. }
  57. .menu {
  58. height: 50px;
  59. overflow: hidden;
  60. border-bottom: 1px solid #ccc;
  61. }
  62. .main {
  63. min-height: 1000px;
  64. background: #f6f6f6;
  65. }
  66. .down {
  67. height: 135px;
  68. overflow: hidden;
  69. }
  70. </style>