...
|
...
|
@@ -75,18 +75,14 @@ function parseLikeList(json) { |
|
|
total = total ? total : 0;
|
|
|
let likes = [];
|
|
|
list && list.map((item, i) => {
|
|
|
|
|
|
let postId = item.postsId ? item.postsId : 0;
|
|
|
|
|
|
let user = {};
|
|
|
let {userInfo} = item;
|
|
|
if (userInfo) {
|
|
|
let nickName = userInfo.nickName ? userInfo.nickName : '';
|
|
|
let avatar = userInfo.headIcon ? userInfo.headIcon : '';
|
|
|
let uid = userInfo.uid ? userInfo.uid : 0;
|
|
|
let sign = userInfo.signature ? userInfo.signature : '';
|
|
|
let backgroundImage = userInfo.bgPic ? userInfo.bgPic : '';
|
|
|
user = {
|
|
|
let like = {};
|
|
|
if (item) {
|
|
|
let nickName = item.nickName ? item.nickName : '';
|
|
|
let avatar = item.headIcon ? item.headIcon : '';
|
|
|
let uid = item.uid ? item.uid : 0;
|
|
|
let sign = item.signature ? item.signature : '';
|
|
|
let backgroundImage = item.bgPic ? item.bgPic : '';
|
|
|
like = {
|
|
|
nickName,
|
|
|
avatar,
|
|
|
uid,
|
...
|
...
|
@@ -94,12 +90,6 @@ function parseLikeList(json) { |
|
|
backgroundImage,
|
|
|
};
|
|
|
}
|
|
|
|
|
|
let like = {
|
|
|
postId,
|
|
|
user,
|
|
|
};
|
|
|
|
|
|
likes.push(like);
|
|
|
});
|
|
|
|
...
|
...
|
|