Authored by yyq

Merge branch 'release/newSearch' of git.yoho.cn:fe/yohobuy-node into release/newSearch

... ... @@ -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 = [];
... ...
... ... @@ -157,10 +157,11 @@ function checkMoreBrands(callback) {
// /product/search/filter/brands?callback=?
var url = '//search.yohobuy.com/product/search/filter/brands?callback=?';
var brandsHtml;
var params = (location.search || '').substr(1);
if (!moreBrandLoaded) {
$.getJSON(url, location.search, function(jsonData) {
$.getJSON(url, params, function(jsonData) {
if (jsonData.code === 200) {
... ...