Authored by 刘传洋

search shopSort bug

@@ -390,13 +390,13 @@ const getShopList = params => { @@ -390,13 +390,13 @@ const getShopList = params => {
390 _.forEach(sorts, (val, index) => { 390 _.forEach(sorts, (val, index) => {
391 shopData.push({ 391 shopData.push({
392 shop: brandShops[index], 392 shop: brandShops[index],
393 - shopSort: val && val.data && val.data.sort 393 + shopSort: val && val.data && !_.isFunction(val.data.sort) && val.data.sort
394 }); 394 });
395 }); 395 });
396 } else if (sorts && sorts.code === 200 && sorts.data) { 396 } else if (sorts && sorts.code === 200 && sorts.data) {
397 shopData.push({ 397 shopData.push({
398 shop: brandShop, 398 shop: brandShop,
399 - shopSort: sorts.data.sort 399 + shopSort: !_.isFunction(sorts.data.sort) && sorts.data.sort
400 }); 400 });
401 } 401 }
402 402