inleft
2022-08-23 eeef9f3413151bea79690aac4abb737aff0cb6c8
src/components/mini/box-new-article.vue
@@ -4,32 +4,36 @@
         <div class="miniTag" v-if="isTop==1">置顶</div>
         <div class="post_cover left_radius" v-if="index%2==0">
            <router-link :to="{path:'/platform'}" :title="title" v-if="articleFileType==myConstant.fileTypeVideo">
            <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">
            </router-link>
            <a :href="jumpURL" target="_blank" class="no-underline"
            <!-- <a :href="jumpURL" target="_blank" class="no-underline"
               v-else-if="articleFileType==myConstant.fileTypeShort" @click="showMsg(articleFileType,jumpURL)">
               <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}}" :title="title" v-else>
            </a> -->
            <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">
            </router-link>
         </div>
         <div class="post_cover right_radius" v-else>
            <router-link :to="{path:'/platform'}" :title="title" v-if="articleFileType==myConstant.fileTypeVideo">
            <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">
            </router-link>
            <a :href="jumpURL" target="_blank" class="no-underline"
            <!-- <a :href="jumpURL" target="_blank" class="no-underline"
               v-else-if="articleFileType==myConstant.fileTypeShort" @click="showMsg(articleFileType,jumpURL)">
               <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}}" :title="title" v-else>
            </a> -->
            <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">
            </router-link>
@@ -37,19 +41,28 @@
         <div class="recent-post-info">
            <router-link :to="{path:'/mdDetail',query:{id:id,articleFileType:articleFileType}}"
               class="article-title">
            <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" />
               {{title}}
               <a-badge :count="1" dot v-if="isAnyUpdate==1" title="最近有更新"></a-badge>
            </router-link>
            <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" />
               {{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;">
               <span class="post-meta-date">
                  <a-icon type="calendar" />
                  <span class="article-meta-label"></span>
                  <time datetime="2022-01-13T06:25:00.000Z" title=" 2022-01-13 14:25:00"> {{publishDate}} </time>
                  <time> {{publishDate}} </time>
               </span>
               <span class="article-meta__separator" style="margin: 0px 3px ;"> | </span>
@@ -59,7 +72,7 @@
                     class="article-meta__categories"> {{articleTypeName}}</router-link>
                  <span v-if="articleFileType==myConstant.fileTypeShort">
                     <span v-if="jumpURL !=null && jumpURL!=''">
                        <span class="article-meta__separator" style="margin: 0px 3px ;">|</span>
                        <span class="article-meta__separator" style="margin: 0px 3px ;"> | </span>
                        <span class="post-meta-date">
                           <a-icon type="share-alt" />
                           <a :href="jumpURL" target="_blank" class="no-underline"> 外链 </a>
@@ -67,7 +80,7 @@
                     </span>
                     <span v-else>
                        <span class="article-meta__separator" style="margin: 0px 3px ;">|</span>
                        <span class="article-meta__separator" style="margin: 0px 3px ;"> | </span>
                        <span class="post-meta-date">
                           <a-icon type="thunderbolt" />碎碎念
                        </span>
@@ -75,14 +88,13 @@
                  </span>
                  <span v-if="articleFileType==myConstant.fileTypeVideo">
                     <span v-if="jumpURL !=null && jumpURL!=''">
                        <span class="article-meta__separator" style="margin: 0px 3px ;">|</span>
                        <span class="post-meta-date">
                           <a-icon type="video-camera" />
                           <a :href="jumpURL" target="_blank" class="no-underline"> 视频 </a>
                        </span>
                     <span class="article-meta__separator" style="margin: 0px 3px ;"> | </span>
                     <span class="post-meta-date">
                        <a-icon type="video-camera" />
                        <router-link :to="{path:'/videoDetail',query:{id:id}}">
                           视频
                        </router-link>
                     </span>
                  </span>
                  <!-- <a class="article-meta__categories" href="#"> {{tag}}</a> -->
               </span>
@@ -119,6 +131,9 @@
         "index": {
            default: 0,
         },
         "typeId": {
            default: "",
         },
         "id": {
            default: 0,
         },