|
|
@@ -483,15 +483,15 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
actionArticles: function() {
|
|
|
- if (!this.articles || this.articles.length === 0) return []
|
|
|
+ if (!this.indexArticles || this.indexArticles.length === 0) return []
|
|
|
var result = []
|
|
|
- for (var i = 0; i < this.articles.length; i++) {
|
|
|
- var a = this.articles[i]
|
|
|
+ for (var i = 0; i < this.indexArticles.length; i++) {
|
|
|
+ var a = this.indexArticles[i]
|
|
|
if (a.relatedDimensions && a.relatedDimensions.indexOf('action') !== -1) {
|
|
|
result.push(a)
|
|
|
}
|
|
|
}
|
|
|
- if (result.length === 0) return this.articles.slice(0, 5)
|
|
|
+ if (result.length === 0) return this.indexArticles.slice(0, 5)
|
|
|
return result.slice(0, 5)
|
|
|
},
|
|
|
dimList: function() {
|
|
|
@@ -979,7 +979,8 @@ export default {
|
|
|
title: item.title || '',
|
|
|
summary: item.summary || '',
|
|
|
views: item.viewCount ? String(item.viewCount) : '0',
|
|
|
- date: item.publishedAt ? item.publishedAt.slice(0, 10) : ''
|
|
|
+ date: item.publishedAt ? item.publishedAt.slice(0, 10) : '',
|
|
|
+ coverImage: item.coverImage
|
|
|
}
|
|
|
})
|
|
|
}
|