list.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <template>
  2. <div id="list">
  3. <el-row style="overflow-y: hidden;">
  4. <el-col :span="24" class="top">
  5. <div class="w_1200">
  6. <top :topInfo="topInfo" :topInfos="topInfos"></top>
  7. </div>
  8. </el-col>
  9. <el-col :span="24" class="menu">
  10. <div class="w_1200">
  11. <native></native>
  12. </div>
  13. </el-col>
  14. <el-col :span="24" class="main">
  15. <div class="w_1200">
  16. <el-col :span="6">
  17. <newsLeft v-if="type === 'least'"></newsLeft>
  18. <menuLeft v-else-if="type === 'needMenu'"></menuLeft>
  19. <!-- TODO:还有cg(成果交流)和jl(交流)两个侧菜单 -->
  20. </el-col>
  21. <el-col :span="18">
  22. <newsRight :newsRightList="newsRightList" :total="total"></newsRight>
  23. <!-- <noLeft v-else :newsRightList="newsRightList"></noLeft> -->
  24. </el-col>
  25. </div>
  26. </el-col>
  27. <el-col :span="24" class="down">
  28. <footinfo :topInfo="topInfo"></footinfo>
  29. </el-col>
  30. </el-row>
  31. </div>
  32. </template>
  33. <script>
  34. import top from '../../layout/index/top.vue';
  35. import native from '../../layout/index/native.vue';
  36. import newsRight from '../../layout/news/newsRight.vue';
  37. import menuLeft from '../../layout/list/mainLeft.vue';
  38. import newsLeft from '../../layout/news/newsLeft.vue';
  39. import footinfo from '../../layout/index/foot.vue';
  40. export default {
  41. name: 'list',
  42. props: {
  43. topInfos: null,//头部
  44. topInfo: null,//网络头部
  45. newsRightList: null,//新闻右侧列表
  46. total: null,
  47. type: { type: String }
  48. },
  49. components: {
  50. top,//头部
  51. native,//导航
  52. newsLeft,//新闻左侧
  53. newsRight,//新闻右侧
  54. footinfo,//底部信息
  55. menuLeft,//菜单
  56. },
  57. data: () => ({}),
  58. created() { },
  59. computed: {},
  60. methods: {},
  61. };
  62. </script>
  63. <style lang="less" scoped>
  64. .w_1200 {
  65. width: 1200px;
  66. margin: 0 auto;
  67. }
  68. .top {
  69. height: 150px;
  70. }
  71. .menu {
  72. height: 60px;
  73. }
  74. .down {
  75. min-height: 100px;
  76. }
  77. .main {
  78. min-height: 500px;
  79. margin: 20px 0;
  80. }
  81. </style>