Authored by 孙凯

修改 方法名 review by chenlin

... ... @@ -64,12 +64,12 @@ class ScreenCategoryContainer extends Component {
selectSubItem(data,key){
this.props.actions.selectSubItem(data,key);
ReactNative.NativeModules.YH_ProductFilterCategoryViewHelper.didSelectScreenSubItem({data,key});
ReactNative.NativeModules.YH_FilterHelper.didSelectCategoryItemFilter({data,key});
}
selectItem(data,key){
this.props.actions.selectItem(data,key);
ReactNative.NativeModules.YH_ProductFilterCategoryViewHelper.didSelectScreenSubItem({data,key});
ReactNative.NativeModules.YH_FilterHelper.didSelectCategoryItemFilter({data,key});
}
updateFilterCategory(dic){
... ...
... ... @@ -64,7 +64,7 @@ class ScreenContainer extends Component {
);
this.subscription = NativeAppEventEmitter.addListener(
'selectitemFilter',
'selectSubitemFilter',
(dic) => {
let {app, screen} = this.props;
let categoryFilterList = screen&&screen.get('categoryFilterList')?screen.get('categoryFilterList').toJS():'';
... ... @@ -121,7 +121,7 @@ class ScreenContainer extends Component {
});
//}
}
ReactNative.NativeModules.YH_ScreenCategoryViewHelper.okAction(hasSelect);
ReactNative.NativeModules.YH_FilterHelper.okAction(hasSelect);
}
cancelAction() {
... ... @@ -130,7 +130,7 @@ class ScreenContainer extends Component {
}
onSelectItem(subFilter) {
ReactNative.NativeModules.YH_ScreenCategoryViewHelper.didSelectScreenIetmIndex(subFilter);
ReactNative.NativeModules.YH_FilterHelper.didSelectFilterItemIndex(subFilter);
}
updateFilter(dic){
... ...
... ... @@ -69,7 +69,7 @@ class ScreenSubContainer extends Component {
selectItem(data,key){
this.props.actions.selectItem(data,key);
ReactNative.NativeModules.YH_ProductFilterSubViewHelper.didSelectScreenSubItem({data,key});
ReactNative.NativeModules.YH_FilterHelper.didSelectFilterSubItem({data,key});
}
render() {
... ...
... ... @@ -459,7 +459,7 @@ export function getProductList(reload=false) {
let filterCategoryDetailFilterList = payload.filterCategoryDetailFilterList;
let filters = Utils.parsecategoryFilter({categoryFilterList,filterCategoryDetailFilterList});
ReactNative.NativeModules.YH_ProductListRNViewHelper.setFilterData(filters);
ReactNative.NativeModules.YH_ScreenCategoryViewHelper.enableBrandFilter();
ReactNative.NativeModules.YH_FilterHelper.enableBrandFilter(true);
dispatch(productListSuccess(payload));
})
.catch(error => {
... ...
... ... @@ -467,7 +467,7 @@ export function getProductList(reload=false) {
let filterCategoryDetailFilterList = payload.filterCategoryDetailFilterList;
let filters = Utils.parsecategoryFilter({categoryFilterList,filterCategoryDetailFilterList});
ReactNative.NativeModules.YH_ProductListRNViewHelper.setFilterData(filters);
ReactNative.NativeModules.YH_ScreenCategoryViewHelper.enableBrandFilter();
ReactNative.NativeModules.YH_FilterHelper.enableBrandFilter(true);
dispatch(productListSuccess(payload));
})
.catch(error => {
... ...
... ... @@ -142,7 +142,7 @@ export function getProductList(reload=false) {
let filterCategoryDetailFilterList = payload.filterCategoryDetailFilterList;
let filters = Utils.parsecategoryFilter({categoryFilterList,filterCategoryDetailFilterList});
ReactNative.NativeModules.YH_ProductListRNViewHelper.setFilterData(filters);
ReactNative.NativeModules.YH_ScreenCategoryViewHelper.enableBrandFilter();
ReactNative.NativeModules.YH_FilterHelper.enableBrandFilter(true);
dispatch(productListSuccess(payload));
})
.catch(error => {
... ...