...
|
...
|
@@ -57,12 +57,15 @@ const newDetail = { |
|
|
let appPath = 'yohobuy://yohobuy.com/goapp?openby:yohobuy={"action":"go.productDetail","params":' +
|
|
|
JSON.stringify(appParams) +
|
|
|
'}';
|
|
|
let mipPic = _.get(result, 'bannerTop.list[0].img', '');
|
|
|
|
|
|
if (mipPic) {
|
|
|
mipPic = mipPic.replace(/\?(.*)/g, "?imageView2/{mode}/w/{width}/h/{height}");
|
|
|
}
|
|
|
|
|
|
let mipPics = _.map(_.get(result, 'bannerTop.list', []), item => {
|
|
|
return item.img.replace(/\?(.*)/g, "?imageView2/{mode}/w/{width}/h/{height}");
|
|
|
});
|
|
|
|
|
|
let title = `【${result.brandName}${result.sortName}】${result.goodsName}|YOHO!BUY 有货`;
|
|
|
let description = result.goodsName + ' 有货网仅售' + result.goodsPrice.currentPrice + '元,购买' +
|
|
|
result.brandName + result.sortName + ',了解' + result.brandName + result.sortName + '商品信息就上有货网!';
|
|
|
|
|
|
res.render('detail/new/detail', {
|
|
|
pageHeader: headerData,
|
|
|
result: result,
|
...
|
...
|
@@ -70,20 +73,19 @@ const newDetail = { |
|
|
canonical: {
|
|
|
currentHref: `https://www.yohobuy.com${req.originalUrl}`
|
|
|
},
|
|
|
title: `【${result.brandName}${result.sortName}】${result.goodsName}|YOHO!BUY 有货`,
|
|
|
title: title,
|
|
|
keywords: result.brandName + result.sortName + ',' + result.brandName + result.sortName + '价格,' +
|
|
|
result.brandName + result.sortName + '图片,',
|
|
|
description: result.goodsName + ' 有货网仅售' + result.goodsPrice.currentPrice + '元,购买' +
|
|
|
result.brandName + result.sortName + ',了解' + result.brandName + result.sortName + '商品信息就上有货网!',
|
|
|
description: description,
|
|
|
pageFooter: true,
|
|
|
localCss: true,
|
|
|
appPath: appPath,
|
|
|
isMarsApp: req.yoho.isMarsApp, // 判断mars
|
|
|
showAnaJson: {
|
|
|
miptitle: result.goodsName,
|
|
|
miptitle: title,
|
|
|
mipPublishTime: '',// mip日期必填
|
|
|
mipPic: mipPic,
|
|
|
mipDes: result.phrase,
|
|
|
mipPics: mipPics.slice(0, 5),
|
|
|
mipDes: description,
|
|
|
mipUrl: `http://m.yohobuy.com/product/${result.productSkn}.html`
|
|
|
}
|
|
|
});
|
...
|
...
|
|