law.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <template>
  2. <div id="law">
  3. <el-row>
  4. <el-col :span="24" class="top">
  5. <el-col :span="20" class="topTit">
  6. <span>{{ title }}</span>
  7. </el-col>
  8. <el-col :span="4" class="topLink">
  9. <el-link :underline="false"
  10. >more<i class="el-icon-d-arrow-right"></i
  11. ></el-link>
  12. </el-col>
  13. </el-col>
  14. <el-col :span="24" class="info">
  15. <el-col
  16. :span="24"
  17. class="list"
  18. v-for="(item, index) in lawList"
  19. :key="index"
  20. >
  21. <el-col :span="19" class="title">
  22. <p class="textOver">
  23. <i class="el-icon-caret-right icon"></i>{{ item.title }}
  24. </p>
  25. </el-col>
  26. <el-col :span="5" class="date">
  27. {{ item.date }}
  28. </el-col>
  29. </el-col>
  30. </el-col>
  31. </el-row>
  32. </div>
  33. </template>
  34. <script>
  35. export default {
  36. name: "law",
  37. props: {
  38. lawList: null
  39. },
  40. components: {},
  41. data: () => ({
  42. title: "政策法规"
  43. }),
  44. created() {},
  45. computed: {},
  46. methods: {}
  47. };
  48. </script>
  49. <style lang="less" scoped>
  50. p {
  51. padding: 0;
  52. margin: 0;
  53. }
  54. .textOver {
  55. overflow: hidden;
  56. text-overflow: ellipsis;
  57. white-space: nowrap;
  58. }
  59. .top {
  60. height: 39px;
  61. line-height: 39px;
  62. border-bottom: 1px solid #176ebb;
  63. }
  64. .top .topTit span {
  65. display: inline-block;
  66. width: 110px;
  67. height: 39px;
  68. line-height: 39px;
  69. text-align: center;
  70. color: #fff;
  71. font-size: 16px;
  72. background-color: #176ebb;
  73. }
  74. .top .topLink {
  75. height: 39px;
  76. line-height: 39px;
  77. text-align: center;
  78. }
  79. .top .topLink .el-link {
  80. height: 39px;
  81. line-height: 39px;
  82. text-align: center;
  83. color: #000;
  84. font-size: 16px;
  85. text-transform: uppercase;
  86. }
  87. .top .topLink:hover .el-link {
  88. color: #a32324;
  89. }
  90. .list {
  91. padding: 8px 10px;
  92. }
  93. .list .title {
  94. font-size: 16px;
  95. }
  96. .list .title .icon {
  97. float: left;
  98. padding: 4px 4px;
  99. // color: #176ebb;
  100. }
  101. .list .date {
  102. font-size: 16px;
  103. }
  104. .list:hover {
  105. cursor: pointer;
  106. }
  107. .list:hover .title {
  108. color: #a32324;
  109. }
  110. .list:hover .date {
  111. color: #a32324;
  112. }
  113. </style>