...
|
...
|
@@ -11,6 +11,13 @@ const _ = require('lodash'); |
|
|
const api = global.yoho.API;
|
|
|
const helpers = global.yoho.helpers;
|
|
|
|
|
|
const yhchannelMap = {
|
|
|
boys: '1',
|
|
|
girls: '2',
|
|
|
kids: '3',
|
|
|
lifestyle: '4'
|
|
|
};
|
|
|
|
|
|
const _formatProduct = (data) => {
|
|
|
let list = [];
|
|
|
|
...
|
...
|
@@ -46,7 +53,7 @@ module.exports = (data) => { |
|
|
return api.get('', {
|
|
|
method: 'h5.preference.Search',
|
|
|
productskn: data.productskn,
|
|
|
yhchannel: data.yhchannel,
|
|
|
yhchannel: yhchannelMap[data.yhchannel],
|
|
|
brandId: data.brandId
|
|
|
}).then(result => {
|
|
|
if (result) {
|
...
|
...
|
|