|
@@ -15,7 +15,7 @@
|
|
|
<NuxtLink to="/">首页</NuxtLink>
|
|
|
</el-breadcrumb-item>
|
|
|
<el-breadcrumb-item>
|
|
|
- <NuxtLink :to="`/${parent_pinyin}/index.html`">
|
|
|
+ <NuxtLink :to="`/${targetSegment}/index.html`">
|
|
|
{{ routLevelTitle }}
|
|
|
</NuxtLink>
|
|
|
</el-breadcrumb-item>
|
|
@@ -111,6 +111,22 @@
|
|
|
</div>
|
|
|
<!-- 投票 end ---------------------------------------->
|
|
|
</div>
|
|
|
+ <!-- 推荐阅读 -->
|
|
|
+ <div class="recommendRead" v-if="newsDetail.commendArticle != false">
|
|
|
+ <div class="recommendReadTitle">
|
|
|
+ 推荐阅读
|
|
|
+ <em></em>
|
|
|
+ </div>
|
|
|
+ <div class="recommendReadList">
|
|
|
+ <div class="recommendReadListTitle" v-for="(item, index) in newsDetail.commendArticle"
|
|
|
+ :key="item.id">
|
|
|
+ <a :href="`/${item.alias_pinyin}/${item.id}.html`" v-if="index < 3">
|
|
|
+ {{ item.title }}
|
|
|
+ </a>
|
|
|
+ <span v-if="index < 3">{{ getTime(item.created_at,"month",1) }}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="innerRight">
|
|
|
<!-- 热点资讯1 -->
|
|
@@ -196,7 +212,7 @@ let getParentNav = async () => {
|
|
|
}
|
|
|
}
|
|
|
//获得父级栏目详情
|
|
|
-getParentNav();
|
|
|
+// getParentNav();
|
|
|
//1.页面依赖 end ---------------------------------------->
|
|
|
|
|
|
//2.页面数据 start ---------------------------------------->
|
|
@@ -218,6 +234,7 @@ async function getPageData() {
|
|
|
'articleid': articleId
|
|
|
},
|
|
|
});
|
|
|
+ console.log("资讯详情", mkdata)
|
|
|
if (mkdata.code == 200) {
|
|
|
//判断是否显示投票
|
|
|
if (mkdata.data.is_survey == 1) {
|