...
|
...
|
@@ -45,11 +45,11 @@ const channelMap = { |
|
|
},
|
|
|
kids: {
|
|
|
code: 'd71f4b27f2a7229fbb31a4bc490a6f36',
|
|
|
gender: 'kids'
|
|
|
gender: '2,3'
|
|
|
},
|
|
|
lifestyle: {
|
|
|
code: '8a341ca7eacc069ba80f02dec80eaf34',
|
|
|
gender: 'lifestyle'
|
|
|
gender: '2,3'
|
|
|
}
|
|
|
};
|
|
|
|
...
|
...
|
@@ -639,18 +639,12 @@ exports.getNewArrival = channel => { |
|
|
sales: 'Y',
|
|
|
attribute_not: 2,
|
|
|
stocknumber: 3,
|
|
|
shelve_time: getShelveTime(6)
|
|
|
shelve_time: getShelveTime(20)
|
|
|
};
|
|
|
|
|
|
// 最新上架参数(男首频道:gender=1,3 女首频道gender=2,4)
|
|
|
// if (channel === 'boys') {
|
|
|
// params.gender = '1,3';
|
|
|
// } else {
|
|
|
// params.gender = '2,4';
|
|
|
// }
|
|
|
|
|
|
params.gender = channelMap[channel].gender;
|
|
|
|
|
|
|
|
|
_.forEach(sortList, (item) => {
|
|
|
let data = Object.assign(item, params);
|
|
|
|
...
|
...
|
@@ -661,6 +655,8 @@ exports.getNewArrival = channel => { |
|
|
let data = [],
|
|
|
result = [];
|
|
|
|
|
|
console.log(res);
|
|
|
|
|
|
_.forEach(sortList, (it, index) => {
|
|
|
if (res[index].data.product_list.length === sortList[index].viewNum) {
|
|
|
data = data.concat(res[index].data.product_list);
|
...
|
...
|
|