meiti.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <template>
  2. <div id="notice">
  3. <el-row>
  4. <el-col :span="24" class="top">
  5. <!-- @click="$router.push({ path: `/info/list/${notice.column.id}` })" -->
  6. <el-link :underline="false" href="#/more">
  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. <el-col :span="24" class="content">
  14. <!-- @click.native="$router.push({ path: `/info/detail?id=${item.id}` })" -->
  15. <el-col :span="24" class="list" v-for="(item, index) in meitiList" :key="index">
  16. <span class="dot"></span>
  17. <el-link :underline="false" href="#/detail">
  18. <span class="title">{{ item.title }}</span>
  19. </el-link>
  20. <span class="tt">{{ item.time }}</span>
  21. </el-col>
  22. </el-col>
  23. </el-row>
  24. </div>
  25. </template>
  26. <script>
  27. export default {
  28. name: 'notice',
  29. props: {
  30. meitiList: 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. .list {
  67. padding: 9px;
  68. }
  69. .list .dot {
  70. display: inline-block;
  71. width: 4px;
  72. height: 4px;
  73. background: #ccc;
  74. margin: 0 10px 3px 10px;
  75. }
  76. .list .title {
  77. display: inline-block;
  78. max-width: 256px;
  79. padding: 0 5px 0 0;
  80. font-size: 16px;
  81. overflow: hidden;
  82. text-overflow: ellipsis;
  83. white-space: nowrap;
  84. }
  85. .list .tt {
  86. font-size: 16px;
  87. display: inline-block;
  88. max-width: 101px;
  89. color: #606266;
  90. }
  91. </style>