detail.vue 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <template>
  2. <div id="detail">
  3. <el-row>
  4. <el-col :span="24" class="top">
  5. <div class="w_1200">
  6. <top :topinfo="topinfo" :menulist="menulist"></top>
  7. </div>
  8. </el-col>
  9. <el-col :span="24" class="banner">
  10. <banner :bannerinfo="bannerinfo"></banner>
  11. </el-col>
  12. <el-col :span="24" class="main">
  13. <div class="w_1200">
  14. <el-col :span="4" class="mainLeft">
  15. <noticeleft :leftmenu="leftmenu"></noticeleft>
  16. </el-col>
  17. <el-col :span="20" class="mainRight">
  18. <noticeright :noticedetail="noticedetail"></noticeright>
  19. </el-col>
  20. </div>
  21. </el-col>
  22. <el-col :span="24" class="foot">
  23. <foot :footinfo="footinfo"></foot>
  24. </el-col>
  25. </el-row>
  26. </div>
  27. </template>
  28. <script>
  29. import top from '../../../layout/master/index/top.vue';
  30. import banner from '../../../layout/master/news/banner.vue';
  31. import noticeleft from '../../../layout/master/notice/noticeleft.vue';
  32. import noticeright from '../../../layout/master/notice/noticeright.vue';
  33. import foot from '../../../layout/master/index/foot.vue';
  34. export default {
  35. name: 'detail',
  36. props: {
  37. topinfo: null, //头部内容
  38. menulist: null, //导航
  39. bannerinfo: null, //banner图片
  40. leftmenu: null, //左侧导航
  41. noticedetail: null, //新闻详情
  42. footinfo: null, //底部信息
  43. },
  44. components: {
  45. top,
  46. banner,
  47. noticeleft,
  48. noticeright,
  49. foot,
  50. },
  51. data: () => ({}),
  52. created() {},
  53. computed: {},
  54. methods: {},
  55. };
  56. </script>
  57. <style lang="less" scoped>
  58. .w_1200 {
  59. width: 1200px;
  60. margin: 0 auto;
  61. }
  62. .top {
  63. height: 140px;
  64. }
  65. .banner {
  66. height: 529px;
  67. margin-bottom: 72px;
  68. }
  69. .main {
  70. height: 1622px;
  71. }
  72. .mainLeft {
  73. width: 303px;
  74. margin-right: 14px;
  75. text-align: center;
  76. }
  77. .mainRight {
  78. width: 883px;
  79. background-color: #f8f2f2;
  80. height: 1568px;
  81. text-align: center;
  82. }
  83. </style>