...
|
...
|
@@ -11,6 +11,7 @@ import HomeService from '../../services/HomeService'; |
|
|
import timeago from '../../utils/timeago';
|
|
|
import {number10KFormater} from '../../utils/numberFormater';
|
|
|
import {loginThenSyncUserInfo} from '../user/userActions';
|
|
|
import SlicedImage from '../../../common/components/SlicedImage';
|
|
|
|
|
|
const {
|
|
|
|
...
|
...
|
@@ -302,6 +303,10 @@ function parseBNS(json) { |
|
|
forumInfo.map((item, i) => {
|
|
|
let {hotPost, newPost} = item;
|
|
|
|
|
|
let hotAvatar = hotPost && hotPost.user && hotPost.user.headIcon ? hotPost.user.headIcon : '';
|
|
|
hotAvatar = SlicedImage.getSlicedUrl(hotAvatar, 30, 30);
|
|
|
let newAvatar = newPost && newPost.user && newPost.user.headIcon ? newPost.user.headIcon : '';
|
|
|
newAvatar = SlicedImage.getSlicedUrl(newAvatar, 30, 30);
|
|
|
let sectionItem = {
|
|
|
header: {
|
|
|
id: item.forumCode ? item.forumCode : 0,
|
...
|
...
|
@@ -313,14 +318,14 @@ function parseBNS(json) { |
|
|
like: number10KFormater(item.praiseNum),
|
|
|
},
|
|
|
hot: {
|
|
|
avatar: hotPost && hotPost.user && hotPost.user.headIcon ? hotPost.user.headIcon : '',
|
|
|
avatar: hotAvatar,
|
|
|
content: hotPost && hotPost.contentData ? decodeURI(hotPost.contentData) : '',
|
|
|
hasImg: hotPost && hotPost.hasImgFlg ? hotPost.hasImgFlg : '',
|
|
|
postId: hotPost && hotPost.postId ? hotPost.postId : '',
|
|
|
postTitle: hotPost && hotPost.postsTitle ? decodeURI(hotPost.postsTitle) : '',
|
|
|
},
|
|
|
new: {
|
|
|
avatar: newPost && newPost.user && newPost.user.headIcon ? newPost.user.headIcon : '',
|
|
|
avatar: newAvatar,
|
|
|
content: newPost && newPost.contentData ? decodeURI(newPost.contentData) : '',
|
|
|
hasImg: newPost && newPost.hasImgFlg ? newPost.hasImgFlg : '',
|
|
|
postId: newPost && newPost.postId ? newPost.postId : '',
|
...
|
...
|
|