|
|
<template>
|
|
|
<top-nav :id="id" :article="article" v-if="isApp"></top-nav>
|
|
|
<div class="show-box no-padding first-box">
|
|
|
<div class="editorial-box">
|
|
|
<h1 class="editorial-article-title">{{article.article_title}}</h1>
|
|
|
<div class="status-bar">
|
|
|
<span class="icon icon-timeshare"></span><span class="label">{{article.publishTime}}</span>
|
|
|
<span class="icon icon-read"></span><span class="label">{{article.pageViews}}</span>
|
|
|
<div>
|
|
|
<top-nav :id="id" :article="article" v-if="isApp"></top-nav>
|
|
|
<div class="show-box no-padding first-box">
|
|
|
<div class="editorial-box">
|
|
|
<h1 class="editorial-article-title">{{article.article_title}}</h1>
|
|
|
<div class="status-bar">
|
|
|
<span class="icon icon-timeshare"></span><span class="label">{{article.publishTime}}</span>
|
|
|
<span class="icon icon-read"></span><span class="label">{{article.pageViews}}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="content-box">
|
|
|
<div v-for="(index, block) in content">
|
|
|
<content-block :block="block"></content-block>
|
|
|
<div class="content-box">
|
|
|
<div v-for="(block, index) in content" :key="index">
|
|
|
<content-block :block="block"></content-block>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="show-box no-padding" v-if="recommendProducts && recommendProducts.length">
|
|
|
<h2 class="editorial-relate-title">相关推荐</h2>
|
|
|
|
|
|
<product-list :data="recommendProducts"></product-list>
|
|
|
</div>
|
|
|
<div class="show-box no-padding" v-if="recommendProducts && recommendProducts.length">
|
|
|
<h2 class="editorial-relate-title">相关推荐</h2>
|
|
|
|
|
|
<div class="brand-list show-box" v-if="brands && brands.length">
|
|
|
<h2 class="editorial-relate-title">相关品牌</h2>
|
|
|
<ul>
|
|
|
<li v-for="item in brands">
|
|
|
<a :href="'/product/shop/' + item.brandDomain">
|
|
|
<img :src="item.thumb | resize 136 136">
|
|
|
<span class="brand-name"> {{item.name}}</span>
|
|
|
</a>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
<product-list :data="recommendProducts"></product-list>
|
|
|
</div>
|
|
|
|
|
|
<div class="show-box" v-if="other && other.length">
|
|
|
<h2 class="editorial-relate-title">相关文章</h2>
|
|
|
<div class="other-box" v-for="item in other">
|
|
|
<div>
|
|
|
<div class="image-box">
|
|
|
<a :href="'/editorial/' + item.id + '.html'">
|
|
|
<img :src="item.thumb | resize 213 134"/>
|
|
|
<div class="brand-list show-box" v-if="brands && brands.length">
|
|
|
<h2 class="editorial-relate-title">相关品牌</h2>
|
|
|
<ul>
|
|
|
<li v-for="item in brands" :key="item.name">
|
|
|
<a :href="'/product/shop/' + item.brandDomain">
|
|
|
<img :src="item.thumb | resize(136, 136)">
|
|
|
<span class="brand-name"> {{item.name}}</span>
|
|
|
</a>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
|
|
|
<div class="show-box" v-if="other && other.length">
|
|
|
<h2 class="editorial-relate-title">相关文章</h2>
|
|
|
<div class="other-box" v-for="item in other" :key="item.id">
|
|
|
<div>
|
|
|
<div class="image-box">
|
|
|
<a :href="'/editorial/' + item.id + '.html'">
|
|
|
<img :src="item.thumb | resize(213, 134)"/>
|
|
|
</a>
|
|
|
</div>
|
|
|
<h3><a class="line-clamp-2" :href="'/editorial/' + item.id + '.html'">{{item.title}}</a></h3>
|
|
|
<div class="sub-time">
|
|
|
<span class="icon icon-timeshare"></span><span class="label">{{item.publishTime}}</span>
|
|
|
</div>
|
|
|
<div class="clearfix"></div>
|
|
|
</div>
|
|
|
<h3><a class="line-clamp-2" :href="'/editorial/' + item.id + '.html'">{{item.title}}</a></h3>
|
|
|
<div class="sub-time">
|
|
|
<span class="icon icon-timeshare"></span><span class="label">{{item.publishTime}}</span>
|
|
|
</div>
|
|
|
<div class="clearfix"></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<share-bottom v-if="!isApp"></share-bottom>
|
|
|
</div>
|
|
|
<share-bottom v-if="!isApp"></share-bottom>
|
|
|
</template>
|
|
|
<style>
|
|
|
$bgcolor: #fff;
|
...
|
...
|
@@ -196,15 +198,19 @@ |
|
|
}
|
|
|
</style>
|
|
|
<script>
|
|
|
const $ = require('jquery');
|
|
|
const yoho = require('yoho');
|
|
|
|
|
|
module.exports = {
|
|
|
import $ from 'jquery';
|
|
|
import yoho from 'yoho';
|
|
|
import ContentBlock from './content-block.vue';
|
|
|
import ProductList from 'component/product/list.vue';
|
|
|
import TopNav from './top-nav.vue';
|
|
|
import ShareBottom from 'component/tool/share-bottom.vue';
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
|
contentBlock: require('./content-block.vue'),
|
|
|
productList: require('component/product/list.vue'),
|
|
|
topNav: require('./top-nav.vue'),
|
|
|
shareBottom: require('component/tool/share-bottom.vue')
|
|
|
contentBlock: ContentBlock,
|
|
|
productList: ProductList,
|
|
|
topNav: TopNav,
|
|
|
shareBottom: ShareBottom
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
...
|
...
|
|