...
|
...
|
@@ -450,7 +450,10 @@ export function setProductFilterFactors(category={key: 'gender', name: '性别', |
|
|
export function getProductList(reload=false) {
|
|
|
return (dispatch, getState) => {
|
|
|
let {app, brandStore} = getState();
|
|
|
let {shopId, productList, filterFactors} = brandStore;
|
|
|
let {shopId, productList, filterFactors,resource} = brandStore;
|
|
|
|
|
|
let {brandBrowse} = resource;
|
|
|
let {brandId} = brandBrowse;
|
|
|
|
|
|
if (reload) {
|
|
|
|
...
|
...
|
@@ -481,7 +484,7 @@ export function getProductList(reload=false) { |
|
|
}
|
|
|
|
|
|
dispatch(productListRequest());
|
|
|
return new BrandStoreService(app.host).productList(shopId, channel, order, page, pageSize, allFilterFactors)
|
|
|
return new BrandStoreService(app.host).productList(shopId, channel, order, page, pageSize, allFilterFactors,brandId)
|
|
|
.then(json => {
|
|
|
let payload = parseProductList(json);
|
|
|
payload.endReached = payload.currentPage == payload.pageCount || payload.list.length < pageSize;
|
...
|
...
|
@@ -572,14 +575,14 @@ function parseProductList(json) { |
|
|
isSelect: true,
|
|
|
});
|
|
|
brandList.map((item, i) => {
|
|
|
newSortList.push({
|
|
|
newBrandList.push({
|
|
|
key: item.id,
|
|
|
name: item.brand_name,
|
|
|
isSelect: false,
|
|
|
})
|
|
|
});
|
|
|
filterCategoryDetailFilterList.brand;
|
|
|
filterCategoryDetailFilterList.brand = newSortList;
|
|
|
filterCategoryDetailFilterList.brand = newBrandList;
|
|
|
}
|
|
|
|
|
|
if (filter['color']) {
|
...
|
...
|
|