Toggle navigation
Toggle navigation
This project
Loading...
Sign in
mobile
/
YH_RNComponent
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
孙凯
8 years ago
Commit
0d9950d4c07f35977b7c3b5567eed8453051f6fa
1 parent
38138c98
修改 方法名 review by chenlin
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
9 deletions
js/productList/containers/ScreenCategoryContainer.js
js/productList/containers/ScreenContainer.js
js/productList/containers/ScreenSubContainer.js
js/productList/reducers/productListForBrand/productListForBrandActions.js
js/productList/reducers/productListForShop/productListForShopActions.js
js/productList/reducers/productListPool/productListPoolActions.js
js/productList/containers/ScreenCategoryContainer.js
View file @
0d9950d
...
...
@@ -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
){
...
...
js/productList/containers/ScreenContainer.js
View file @
0d9950d
...
...
@@ -64,7 +64,7 @@ class ScreenContainer extends Component {
);
this
.
subscription
=
NativeAppEventEmitter
.
addListener
(
'selectitemFilter'
,
'select
Sub
itemFilter'
,
(
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_
ScreenCategoryView
Helper
.
okAction
(
hasSelect
);
ReactNative
.
NativeModules
.
YH_
Filter
Helper
.
okAction
(
hasSelect
);
}
cancelAction
()
{
...
...
@@ -130,7 +130,7 @@ class ScreenContainer extends Component {
}
onSelectItem
(
subFilter
)
{
ReactNative
.
NativeModules
.
YH_
ScreenCategoryViewHelper
.
didSelectScreenIet
mIndex
(
subFilter
);
ReactNative
.
NativeModules
.
YH_
FilterHelper
.
didSelectFilterIte
mIndex
(
subFilter
);
}
updateFilter
(
dic
){
...
...
js/productList/containers/ScreenSubContainer.js
View file @
0d9950d
...
...
@@ -69,7 +69,7 @@ class ScreenSubContainer extends Component {
selectItem
(
data
,
key
){
this
.
props
.
actions
.
selectItem
(
data
,
key
);
ReactNative
.
NativeModules
.
YH_
ProductFilterSubViewHelper
.
didSelectScreen
SubItem
({
data
,
key
});
ReactNative
.
NativeModules
.
YH_
FilterHelper
.
didSelectFilter
SubItem
({
data
,
key
});
}
render
()
{
...
...
js/productList/reducers/productListForBrand/productListForBrandActions.js
View file @
0d9950d
...
...
@@ -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
=>
{
...
...
js/productList/reducers/productListForShop/productListForShopActions.js
View file @
0d9950d
...
...
@@ -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
=>
{
...
...
js/productList/reducers/productListPool/productListPoolActions.js
View file @
0d9950d
...
...
@@ -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
=>
{
...
...
Please
register
or
login
to post a comment