...
|
...
|
@@ -104,7 +104,7 @@ const formatArticle = (articleData, showTag, isApp, showAuthor, uid) => { |
|
|
};
|
|
|
let originUrl = helpers.urlFormat(colparam.urlpath || '/author/index', null, 'guang'); // 跳转回的链接
|
|
|
// 根据用户是否登录做处理的链接
|
|
|
let collectUrl = 'javascript:;'; // eslint-disable-line
|
|
|
let collectUrl = 'javascript:;'; // eslint-disable-line
|
|
|
|
|
|
if (!uid) {
|
|
|
let playUrlEncode = `${originUrl}${colparam.param}`.replace(/\//g, '\\\/');
|
...
|
...
|
@@ -247,7 +247,8 @@ const processArticleDetail = (articleContent, isApp, gender, isWeixin, isqq, isW |
|
|
finalDetail.push({
|
|
|
bigImage: helpers.image(_.get(value, 'singleImage.data[0].src', ''), 640, 640),
|
|
|
noLazy: index <= 3,
|
|
|
tagList: tagList
|
|
|
tagList: tagList,
|
|
|
isGif: /\.gif/i.test(_.get(value, 'singleImage.data[0].src', ''))
|
|
|
});
|
|
|
}
|
|
|
|
...
|
...
|
@@ -256,12 +257,14 @@ const processArticleDetail = (articleContent, isApp, gender, isWeixin, isqq, isW |
|
|
finalDetail.push({
|
|
|
smallImage: [
|
|
|
{
|
|
|
src: helpers.image(_.get(value, 'smallPic.data[0].src', ''), 315, 420)
|
|
|
src: helpers.image(_.get(value, 'smallPic.data[0].src', ''), 315, 420),
|
|
|
isGif: /\.gif/i.test(_.get(value, 'smallPic.data[0].src', ''))
|
|
|
},
|
|
|
{
|
|
|
src: helpers.image(_.get(value, 'smallPic.data[1].src', ''), 315, 420)
|
|
|
src: helpers.image(_.get(value, 'smallPic.data[1].src', ''), 315, 420),
|
|
|
isGif: /\.gif/i.test(_.get(value, 'smallPic.data[0].src', ''))
|
|
|
}
|
|
|
],
|
|
|
]
|
|
|
});
|
|
|
}
|
|
|
|
...
|
...
|
|