...
|
...
|
@@ -36,7 +36,6 @@ const _processListData = (list) => { |
|
|
});
|
|
|
|
|
|
_.forEach(list.list.artList, (data) => {
|
|
|
// console.log(data)
|
|
|
|
|
|
if (data.author) {
|
|
|
listData = _.assign(listData, {
|
...
|
...
|
@@ -230,7 +229,7 @@ const _getRelatedData = (idList) => { |
|
|
cnAlphabet: data.cn_alphabet
|
|
|
});
|
|
|
});
|
|
|
|
|
|
console.log(productList);
|
|
|
return productList;
|
|
|
} else {
|
|
|
logger.error('推荐商品 cood 不是 200');
|
...
|
...
|
@@ -247,6 +246,7 @@ const _getRelatedData = (idList) => { |
|
|
const _processContentData = (list) => {
|
|
|
list = list || [];
|
|
|
list = camelCase(list);
|
|
|
console.log(list);
|
|
|
|
|
|
let contentData = {
|
|
|
contents: []
|
...
|
...
|
@@ -282,6 +282,7 @@ const _processContentData = (list) => { |
|
|
if (value.goods) {
|
|
|
|
|
|
_.forEach(value.goods.data, function(data) {
|
|
|
console.log(data);
|
|
|
|
|
|
idList += data.id + ',';
|
|
|
related.relatedReco.push(data);
|
...
|
...
|
@@ -308,7 +309,10 @@ const _processContentData = (list) => { |
|
|
|
|
|
if (related.relatedReco) {
|
|
|
_.forEach(related.relatedReco, function(data, index) {
|
|
|
data = _.assign(data, {
|
|
|
|
|
|
// link: `${config.siteUrl}/product/list/pro_${result[index].id}_data.${data.productSkc}`
|
|
|
});
|
|
|
data = _.assign(data, result[index]);
|
|
|
});
|
|
|
result.splice(0, recoLength.length);
|
...
|
...
|
|