infoList.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <template>
  2. <div id="infoList">
  3. <el-row>
  4. <el-col :span="24" class="info">
  5. <el-col :span="24" class="one">
  6. <el-col :span="24" class="top">
  7. <span></span>
  8. <span>科技资讯</span>
  9. <span>MORE</span>
  10. </el-col>
  11. <el-col :span="24" class="list">
  12. <el-col :span="24" class="oneList" v-for="(item, index) in oneList" :key="index">
  13. <span></span>
  14. <span class="textOver">{{ item.title }}</span>
  15. <span>{{ item.date }}</span>
  16. </el-col>
  17. </el-col>
  18. </el-col>
  19. <el-col :span="24" class="one">
  20. <el-col :span="24" class="top">
  21. <span></span>
  22. <span>技术前沿</span>
  23. <span>MORE</span>
  24. </el-col>
  25. <el-col :span="24" class="list">
  26. <el-col :span="24" class="oneList" v-for="(item, index) in twoList" :key="index">
  27. <span></span>
  28. <span class="textOver">{{ item.title }}</span>
  29. <span>{{ item.date }}</span>
  30. </el-col>
  31. </el-col>
  32. </el-col>
  33. <el-col :span="24" class="one">
  34. <el-col :span="24" class="top">
  35. <span></span>
  36. <span>工作动态</span>
  37. <span>MORE</span>
  38. </el-col>
  39. <el-col :span="24" class="list">
  40. <el-col :span="24" class="oneList" v-for="(item, index) in threeList" :key="index">
  41. <span></span>
  42. <span class="textOver">{{ item.title }}</span>
  43. <span>{{ item.date }}</span>
  44. </el-col>
  45. </el-col>
  46. </el-col>
  47. </el-col>
  48. </el-row>
  49. </div>
  50. </template>
  51. <script>
  52. import { mapState, createNamespacedHelpers } from 'vuex';
  53. export default {
  54. name: 'infoList',
  55. props: {
  56. oneList: null,
  57. twoList: null,
  58. threeList: null,
  59. },
  60. components: {},
  61. data: function() {
  62. return {};
  63. },
  64. created() {},
  65. methods: {},
  66. computed: {
  67. ...mapState(['user']),
  68. pageTitle() {
  69. return `${this.$route.meta.title}`;
  70. },
  71. },
  72. metaInfo() {
  73. return { title: this.$route.meta.title };
  74. },
  75. };
  76. </script>
  77. <style lang="less" scoped>
  78. .info {
  79. padding: 0 20px;
  80. .one {
  81. height: 330px;
  82. overflow: hidden;
  83. margin: 0 0 20px 0;
  84. .top {
  85. height: 35px;
  86. margin: 20px 0;
  87. border-bottom: 1px dashed #ccc;
  88. span:first-child {
  89. display: inline-block;
  90. width: 4px;
  91. height: 20px;
  92. background: #005293;
  93. margin: 0 10px -3px 0;
  94. }
  95. span:nth-child(2) {
  96. font-size: 20px;
  97. color: #005293;
  98. font-weight: bold;
  99. }
  100. span:last-child {
  101. float: right;
  102. font-size: 15px;
  103. color: #005293;
  104. }
  105. }
  106. .oneList {
  107. padding: 0 0 7px 0;
  108. span:first-child {
  109. display: inline-block;
  110. width: 4px;
  111. height: 4px;
  112. background: #ccc;
  113. margin: 0px 10px 7px 0px;
  114. }
  115. span:nth-child(2) {
  116. display: inline-block;
  117. font-size: 16px;
  118. color: #555555;
  119. font-family: '微软雅黑';
  120. width: 85%;
  121. margin: 0 30px 0 0;
  122. }
  123. span:last-child {
  124. display: inline-block;
  125. width: 90px;
  126. font-size: 16px;
  127. color: #a8abb7;
  128. font-family: '微软雅黑';
  129. text-align: right;
  130. }
  131. }
  132. }
  133. }
  134. </style>