...
|
...
|
@@ -13,6 +13,7 @@ const headerModel = require('../../../doraemon/models/header'); |
|
|
const ghelper = require('../models/guang-helper');
|
|
|
const urlHelper = require('../models/url-helper');
|
|
|
const querystring = require('querystring');
|
|
|
const tdk = require('../../../utils/getTDK');
|
|
|
|
|
|
/**
|
|
|
* 首页文章列表 类型列表
|
...
|
...
|
@@ -252,7 +253,8 @@ exports.detail = (req, res, next) => { |
|
|
reqCtx.getArticleBaseInfo(id, uid, udid),
|
|
|
reqCtx.getArticleRelateBrand(id),
|
|
|
reqCtx.getRecoArticles(gender, 1, 10, channel),
|
|
|
reqCtx.getAds(channel, isAdDegrade)
|
|
|
reqCtx.getAds(channel, isAdDegrade),
|
|
|
tdk('article', id, req)
|
|
|
];
|
|
|
|
|
|
if (info.authorId) {
|
...
|
...
|
@@ -275,6 +277,24 @@ exports.detail = (req, res, next) => { |
|
|
res.set('Cache-Control', 'no-cache');
|
|
|
}
|
|
|
|
|
|
let title, keywords, description;
|
|
|
|
|
|
if (ret[8][0]) {
|
|
|
req.tdk = {
|
|
|
title: ret[8][1],
|
|
|
keywords: ret[8][2],
|
|
|
description: ret[8][3]
|
|
|
};
|
|
|
}
|
|
|
|
|
|
title = `${info.title} | YOHO!BUY有货`;
|
|
|
keywords = info.tag.length > 0 ? `${info.tag}` :
|
|
|
['Yoho! 有货,潮流,时尚,流行,购物,B2C,正品,购物网站,网上购物,货到付款,品牌服饰,男士护肤,',
|
|
|
'黑框眼镜,匡威,板鞋,i.t,izzue,5cm,eastpak,vans,lylescott,g-shock,new balance,lacoste,melissa,',
|
|
|
'casio,卡西欧手表,舒雅,jasonwood,odm,AAAA,香港购物,日本潮流'].join('');
|
|
|
description = info.desc.length > 0 ? `${info.desc}` :
|
|
|
'潮流商品搜索,上衣,衬衫,TEE,卫衣,冲锋衣,风衣,羽绒服,裤子,休闲鞋,板鞋,配饰,复古眼镜';
|
|
|
|
|
|
res.render('guang/detail', Object.assign({
|
|
|
module: 'guang',
|
|
|
page: 'detail',
|
...
|
...
|
@@ -305,13 +325,9 @@ exports.detail = (req, res, next) => { |
|
|
commentFirstPageUrl: '?pageSize=10'
|
|
|
}
|
|
|
}, {
|
|
|
title: `${info.title} | YOHO!BUY有货`,
|
|
|
keywords: info.tag.length > 0 ? `${info.tag}` :
|
|
|
['Yoho! 有货,潮流,时尚,流行,购物,B2C,正品,购物网站,网上购物,货到付款,品牌服饰,男士护肤,',
|
|
|
'黑框眼镜,匡威,板鞋,i.t,izzue,5cm,eastpak,vans,lylescott,g-shock,new balance,lacoste,melissa,',
|
|
|
'casio,卡西欧手表,舒雅,jasonwood,odm,AAAA,香港购物,日本潮流'].join(''),
|
|
|
description: info.desc.length > 0 ? `${info.desc}` :
|
|
|
'潮流商品搜索,上衣,衬衫,TEE,卫衣,冲锋衣,风衣,羽绒服,裤子,休闲鞋,板鞋,配饰,复古眼镜',
|
|
|
title: title,
|
|
|
keywords: keywords,
|
|
|
description: description,
|
|
|
webNavHeader: channel
|
|
|
}));
|
|
|
});
|
...
|
...
|
|