...
|
...
|
@@ -33,6 +33,7 @@ const _pageArticleContent = (articleContent, isApp, gender) => { |
|
|
if (i < len) {
|
|
|
let build = {};
|
|
|
let art = articleContent[i];
|
|
|
|
|
|
// 文字
|
|
|
if (art.text && art.text.data && art.text.data.text) {
|
|
|
build.text = art.text.data.text;
|
...
|
...
|
@@ -147,7 +148,7 @@ const _pageArticleContent = (articleContent, isApp, gender) => { |
|
|
} else {
|
|
|
callArtGoodGroup(++ii, len2);
|
|
|
}
|
|
|
|
|
|
|
|
|
} else {
|
|
|
contents.push(build);
|
|
|
joinContentFunc(++i, len);
|
...
|
...
|
@@ -307,6 +308,7 @@ const index = (req, res, next) => { |
|
|
// guang双头部的问题 20160601
|
|
|
// 正确的URL
|
|
|
data.guang.author.url = helpers.https(`${detail.getAuthor.url}&openby:yohobuy={"action":"go.h5","params":{"param":{},"share":"","id":${detail.getAuthor.author_id},"type":0,"islogin":"N","url":"${detail.getAuthor.url}"}}`);
|
|
|
|
|
|
// 错误的URL
|
|
|
// data.guang.author.url = helpers.https(`${detail.getAuthor.url}&openby:yohobuy={"action":"go.h5","params":{"param":{"id":"${detail.getAuthor.author_id}"},"share":"","id":${detail.getAuthor.author_id},"type":0,"islogin":"N","url":"${helpers.urlFormat('/author/index', {}, 'guang')}"}}`);
|
|
|
}
|
...
|
...
|
@@ -349,6 +351,7 @@ const index = (req, res, next) => { |
|
|
data.description = detail.getArticle.article_summary;
|
|
|
data.description_more = true;
|
|
|
}
|
|
|
|
|
|
// 标识有微信分享
|
|
|
data.hasWxShare = true;
|
|
|
res.render('info/index', Object.assign({
|
...
|
...
|
@@ -509,4 +512,4 @@ module.exports = { |
|
|
index,
|
|
|
mini,
|
|
|
foryoho
|
|
|
}; |
|
|
\ No newline at end of file |
|
|
}; |
...
|
...
|
|