...
|
...
|
@@ -30,7 +30,7 @@ export function getTopInfo() { |
|
|
return (dispatch, getState) => {
|
|
|
let {app} = getState();
|
|
|
dispatch(topInfoRequest());
|
|
|
return new NewArrivalService('http://api-test3.yohops.com:9999').fetchRecommendShop(app.channel)
|
|
|
return new NewArrivalService(app.host).fetchRecommendShop(app.channel)
|
|
|
.then(json => {
|
|
|
let {
|
|
|
shop_list,
|
...
|
...
|
@@ -190,7 +190,7 @@ export function getProductList(reload=false) { |
|
|
}
|
|
|
}
|
|
|
dispatch(productListRequest());
|
|
|
return new NewArrivalService('http://api-test3.yohops.com:9999').fetchProductList(channel, order, page, pageSize, allFilterFactors)
|
|
|
return new NewArrivalService(app.host).fetchProductList(channel, order, page, pageSize, allFilterFactors)
|
|
|
.then(json => {
|
|
|
let payload = parseProductList(json);
|
|
|
payload.endReached = payload.currentPage == payload.pageCount;
|
...
|
...
|
@@ -398,7 +398,7 @@ export function getRecommendBrand() { |
|
|
let channel = app.channel;
|
|
|
|
|
|
dispatch(recommendBrandRequest());
|
|
|
return new NewArrivalService('http://api-test3.yohops.com:9999').fetchRecommendBrand(channel)
|
|
|
return new NewArrivalService(app.host).fetchRecommendBrand(channel)
|
|
|
.then(json => {
|
|
|
let hotBrandList = json.hot_brand_list;
|
|
|
let browseBrandList = json.browse_brand_list;
|
...
|
...
|
|