From eeef9f3413151bea79690aac4abb737aff0cb6c8 Mon Sep 17 00:00:00 2001 From: inleft <inleft@qq.com> Date: Tue, 23 Aug 2022 18:55:22 +0800 Subject: [PATCH] 图片demo --- src/components/mini/box-new-article.vue | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/components/mini/box-new-article.vue b/src/components/mini/box-new-article.vue index 640e836..eee3b5c 100644 --- a/src/components/mini/box-new-article.vue +++ b/src/components/mini/box-new-article.vue @@ -4,7 +4,7 @@ <div class="miniTag" v-if="isTop==1">置顶</div> <div class="post_cover left_radius" v-if="index%2==0"> - <router-link :to="{path:'videoDetail',query:{id:id,articleFileType:articleFileType}}" :title="title" + <router-link :to="{path:'videoDetail',query:{id:id,articleFileType:articleFileType,typeId:typeId}}" :title="title" v-if="articleFileType==myConstant.fileTypeVideo"> <div class="block left_radius"></div> <img class="post_bg" :src="coverFileURL" :onerror="img404" :alt="title"> @@ -14,7 +14,7 @@ <div class="block left_radius"></div> <img class="post_bg" :src="coverFileURL" :onerror="img404" :alt="title"> </a> --> - <router-link :to="{path:'/mdDetail',query:{id:id,articleFileType:articleFileType}}" :title="title" + <router-link :to="{path:'/mdDetail',query:{id:id,articleFileType:articleFileType,typeId:typeId}}" :title="title" v-else> <div class="block left_radius"></div> <img class="post_bg" :src="coverFileURL" :onerror="img404" :alt="title"> @@ -22,7 +22,7 @@ </div> <div class="post_cover right_radius" v-else> - <router-link :to="{path:'videoDetail',query:{id:id,articleFileType:articleFileType}}" :title="title" + <router-link :to="{path:'videoDetail',query:{id:id,articleFileType:articleFileType,typeId:typeId}}" :title="title" v-if="articleFileType==myConstant.fileTypeVideo"> <div class="block left_radius"></div> <img class="post_bg" :src="coverFileURL" :onerror="img404" :alt="title"> @@ -32,7 +32,7 @@ <div class="block left_radius"></div> <img class="post_bg" :src="coverFileURL" :onerror="img404" :alt="title"> </a> --> - <router-link :to="{path:'/mdDetail',query:{id:id,articleFileType:articleFileType}}" :title="title" + <router-link :to="{path:'/mdDetail',query:{id:id,articleFileType:articleFileType,typeId:typeId}}" :title="title" v-else> <div class="block right_radius"></div> <img class="post_bg" :src="coverFileURL" :onerror="img404" :alt="title"> @@ -41,7 +41,7 @@ <div class="recent-post-info"> - <router-link :to="{path:'/videoDetail',query:{id:id,articleFileType:articleFileType}}" + <router-link :to="{path:'/videoDetail',query:{id:id,articleFileType:articleFileType,typeId:typeId}}" class="article-title" v-if="articleFileType==myConstant.fileTypeVideo"> <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" /> @@ -49,7 +49,7 @@ <a-badge :count="1" dot v-if="isAnyUpdate==1" title="最近有更新"></a-badge> </router-link> - <router-link :to="{path:'/mdDetail',query:{id:id,articleFileType:articleFileType}}" + <router-link :to="{path:'/mdDetail',query:{id:id,articleFileType:articleFileType,typeId:typeId}}" class="article-title" v-else> <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" /> @@ -131,6 +131,9 @@ "index": { default: 0, }, + "typeId": { + default: "", + }, "id": { default: 0, }, -- Gitblit v1.9.1