|
@@ -33,6 +33,7 @@ const _pageArticleContent = (articleContent, isApp, gender) => { |
|
@@ -33,6 +33,7 @@ const _pageArticleContent = (articleContent, isApp, gender) => { |
33
|
if (i < len) {
|
33
|
if (i < len) {
|
34
|
let build = {};
|
34
|
let build = {};
|
35
|
let art = articleContent[i];
|
35
|
let art = articleContent[i];
|
|
|
36
|
+
|
36
|
// 文字
|
37
|
// 文字
|
37
|
if (art.text && art.text.data && art.text.data.text) {
|
38
|
if (art.text && art.text.data && art.text.data.text) {
|
38
|
build.text = art.text.data.text;
|
39
|
build.text = art.text.data.text;
|
|
@@ -147,7 +148,7 @@ const _pageArticleContent = (articleContent, isApp, gender) => { |
|
@@ -147,7 +148,7 @@ const _pageArticleContent = (articleContent, isApp, gender) => { |
147
|
} else {
|
148
|
} else {
|
148
|
callArtGoodGroup(++ii, len2);
|
149
|
callArtGoodGroup(++ii, len2);
|
149
|
}
|
150
|
}
|
150
|
-
|
151
|
+
|
151
|
} else {
|
152
|
} else {
|
152
|
contents.push(build);
|
153
|
contents.push(build);
|
153
|
joinContentFunc(++i, len);
|
154
|
joinContentFunc(++i, len);
|
|
@@ -307,6 +308,7 @@ const index = (req, res, next) => { |
|
@@ -307,6 +308,7 @@ const index = (req, res, next) => { |
307
|
// guang双头部的问题 20160601
|
308
|
// guang双头部的问题 20160601
|
308
|
// 正确的URL
|
309
|
// 正确的URL
|
309
|
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}"}}`);
|
310
|
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}"}}`);
|
|
|
311
|
+
|
310
|
// 错误的URL
|
312
|
// 错误的URL
|
311
|
// 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')}"}}`);
|
313
|
// 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')}"}}`);
|
312
|
}
|
314
|
}
|
|
@@ -349,6 +351,7 @@ const index = (req, res, next) => { |
|
@@ -349,6 +351,7 @@ const index = (req, res, next) => { |
349
|
data.description = detail.getArticle.article_summary;
|
351
|
data.description = detail.getArticle.article_summary;
|
350
|
data.description_more = true;
|
352
|
data.description_more = true;
|
351
|
}
|
353
|
}
|
|
|
354
|
+
|
352
|
// 标识有微信分享
|
355
|
// 标识有微信分享
|
353
|
data.hasWxShare = true;
|
356
|
data.hasWxShare = true;
|
354
|
res.render('info/index', Object.assign({
|
357
|
res.render('info/index', Object.assign({
|
|
@@ -509,4 +512,4 @@ module.exports = { |
|
@@ -509,4 +512,4 @@ module.exports = { |
509
|
index,
|
512
|
index,
|
510
|
mini,
|
513
|
mini,
|
511
|
foryoho
|
514
|
foryoho
|
512
|
-}; |
|
|
|
|
515
|
+}; |