...
|
...
|
@@ -140,6 +140,23 @@ const _handelGlobalSort = (origin, params, originParams) => { |
|
|
};
|
|
|
};
|
|
|
|
|
|
const _getProductSeoData = (detail) => {
|
|
|
let resData = {};
|
|
|
|
|
|
if (!_.isEmpty(detail)) {
|
|
|
let gn = detail.product_name,
|
|
|
bn = _.get(detail, 'brand_info.brand_name') || detail.product_source;
|
|
|
|
|
|
resData = {
|
|
|
title: `${bn} | ${gn}正品 | YOHO!BUY 有货`,
|
|
|
keywords: `${bn},${bn}官网专卖店,${bn}官方授权店,${bn}正品,${bn}打折,${bn}折扣店,${bn}真品,${bn}代购`,
|
|
|
description: `YOHO!BUY 有货-${bn}官方授权店,${gn}图片、报价、介绍。YOHO!BUY 有货${bn}官网专卖店提供${bn}正品、${bn}真品、 ${bn}打折、${bn}代购等。` // eslint-disable-line
|
|
|
};
|
|
|
}
|
|
|
|
|
|
return resData;
|
|
|
};
|
|
|
|
|
|
const getGlobalProductListData = (params, yoho) => {
|
|
|
let limitNum = params.limit ? params.limit - 1 : 59;
|
|
|
let dps = {};
|
...
|
...
|
@@ -340,7 +357,7 @@ const getGlobalProductDetailData = (skn, channelNum, channel) => { |
|
|
Object.assign(resData, result.header, {
|
|
|
goodsInfo: detailInfo,
|
|
|
detailHtml: html || ''
|
|
|
});
|
|
|
}, _getProductSeoData(detailInfo));
|
|
|
|
|
|
return resData;
|
|
|
});
|
...
|
...
|
|