| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- <template>
- <div>
- <el-col
- v-for="(more, index) in moreList"
- :key="index"
- :md="6"
- :sm="6"
- :xs="6"
- style="padding: 5px;"
- >
- <el-card class="box-card">
- <div slot="header" class="clearfix">
- <el-row>
- <el-col :md="4">
- <router-link target="_blank" :to="more.link">
- <el-avatar>
- <el-image :src="more.coverUrl" />
- </el-avatar>
- </router-link>
- </el-col>
- <el-col :md="16">
- <el-row style="padding: 5px;">
- <span v-html="more.title" />
- </el-row>
- <el-row style="padding: 5px;">
- <span v-html="more.desc" />
- </el-row>
- </el-col>
- </el-row>
- </div>
- </el-card>
- </el-col>
- </div>
- </template>
- <script>
- export default {
- name: 'Discover',
- data() {
- return {
- moreList: []
- }
- },
- created() {
- document.title = '发现'
- this.getData()
- },
- methods: {
- getData() {
- this.moreList.push(
- {
- title: 'map',
- desc: '地图',
- link: '/map',
- coverUrl: ''
- },
- {
- title: 'exam',
- desc: '考试',
- link: '/exam',
- coverUrl: ''
- },
- {
- title: 'mall',
- desc: '商城',
- link: '/mall',
- coverUrl: ''
- },
- {
- title: 'vote',
- desc: '投票',
- link: '/vote',
- coverUrl: ''
- },
- {
- title: 'wenshu',
- desc: '裁判文书',
- link: '/wenshu',
- coverUrl: ''
- },
- {
- title: 'chart',
- desc: '图表',
- link: '/chart',
- coverUrl: ''
- }/*,
- {
- title: 'chat',
- desc: 'IM',
- link: '/chat',
- coverUrl: ''
- }*/
- )
- }
- }
- }
- </script>
- <style scoped>
- #movie-list {
- padding-top: 10px;
- padding-left: 3%;
- padding-right: 3%;
- }
- </style>
|