...
|
...
|
@@ -4,8 +4,8 @@ |
|
|
<div class="news-box">
|
|
|
<h1>{{article.articleTitle}}</h1>
|
|
|
<div class="status-bar">
|
|
|
<span class="icon icon-love"></span><span class="label">{{article.publishTime | formatUnixTime 'MM.DD HH:mm'}}</span>
|
|
|
<span class="icon icon-love"></span><span class="label">{{article.pageViews}}</span>
|
|
|
<span class="icon icon-timeshare"></span><span class="label">{{article.publishTime | formatUnixTime 'MM.DD HH:mm'}}</span>
|
|
|
<span class="icon icon-eye"></span><span class="label">{{article.pageViews}}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
...
|
...
|
@@ -42,7 +42,7 @@ |
|
|
</div>
|
|
|
<h3><a :href="item.url">{{item.title}}</a></h3>
|
|
|
<div class="sub-time">
|
|
|
<span class="icon icon-love"></span><span class="label">{{article.publishTime | formatUnixTime 'MM.DD HH:mm'}}</span>
|
|
|
<span class="icon icon-timeshare"></span><span class="label">{{article.publishTime | formatUnixTime 'MM.DD HH:mm'}}</span>
|
|
|
</div>
|
|
|
<div class="clearfix"></div>
|
|
|
</div>
|
...
|
...
|
@@ -222,18 +222,20 @@ |
|
|
|
|
|
|
|
|
const list = [];
|
|
|
const goods = products[0].goods.data;
|
|
|
|
|
|
goods.forEach((item)=> {
|
|
|
list.push({
|
|
|
productId: item.id,
|
|
|
goodsList: [
|
|
|
{
|
|
|
imagesUrl: item.src
|
|
|
}
|
|
|
]
|
|
|
const goods = products[0] ? products[0].goods.data : null;
|
|
|
|
|
|
if (goods) {
|
|
|
goods.forEach((item)=> {
|
|
|
list.push({
|
|
|
productId: item.id,
|
|
|
goodsList: [
|
|
|
{
|
|
|
imagesUrl: item.src
|
|
|
}
|
|
|
]
|
|
|
});
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
|
|
|
this.recommendProducts = list;
|
|
|
}
|
...
|
...
|
|