Discover.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <template>
  2. <div>
  3. <el-col
  4. v-for="(more, index) in moreList"
  5. :key="index"
  6. :md="6"
  7. :sm="6"
  8. :xs="6"
  9. style="padding: 5px;"
  10. >
  11. <el-card class="box-card">
  12. <div slot="header" class="clearfix">
  13. <el-row>
  14. <el-col :md="4">
  15. <router-link target="_blank" :to="more.link">
  16. <el-avatar>
  17. <el-image :src="more.coverUrl" />
  18. </el-avatar>
  19. </router-link>
  20. </el-col>
  21. <el-col :md="16">
  22. <el-row style="padding: 5px;">
  23. <span v-html="more.title" />
  24. </el-row>
  25. <el-row style="padding: 5px;">
  26. <span v-html="more.desc" />
  27. </el-row>
  28. </el-col>
  29. </el-row>
  30. </div>
  31. </el-card>
  32. </el-col>
  33. </div>
  34. </template>
  35. <script>
  36. export default {
  37. name: 'Discover',
  38. data() {
  39. return {
  40. moreList: []
  41. }
  42. },
  43. created() {
  44. document.title = '发现'
  45. this.getData()
  46. },
  47. methods: {
  48. getData() {
  49. this.moreList.push(
  50. {
  51. title: 'map',
  52. desc: '地图',
  53. link: '/map',
  54. coverUrl: ''
  55. },
  56. {
  57. title: 'exam',
  58. desc: '考试',
  59. link: '/exam',
  60. coverUrl: ''
  61. },
  62. {
  63. title: 'mall',
  64. desc: '商城',
  65. link: '/mall',
  66. coverUrl: ''
  67. },
  68. {
  69. title: 'vote',
  70. desc: '投票',
  71. link: '/vote',
  72. coverUrl: ''
  73. },
  74. {
  75. title: 'wenshu',
  76. desc: '裁判文书',
  77. link: '/wenshu',
  78. coverUrl: ''
  79. },
  80. {
  81. title: 'chart',
  82. desc: '图表',
  83. link: '/chart',
  84. coverUrl: ''
  85. }/*,
  86. {
  87. title: 'chat',
  88. desc: 'IM',
  89. link: '/chat',
  90. coverUrl: ''
  91. }*/
  92. )
  93. }
  94. }
  95. }
  96. </script>
  97. <style scoped>
  98. #movie-list {
  99. padding-top: 10px;
  100. padding-left: 3%;
  101. padding-right: 3%;
  102. }
  103. </style>