Authored by 周少峰

price order, newshelve, api url

... ... @@ -45,7 +45,7 @@ const sortMap = dataMap.sort;
const webSearchAsync = data => {
return api.get('', Object.assign({
method: 'app.search.newProduct'
method: 'web.search.newshelve'
}, data), {cache: true});
};
... ...
... ... @@ -548,12 +548,18 @@ exports.handleFilterData = (origin, params, total) => {
let price = {
checked: params.price === key,
href: handleFilterUrl(params, {price: key}),
name: value
name: value,
order: +key.split(",")[0]
};
dest.price.push(price);
});
// 价格排序
dest.price = _.sortBy(dest.price, (item) => {
return item.order;
});
dest.customPrice = {
min: customPrice[0],
max: customPrice[1]
... ...
... ... @@ -16,8 +16,8 @@ module.exports = {
siteUrl: 'http://www.yohobuy.com',
domains: {
favApi: 'http://192.168.102.31:8092/brower',
api: 'http://api-test2.yohops.com:9999/',
service: 'http://service-test2.yohops.com:9999/',
api: 'http://api-test1.yohops.com:9999/',
service: 'http://service-test1.yohops.com:9999/',
search: 'http://192.168.102.216:8080/yohosearch/'
},
subDomains: {
... ...