...
|
...
|
@@ -131,10 +131,33 @@ export function setProductListFilter(value) { |
|
|
}
|
|
|
|
|
|
export function setFilterView(show) {
|
|
|
return {
|
|
|
type: FILTER_LIST_VIEW,
|
|
|
payload: show
|
|
|
}
|
|
|
return (dispatch, getState) => {
|
|
|
// console.log('bbbbbb');
|
|
|
// let {app, redBrand} = getState();
|
|
|
// let {filterDataReady, shopId} = redBrand;
|
|
|
// console.log(redBrand.toJS());
|
|
|
// console.log(show);
|
|
|
// console.log(filterDataReady);
|
|
|
// if (!filterDataReady && show) {
|
|
|
// let channel = app.channel;
|
|
|
// return new RedBrandService(app.host).productFilter(shopId, channel)
|
|
|
// .then(json => {
|
|
|
// console.log('ccccc');
|
|
|
// console.log(json);
|
|
|
// })
|
|
|
// .catch(error => {
|
|
|
// console.log('eeeee');
|
|
|
// console.log(error);
|
|
|
// });
|
|
|
// } else {
|
|
|
// console.log('ggggggggß');
|
|
|
dispatch({
|
|
|
type: FILTER_LIST_VIEW,
|
|
|
payload: show
|
|
|
});
|
|
|
// }
|
|
|
};
|
|
|
|
|
|
}
|
|
|
export function setFilterMoreView(show) {
|
|
|
return {
|
...
|
...
|
|