inleft
2022-08-17 bc95187efc506413cf85749fe36fe748cf75fed5
重新界定碎念类型入口
2 files modified
31 ■■■■■ changed files
src/components/mini/box-new-article.vue 22 ●●●● patch | view | raw | blame | history
src/components/mini/mdDetail.vue 9 ●●●● patch | view | raw | blame | history
src/components/mini/box-new-article.vue
@@ -4,34 +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:'videoDetail',query:{id:id}}" :title="title"
                <router-link :to="{path:'videoDetail',query:{id:id,articleFileType:articleFileType}}" :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}}" :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:'videoDetail',query:{id:id}}" :title="title"
                <router-link :to="{path:'videoDetail',query:{id:id,articleFileType:articleFileType}}" :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}}" :title="title"
                    v-else>
                    <div class="block right_radius"></div>
                    <img class="post_bg" :src="coverFileURL" :onerror="img404" :alt="title">
                </router-link>
@@ -39,8 +41,8 @@
            <div class="recent-post-info">
                <router-link :to="{path:'/videoDetail',query:{id:id}}" class="article-title"
                    v-if="articleFileType==myConstant.fileTypeVideo">
                <router-link :to="{path:'/videoDetail',query:{id:id,articleFileType:articleFileType}}"
                    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}}
src/components/mini/mdDetail.vue
@@ -32,10 +32,14 @@
                <span class="myTip">{{errorMsg}}</span>
            </div>
            <div class="mySecret"
                v-else-if="articleFileType==myConstant.fileTypeVideo
            <div class="mySecret" v-else-if="articleFileType==myConstant.fileTypeVideo
                || articleFileType==myConstant.fileTypeMp3
                || articleFileType==myConstant.fileTypeShort">
                <div class="mySecretSamll" v-if="introduce.length==0">
                    <p>碎碎念只有那么一点了</p>
                    <p>但是下面依旧可以碎碎念</p>
                </div>
                <pre style="white-space: pre-line;">
                {{introduce}}
                </pre>
@@ -180,6 +184,7 @@
                    this.isAllowedComment = res.data.isAllowedComment;
                    this.introduce = res.data.introduce;
                    this.articleFileType = res.data.articleFileType;
                    this.articelMeta = res.data;