...
|
...
|
@@ -29,7 +29,13 @@ |
|
|
|
|
|
<div class="recommend-container">
|
|
|
<div class="recommend-text">推荐阅读</div>
|
|
|
<div class="recommend-list">list</div>
|
|
|
<ClientOnly>
|
|
|
<waterFallList
|
|
|
:listData="recommendArticleList"
|
|
|
:item-w="344" :gutter-w="15"
|
|
|
>
|
|
|
</waterFallList>
|
|
|
</ClientOnly>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
...
|
...
|
@@ -43,6 +49,7 @@ import ArticleAuthor from './components/article-author'; |
|
|
import ArticleVideo from './components/article-video';
|
|
|
import ArticleImage from './components/article-image';
|
|
|
import AssociatedItem from './components/associated-item';
|
|
|
import waterFallList from './components/waterfall';
|
|
|
|
|
|
const { mapState, mapActions } = createNamespacedHelpers('article/articleDetail');
|
|
|
|
...
|
...
|
@@ -52,7 +59,8 @@ export default { |
|
|
ArticleAuthor,
|
|
|
ArticleVideo,
|
|
|
ArticleImage,
|
|
|
AssociatedItem
|
|
|
AssociatedItem,
|
|
|
waterFallList
|
|
|
},
|
|
|
props: {
|
|
|
articleId: {
|
...
|
...
|
@@ -60,7 +68,7 @@ export default { |
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState(['detailInfo']),
|
|
|
...mapState(['detailInfo', 'recommendArticleList']),
|
|
|
isVideo({detailInfo: {sort}}) {
|
|
|
return +sort === 4;
|
|
|
},
|
...
|
...
|
@@ -205,7 +213,6 @@ export default { |
|
|
|
|
|
.recommend-container {
|
|
|
background: #F2F2F2;
|
|
|
padding: 36px 24px 0;
|
|
|
}
|
|
|
|
|
|
.recommend-text {
|
...
|
...
|
@@ -213,6 +220,7 @@ export default { |
|
|
color: #222222;
|
|
|
font-weight: bold;
|
|
|
text-align: left;
|
|
|
padding: 36px 24px 0;
|
|
|
}
|
|
|
|
|
|
.recommend-list {
|
...
|
...
|
|