From c3aa826406d52957d6f98d0ecd4b77413d5ce908 Mon Sep 17 00:00:00 2001 From: inleft <inleft@qq.com> Date: Mon, 29 Aug 2022 18:23:08 +0800 Subject: [PATCH] 统计模块异步加载 --- src/components/mini/box-new-article.vue | 43 +++++++++++++++++-------------------------- 1 files changed, 17 insertions(+), 26 deletions(-) diff --git a/src/components/mini/box-new-article.vue b/src/components/mini/box-new-article.vue index af47074..5acd1a9 100644 --- a/src/components/mini/box-new-article.vue +++ b/src/components/mini/box-new-article.vue @@ -26,12 +26,11 @@ </a> <div class="article-meta-wrap" style="display: flex;"> - <span class="post-meta-date"> + <span class="post-meta-date" style="margin-right: 7px;"> <a-icon type="calendar" /> <span class="article-meta-label"></span> <span class="article-meta__categories"> {{publishDate}} </span> </span> - <span class="article-meta__separator" style="margin: 0px 5px ;">|</span> <span class="article-meta"> <a-icon type="book" /> @@ -40,28 +39,18 @@ </a> <span v-if="jumpURL !=null && jumpURL!=''"> - <span class="article-meta__separator" style="margin: 0px 3px 5px 0px ;">|</span> - <span class="post-meta-date"> - <a-icon type="share-alt" /> - <a :href="jumpURL" target="_blank" class="no-underline"> 外链 </a> - </span> + <a-icon type="share-alt" /> + <a :href="jumpURL" target="_blank" class="no-underline"> 外链 </a> </span> <span v-else-if="articleFileType==fileType.fileTypeTalking_9"> - <span> - <span class="article-meta__separator" style="margin: 0px 3px 5px 0px ;">|</span> - <span class="post-meta-date"> - <a-icon type="thunderbolt" />碎碎念 - </span> - </span> + <a-icon type="thunderbolt" /> + <span class="post-meta-date">碎碎念</span> </span> <span v-if="articleFileType==fileType.fileTypeVideo_3"> - <span class="article-meta__separator" style="margin: 0px 3px ;"> | </span> + <a-icon type="video-camera" /> <span class="post-meta-date"> - <a-icon type="video-camera" /> - <a @click="routerToPlatform()"> - 视频 - </a> + <a @click="routerToPlatform()">视频</a> </span> </span> <!-- <a class="article-meta__categories" href="#"> {{tag}}</a> --> @@ -96,9 +85,9 @@ methods: { routerJump(id, articleFileType, typeId) { let routerName = "mdDetail"; - if (articleFileType == this.fileType.fileTypeVideo_3) { - routerName = "videoDetail"; - } + // if (articleFileType == this.fileType.fileTypeVideo_3) { + // routerName = "videoDetail"; + // } this.$router.push({ name: routerName, @@ -107,11 +96,11 @@ articleFileType: articleFileType, typeId: typeId }, - params: { - id: id, - articleFileType: articleFileType, - typeId: typeId - } + // params: { + // id: id, + // articleFileType: articleFileType, + // typeId: typeId + // } }) }, routerToPlatform() { @@ -209,6 +198,8 @@ box-shadow: aliceblue; } + + // #recent-posts>.recent-post-item:not(:first-child) { // margin-top: 1rem; // } -- Gitblit v1.9.1