notice.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <template>
  2. <div id="notice">
  3. <el-row>
  4. <el-col :span="24">
  5. <el-col :span="24" class="top">
  6. <el-link :underline="false">
  7. <el-col :span="21" class="title">通知公告</el-col>
  8. <el-col :span="3" class="more">
  9. <el-image style="width:25px;height:25px;padding: 20px 0 0 0;" :src="dian"></el-image>
  10. </el-col>
  11. </el-link>
  12. </el-col>
  13. <ul>
  14. <li v-for="(item, index) in noticeList" :key="index">
  15. <a href="#">
  16. <span class="dot"></span>
  17. <span>{{ item.title }}</span>
  18. <span class="tt">{{ item.time }}</span>
  19. </a>
  20. </li>
  21. </ul>
  22. </el-col>
  23. </el-row>
  24. </div>
  25. </template>
  26. <script>
  27. export default {
  28. name: 'notice',
  29. props: {
  30. noticeList: null,
  31. },
  32. components: {},
  33. data: () => ({
  34. dian: require('../../../assets/dot.png'),
  35. }),
  36. created() {},
  37. computed: {},
  38. methods: {},
  39. };
  40. </script>
  41. <style lang="less" scoped>
  42. a {
  43. text-decoration: none;
  44. }
  45. .top {
  46. height: 60px;
  47. line-height: 60px;
  48. }
  49. .top .el-link {
  50. width: 100%;
  51. }
  52. /deep/.top .el-link .el-link--inner {
  53. width: 100%;
  54. }
  55. .top .title {
  56. font-size: 22px;
  57. color: #2c3350;
  58. font-family: 微软雅黑;
  59. font-weight: bold;
  60. padding: 0 0 0 20px;
  61. }
  62. .top .more {
  63. text-align: center;
  64. height: 60px;
  65. }
  66. ul {
  67. padding: 0;
  68. margin: 8px 20px;
  69. }
  70. li {
  71. padding: 5px 0;
  72. color: #95a3c0;
  73. list-style-type: none;
  74. }
  75. li a {
  76. font-size: 14px;
  77. color: #60626e;
  78. }
  79. .dot {
  80. display: inline-block;
  81. width: 5px;
  82. height: 5px;
  83. margin: 0 10px 6px 0;
  84. background-color: #95a3c0;
  85. border-radius: 90px;
  86. }
  87. .tt {
  88. color: #abaab8;
  89. float: right;
  90. }
  91. a > span {
  92. display: inline-block;
  93. max-width: 230px;
  94. overflow: hidden;
  95. text-overflow: ellipsis;
  96. white-space: nowrap;
  97. }
  98. </style>