Authored by 于良

底部产品列表优化 review by shixiang

... ... @@ -474,7 +474,7 @@ export function getProductList(reload=false) {
return new BrandStoreService(app.host).productList(shopId, channel, order, page, pageSize, allFilterFactors)
.then(json => {
let payload = parseProductList(json);
payload.endReached = payload.currentPage == payload.pageCount;
payload.endReached = payload.currentPage == payload.pageCount || payload.list.length < pageSize;
if (payload.currentPage > 1) {
let oldList = productList.list.toJS();
let list = [...oldList, ...payload.list];
... ...
... ... @@ -315,9 +315,9 @@ export default function brandStoreReducer(state=initialState, action) {
.setIn(['productListForNew', 'error'], action.payload);
}
case FILTER_LIST_VIEW: {
return state.setIn(['productList', 'isFilter'], !state.productList.isFilter);
return state.setIn(['productList', 'isFilter'], action.payload);
}
... ...