...
|
...
|
@@ -1010,19 +1010,6 @@ const _getIntroInfo = (productSkn, maxSortId, additionalData)=> { |
|
|
return result;
|
|
|
};
|
|
|
|
|
|
// 返回6条推荐关键词页面
|
|
|
const getKeywordsInfo = (keywords) => {
|
|
|
let res = [];
|
|
|
|
|
|
_.forEach(_.slice(_.shuffle(keywords), 0, 12), val => {
|
|
|
res.push({
|
|
|
url: Helpers.urlFormat(`/chanpin/${val.id}.html`),
|
|
|
keyword: val.keyword
|
|
|
});
|
|
|
});
|
|
|
return res;
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* 获取seo信息
|
|
|
*
|
...
|
...
|
@@ -1194,13 +1181,13 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => { |
|
|
let coupon = requestData.coupon;
|
|
|
let limitedInfo = requestData.limited;
|
|
|
let bundle = requestData.bundle;
|
|
|
let recommendKeywords = requestData.recommendKeywords ? JSON.parse(requestData.recommendKeywords) : [];
|
|
|
let recommendKeywords = requestData.recommendKeywords;
|
|
|
|
|
|
// 处理相似商品
|
|
|
result.alike = productProcess.processProductList(_.get(requestData, 'alike.data.product_list', ''));
|
|
|
|
|
|
// 推荐关键词页面
|
|
|
result.recommendKeywords = getKeywordsInfo(recommendKeywords);
|
|
|
result.recommendKeywords = recommendKeywords;
|
|
|
|
|
|
// 处理店铺推荐
|
|
|
result.shopRecommend = productProcess.processProductList(
|
...
|
...
|
|