From cb7779098c51922d0d7f26568475d350a9f1fad0 Mon Sep 17 00:00:00 2001 From: inleft <inleft@qq.com> Date: Fri, 29 Jul 2022 19:08:22 +0800 Subject: [PATCH] 添加马甲认证,添加小红点更新 --- src/components/mini/box-new-article.vue | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/src/components/mini/box-new-article.vue b/src/components/mini/box-new-article.vue index 0d9e24b..b06bece 100644 --- a/src/components/mini/box-new-article.vue +++ b/src/components/mini/box-new-article.vue @@ -22,6 +22,7 @@ <a-icon type="lock" style="color:rgba(0,0,0,.25)" v-if="authStatus==3" /> <a-icon type="stop" style="color:rgba(0,0,0,.25)" v-if="authStatus==2" /> {{title}} + <a-badge :count="1" dot v-if="isAnyUpdate==1" title="最近有更新"></a-badge> </router-link> <!-- <a class="article-title" href="/mdDetail" :title="title"> {{title}}</a> --> <div class="article-meta-wrap" style="display: flex;"> @@ -49,7 +50,14 @@ </template> <script> + import { + NotificationOutlined + } from '@ant-design/icons-vue'; + export default { + components: { + NotificationOutlined + }, props: { "index": { default: 0, @@ -78,13 +86,19 @@ "publishDate": { default: "", }, + "updateDate": { + default: "", + }, "coverFileURL": { + default: "", + }, + "isAnyUpdate": { default: "", } }, data() { return { - img404: "this.onerror='';this.src=\"https://unpkg.zhimg.com/ahzo@1.0.3/blogpic/1.jpg\"", + img404: "this.onerror='';this.src=\"http://t.inleft.com/share/media_photo/1.jpg\"", } } } -- Gitblit v1.9.1