...
|
...
|
@@ -141,6 +141,7 @@ const _pageArticleContent = (articleContent, isApp, gender, isWeixin, isqq, isWe |
|
|
let callArtGoodGroup = (ii, len2) => {
|
|
|
if (ii < len2) {
|
|
|
let goods = art.goodsGroup.data[ii];
|
|
|
|
|
|
if (goods) {
|
|
|
let good = {
|
|
|
thumb: goods.cover ? helpers.image(goods.cover.cover, 235, 314) : '',
|
...
|
...
|
@@ -265,15 +266,15 @@ const _relatedInfo = (getOtherArticle, isApp) => { |
|
|
const _shareInfo = (id, getArticle) => {
|
|
|
let shareInfo = {};
|
|
|
|
|
|
shareInfo.shareLink = helpers.urlFormat('/info/index', {
|
|
|
shareInfo.shareLink = 'http:' + helpers.urlFormat('/info/index', {
|
|
|
id: id
|
|
|
}, 'guang');
|
|
|
shareInfo.shareTitle = getArticle.article_title;
|
|
|
shareInfo.shareDesc = getArticle.article_summary;
|
|
|
if (getArticle.cover_image_type === 1) {
|
|
|
shareInfo.shareImg = helpers.image(getArticle.cover_image, 640, 640);
|
|
|
shareInfo.shareImg = 'http:' + helpers.image(getArticle.cover_image, 640, 640);
|
|
|
} else {
|
|
|
shareInfo.shareImg = helpers.image(getArticle.cover_image, 640, 320);
|
|
|
shareInfo.shareImg = 'http:' + helpers.image(getArticle.cover_image, 640, 320);
|
|
|
}
|
|
|
return shareInfo;
|
|
|
};
|
...
|
...
|
@@ -393,6 +394,7 @@ const index = (req, res, next) => { |
|
|
// 分享参数
|
|
|
if (detail.getArticle.cover_image) {
|
|
|
let shareInfo = _shareInfo(id, detail.getArticle);
|
|
|
|
|
|
Object.assign(guang, shareInfo);
|
|
|
data.title = detail.getArticle.article_title + ' | Yoho!Buy有货 | 潮流购物逛不停';
|
|
|
data.title_more = true;
|
...
|
...
|
|