|
|
@@ -347,17 +347,10 @@ export default {
|
|
|
loadWealthArticles: function() {
|
|
|
var self = this
|
|
|
self.articlesLoading = true
|
|
|
- getFeaturedArticles({ size: 5 }).then(function(res) {
|
|
|
+ getFeaturedArticles({ size: 5, dimensionCode: 'wealth' }).then(function(res) {
|
|
|
if (res.code === 200 && res.data) {
|
|
|
var list = Array.isArray(res.data) ? res.data : (res.data.records || [])
|
|
|
- var result = []
|
|
|
- for (var i = 0; i < list.length; i++) {
|
|
|
- var a = list[i]
|
|
|
- if (a.relatedDimensions && a.relatedDimensions.indexOf('wealth') !== -1) {
|
|
|
- result.push(a)
|
|
|
- }
|
|
|
- }
|
|
|
- self.wealthArticles = result.length > 0 ? result.slice(0, 5) : list.slice(0, 5)
|
|
|
+ self.wealthArticles = list.slice(0, 5)
|
|
|
}
|
|
|
}).catch(function() {
|
|
|
self.wealthArticles = []
|