...
|
...
|
@@ -100,16 +100,18 @@ let _processComment = (data) => { |
|
|
};
|
|
|
|
|
|
if (data && data.pageResponse) {
|
|
|
let descColor;
|
|
|
let color, size;
|
|
|
|
|
|
_.forEach(data.pageResponse.list, (item) => {
|
|
|
if (item.goods) {
|
|
|
descColor = item.goods.factory_goods_name ? `${item.goods.factory_goods_name}/${item.goods.size_name}` : `${item.goods.color_name}/${item.goods.size_name}`;
|
|
|
color = item.goods.factory_goods_name ? item.goods.factory_goods_name : item.goods.color_name;
|
|
|
size = item.goods.size_name;
|
|
|
};
|
|
|
|
|
|
result.comments.push({
|
|
|
userName: item.userInfo ? item.userInfo.nickName : '',
|
|
|
desc: descColor ? descColor : '',
|
|
|
color: color || '',
|
|
|
size: size || '',
|
|
|
content: item.content,
|
|
|
time: helpers.dateFormat('YYYY-MM-DD HH:mm:ss', new Date(item.createTime * 1000))
|
|
|
});
|
...
|
...
|
|