Authored by 杨延青

Merge branch 'feature/detailHeader' into 'release/6.9.6'

Feature/detail header



See merge request !99
... ... @@ -60,6 +60,16 @@ export default {
followUid: this.authorUid,
status: this.followStatus ? 1 : 0,
authorType: this.authorType
}).then(res => {
if (res.code === 200 && !this.followStatus) {
this.$createToast && this.$createToast({
txt: '关注成功',
type: 'txt',
time: 1000
}).show();
}
return res;
});
}
},
... ...
... ... @@ -313,6 +313,7 @@ export default {
article.local = local;
if (local) {
article.hasComment = true;
article.authorHeadIco = article.authorHeadIco.replace(/^https?:/, '');
}
... ... @@ -420,6 +421,9 @@ export default {
if (topicList.length) {
topicList.forEach(val => {
if (/imageView/.test(val.topicImageUrl) && !/format/.test(val.topicImageUrl)) {
val.topicImageUrl += '/format/jpg';
}
state.topicList.push(val);
})
}
... ...
... ... @@ -24,7 +24,6 @@ function processArticleListData(listData) {
templateKey: 'text',
}
],
hasComment: true,
commentCount: 0,
comments: [],
dataType: listData.dataType,
... ...