Authored by 郝肖肖

资讯无评价初始化

... ... @@ -183,7 +183,7 @@ const _processHeadData = (list) => {
if (index === 2) {
newData.headData = _.assign(newData.headData, {
commentNum: data.total
commentNum: data.total || 0
});
}
});
... ... @@ -697,7 +697,7 @@ const getDetailData = (id, appType, gender, tag, uid, udid) => {
head: res.headData,
tags: res.tags,
content: result[2],
comment: result[3],
comment: _.assign({total: 0}, result[3]),
brands: result[6],
nextArticle: result[5],
perArticle: result[4]
... ...