...
|
...
|
@@ -92,7 +92,19 @@ exports.getSuggest = (params) => { |
|
|
};
|
|
|
|
|
|
exports.getBrands4Filter = (params) => {
|
|
|
return searchApi.getBrands4Filter(params).then(result => {
|
|
|
|
|
|
let nparams = {};
|
|
|
|
|
|
if (params && params.price) {
|
|
|
let mp = params.price.split(',');
|
|
|
let nmp = [];
|
|
|
|
|
|
nmp[0] = (mp && mp[0]) || 0;
|
|
|
nmp[1] = (mp && mp[1]) || 99999;
|
|
|
nparams.price = nmp.join(',');
|
|
|
}
|
|
|
|
|
|
return searchApi.getBrands4Filter(Object.assign({}, params, nparams)).then(result => {
|
|
|
|
|
|
let dest = [];
|
|
|
|
...
|
...
|
|