index.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <template>
  2. <div id="index">
  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" class="notice">
  17. <notice :noticelist="noticelist"></notice>
  18. </el-col>
  19. <el-col :span="17" class="news">
  20. <news :newslist="newslist"></news>
  21. </el-col>
  22. </div>
  23. </el-col>
  24. <el-col :span="24" class="mains">
  25. <div class="w_1200">
  26. <el-col :span="6" class="mingshi">
  27. <mingshi></mingshi>
  28. </el-col>
  29. <el-col :span="17" class="chengguo">
  30. <chengguo :chengguolist="chengguolist"></chengguo>
  31. </el-col>
  32. </div>
  33. </el-col>
  34. <el-col :span="24" class="mains">
  35. <div class="w_1200">
  36. <el-row>
  37. <el-col :span="12" class="jishu">
  38. <tabsList :title="`技术问答`" :list="tabsList"></tabsList>
  39. </el-col>
  40. <el-col :span="11" :push="1" class="jishu">
  41. <infoList :title="`党建信息`" :list="partyList"></infoList>
  42. </el-col>
  43. </el-row>
  44. </div>
  45. </el-col>
  46. <el-col :span="24" class="down">
  47. <footinfo :topInfo="topInfo"></footinfo>
  48. </el-col>
  49. </el-row>
  50. </div>
  51. </template>
  52. <script>
  53. import top from '../../layout/index/top.vue';
  54. import native from '../../layout/index/native.vue';
  55. import news from '../../layout/index/news.vue';
  56. import notice from '../../layout/index/notice.vue';
  57. import mingshi from '../../layout/index/mingshi.vue';
  58. import chengguo from '../../layout/index/chengguo.vue';
  59. import footinfo from '../../layout/index/foot.vue';
  60. import infoList from '../../layout/index/infoList.vue';
  61. import tabsList from '../../layout/index/tabsList.vue';
  62. export default {
  63. name: 'index',
  64. props: {
  65. topInfos: null,
  66. topInfo: null,
  67. noticelist: null, //公告列表
  68. newslist: null, //新闻列表
  69. chengguolist: null, //成果展示
  70. partyList: null, //党建信息
  71. tabsList: null, //标签页列表
  72. footlist: null,
  73. },
  74. components: {
  75. top,
  76. native,
  77. notice,
  78. news,
  79. mingshi,
  80. chengguo,
  81. footinfo,
  82. infoList,
  83. tabsList,
  84. },
  85. data: () => ({}),
  86. created() { },
  87. computed: {},
  88. methods: {},
  89. };
  90. </script>
  91. <style lang="less" scoped>
  92. .w_1200 {
  93. width: 1200px;
  94. margin: 0 auto;
  95. }
  96. .top {
  97. height: 150px;
  98. }
  99. .menu {
  100. margin-bottom: 20px;
  101. height: 70px;
  102. }
  103. .main {
  104. margin-bottom: 20px;
  105. height: 400px;
  106. }
  107. .main .notice {
  108. height: 400px;
  109. background-color: rgba(255, 255, 255, 0.8);
  110. box-shadow: 0 0 2px #ccc;
  111. overflow: hidden;
  112. }
  113. .main .news {
  114. float: right;
  115. width: 880px;
  116. height: 400px;
  117. overflow: hidden;
  118. background-color: rgba(255, 255, 255, 0.8);
  119. box-shadow: 0 0 2px #ccc;
  120. }
  121. .mains {
  122. margin-bottom: 20px;
  123. height: 400px;
  124. }
  125. .mains .mingshi {
  126. height: 400px;
  127. overflow: hidden;
  128. background-color: rgba(255, 255, 255, 0.8);
  129. box-shadow: 0 0 2px #ccc;
  130. }
  131. .mains .chengguo {
  132. float: right;
  133. width: 880px;
  134. height: 400px;
  135. background-color: rgba(255, 255, 255, 0.8);
  136. box-shadow: 0 0 2px #ccc;
  137. overflow: hidden;
  138. }
  139. .down {
  140. min-height: 100px;
  141. }
  142. .jishu {
  143. height: 400px;
  144. background-color: rgba(255, 255, 255, 0.8);
  145. box-shadow: 0 0 2px #ccc;
  146. overflow: hidden;
  147. }
  148. </style>