|
|
<template>
|
|
|
<div class="scroll-wrapper">
|
|
|
|
|
|
<Author v-if="articleDetail" :data="articleDetail.getAuthor"></Author>
|
|
|
<Author v-if="articleDetail && articleDetail.getAuthor" :data="articleDetail.getAuthor"></Author>
|
|
|
|
|
|
<div class="post-content" v-if="articleDetail">
|
|
|
<div class="post-content" v-if="articleDetail && articleDetail.getArticleContent">
|
|
|
<template v-for="item in articleDetail.getArticleContent">
|
|
|
<template v-if="item.text">
|
|
|
<div class="text" v-html="item.text"></div>
|
...
|
...
|
@@ -35,10 +35,10 @@ |
|
|
</template>
|
|
|
</div>
|
|
|
|
|
|
<ZanBar class="zanbar" v-if="articleDetail" v-bind="articleDetail.zanBar"></ZanBar>
|
|
|
<ZanBar class="zanbar" v-if="articleDetail && articleDetail.zanBar" v-bind="articleDetail.zanBar"></ZanBar>
|
|
|
<TagBar class="tagbar" v-if="articleDetail" :list="articleDetail.tagBar"></TagBar>
|
|
|
|
|
|
<Recommend v-if="articleDetail && articleDetail.getRecommendProducts.length > 0">
|
|
|
<Recommend v-if="articleDetail && articleDetail.getRecommendProducts && articleDetail.getRecommendProducts.length > 0">
|
|
|
<RecommendProductList :list="articleDetail.getRecommendProducts"></RecommendProductList>
|
|
|
</Recommend>
|
|
|
</div>
|
...
|
...
|
@@ -46,7 +46,6 @@ |
|
|
|
|
|
<script>
|
|
|
|
|
|
import {debounce} from 'lodash';
|
|
|
import RecommendProductList from './recommend-product-list';
|
|
|
import Recommend from './recommend';
|
|
|
import Author from './author';
|
...
|
...
|
@@ -96,6 +95,7 @@ export default { |
|
|
|
|
|
.post-content {
|
|
|
@include paddingLR;
|
|
|
|
|
|
padding-top: 26px;
|
|
|
|
|
|
/deep/ .normal {
|
...
|
...
|
|