2021-05-07 08:26:51 +08:00
|
|
|
<template>
|
|
|
|
<el-row class="wrapper">
|
|
|
|
<el-col :xs="24" :sm="24" :xl="24" style="margin: 0 auto;">
|
2021-07-01 10:14:04 +08:00
|
|
|
<el-carousel :interval="5000" height="210px" indicator-position="outside" arrow="always">
|
2022-07-25 06:45:33 +08:00
|
|
|
<el-carousel-item v-for="article in announcements.list" :key="article.idArticle">
|
2021-07-01 10:14:04 +08:00
|
|
|
<el-card>
|
2021-05-07 08:26:51 +08:00
|
|
|
<div class="card-body d-flex flex-column">
|
2021-07-01 10:14:04 +08:00
|
|
|
<el-link :href="article.articleLink" style="margin-bottom: .7rem;">
|
2021-05-07 08:26:51 +08:00
|
|
|
<h4>
|
|
|
|
{{ article.articleTitle }}
|
2021-05-07 08:38:24 +08:00
|
|
|
<el-tag
|
|
|
|
style="margin-left: 0.5rem;"
|
|
|
|
size="mini"
|
|
|
|
effect="plain">
|
|
|
|
# 公告
|
|
|
|
</el-tag>
|
2021-05-07 08:26:51 +08:00
|
|
|
</h4>
|
|
|
|
</el-link>
|
|
|
|
<div class="text-muted article-summary-md">{{ article.articlePreviewContent }}</div>
|
2021-07-01 10:14:04 +08:00
|
|
|
<div style="margin-top: 1rem;">
|
|
|
|
<small class="d-block text-muted">发布于 {{ article.timeAgo }}</small>
|
|
|
|
</div>
|
2021-05-07 08:26:51 +08:00
|
|
|
</div>
|
|
|
|
</el-card>
|
|
|
|
</el-carousel-item>
|
|
|
|
</el-carousel>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
name: "announcementList",
|
|
|
|
props: {
|
|
|
|
announcements: {
|
|
|
|
type: Object
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
|
|
</style>
|