gonggao.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <template>
  2. <div id="gonggao">
  3. <el-row>
  4. <el-col :span="24" class="info">
  5. <el-col :span="24" class="topInfo">
  6. <el-col :span="20" class="left">通知公告</el-col>
  7. <!-- {{ gonggaoList[0].column_name }} -->
  8. <el-col :span="4" class="more">
  9. <el-link :underline="false"><el-image :src="more"></el-image></el-link>
  10. </el-col>
  11. </el-col>
  12. <el-col :span="24" class="list">
  13. <el-col :span="9" class="listImg">
  14. <el-image style="width:270px;height:190px;" :src="listImg"></el-image>
  15. </el-col>
  16. <el-col :span="15" class="gonggaoList">
  17. <ul>
  18. <li v-for="(item, index) in gonggaoList" :key="index" @click="$router.push({ path: '/government/governmentDetail', query: { id: item.id } })">
  19. <el-link :underline="false">
  20. <span class="title textOver">{{ item.title }}</span>
  21. </el-link>
  22. </li>
  23. </ul>
  24. </el-col>
  25. </el-col>
  26. </el-col>
  27. </el-row>
  28. </div>
  29. </template>
  30. <script>
  31. export default {
  32. name: 'gonggao',
  33. props: {
  34. gonggaoList: null,
  35. },
  36. components: {},
  37. data: () => ({
  38. more: require('@/assets/更多.png'),
  39. title: '通知公告',
  40. listImg: require('@/assets/tongji.png'),
  41. }),
  42. created() {},
  43. computed: {},
  44. methods: {},
  45. };
  46. </script>
  47. <style lang="less" scoped>
  48. ul {
  49. padding: 0;
  50. margin: 0;
  51. }
  52. li {
  53. padding: 0;
  54. margin: 0;
  55. color: #999;
  56. }
  57. .info {
  58. width: 100%;
  59. height: 270px;
  60. overflow: hidden;
  61. padding: 20px;
  62. background-color: #fff;
  63. }
  64. .topInfo {
  65. height: 30px;
  66. line-height: 30px;
  67. margin: 0 0 10px 0;
  68. }
  69. .topInfo .left {
  70. font-size: 22px;
  71. color: #2c3350;
  72. font-weight: bold;
  73. }
  74. .topInfo .more {
  75. height: 30px;
  76. text-align: right;
  77. padding: 6px 0;
  78. }
  79. .list {
  80. height: 190px;
  81. overflow: hidden;
  82. }
  83. .list .listImg {
  84. width: 270px;
  85. height: 190px;
  86. overflow: hidden;
  87. margin: 0 10px 0 0;
  88. }
  89. .gonggaoList {
  90. padding: 0 0 0 20px;
  91. height: 190px;
  92. overflow: hidden;
  93. }
  94. .gonggaoList ul {
  95. padding: 0 0 0 20px;
  96. }
  97. .gonggaoList ul li {
  98. float: left;
  99. width: 100%;
  100. padding: 0 0 6px 0;
  101. }
  102. .gonggaoList ul li .title {
  103. font-size: 16px;
  104. color: #60626e;
  105. display: inline-block;
  106. width: 440px;
  107. }
  108. .gonggaoList ul li:hover .title {
  109. color: #215299;
  110. }
  111. </style>