...
|
...
|
@@ -7,13 +7,21 @@ const processProductList = require(`${global.utils}/beautify/product`); |
|
|
|
|
|
const search = {
|
|
|
products(params) {
|
|
|
let method = 'app.search.li';
|
|
|
|
|
|
if (params.hasOwnProperty('priceRange')) {
|
|
|
params.price = params.priceRange;
|
|
|
delete params.priceRange;
|
|
|
}
|
|
|
|
|
|
if (params.filter_poolId) {
|
|
|
params.productPool = params.filter_poolId;
|
|
|
delete params.filter_poolId;
|
|
|
method = 'app.search.pool';
|
|
|
}
|
|
|
|
|
|
const data = _.merge({
|
|
|
method: 'app.search.li'
|
|
|
method
|
|
|
}, params);
|
|
|
|
|
|
return api.get('', data, {
|
...
|
...
|
|