...
|
...
|
@@ -12,6 +12,7 @@ const guangModel = require('../models/index'); |
|
|
const headerModel = require('../../../doraemon/models/header');
|
|
|
const ghelper = require('../models/guang-helper');
|
|
|
const querystring = require('querystring');
|
|
|
const helpers = global.yoho.helpers;
|
|
|
|
|
|
/**
|
|
|
* 首页文章列表 类型列表
|
...
|
...
|
@@ -205,6 +206,7 @@ exports.detail = (req, res, next) => { |
|
|
if (pjax) {
|
|
|
guangModel.getArticleComments(id, page, pageSize).then(ret => {
|
|
|
|
|
|
res.set('Cache-Control', 'no-cache');
|
|
|
res.render('guang/detail-comment', {
|
|
|
layout: false,
|
|
|
comment: ret
|
...
|
...
|
@@ -288,7 +290,11 @@ exports.detail = (req, res, next) => { |
|
|
shareImg: info.shareImg,
|
|
|
sharedTitle: info.title,
|
|
|
shareDesc: info.desc,
|
|
|
weixinUrl: info.weixinUrl
|
|
|
weixinUrl: info.weixinUrl,
|
|
|
commentFirstPageUrl: helpers.urlFormat('/info/index', {
|
|
|
id: id,
|
|
|
pageSize: 10
|
|
|
}, 'guang')
|
|
|
}
|
|
|
}, {
|
|
|
title: `${info.title} | YOHO!BUY有货 | 年轻人潮流购物中心,中国潮流购物风向标,官方授权正品保证`,
|
...
|
...
|
|