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
Plain Diff
Browse Files
Authored by
chenl
8 years ago
Commit
a30344ea4c97818430e5441c5ea1ccca4f12f8a0
2 parents
abde79c4
f0d4c2d6
Merge branch 'local' into classify
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
20 deletions
js/brandStore/components/brandStore/BrandStore.js
js/brandStore/components/brandStore/brandStoreSubView/Cells/ProductCategoryList.js
js/brandStore/components/brandStore/BrandStore.js
View file @
a30344e
...
...
@@ -321,11 +321,18 @@ export default class BrandStore extends Component {
{
productList
.
isFilter
?
<
ProductCategoryList
productList
=
{
productList
}
onPressFilter
=
{
this
.
_onPressProductFilter
}
lastSelected
=
{
this
.
props
.
productList
.
isFilter
}
moreFilter
=
{
this
.
props
.
productList
.
isMoreFilter
}
selectOrder
=
{
this
.
props
.
productList
.
order
}
categoryFilterList
=
{
categoryFilterList
}
filterCategoryDetailFilterList
=
{
filterCategoryDetailFilterList
}
onPressProductFilterLeftItem
=
{
this
.
props
.
onPressProductFilterLeftItem
}
filterNameFactors
=
{
filterNameFactors
}
onPressProductFilterRightItem
=
{
this
.
props
.
onPressProductFilterRightItem
}
/> : null
}
onPressProductFilterRightItem
=
{
this
.
props
.
onPressProductFilterRightItem
}
onPressCloseMoreFilter
=
{
this
.
props
.
onPressCloseMoreFilter
}
onPressMoreFilter
=
{
this
.
props
.
onPressMoreFilter
}
/> : null
}
{
productList
.
isMoreFilter
?
<
BrandProductMoreFilter
...
...
js/brandStore/components/brandStore/brandStoreSubView/Cells/ProductCategoryList.js
View file @
a30344e
...
...
@@ -95,21 +95,29 @@ export default class ProductCategoryList extends React.Component {
}
return
(
<
View
style
=
{
styles
.
container
}
>
<
ListView
style
=
{
styles
.
leftContentContainer
}
dataSource
=
{
this
.
dataSourceL
.
cloneWithRows
(
categoryFilterList
.
toArray
())}
renderRow
=
{
this
.
leftRenderRow
}
scrollsToTop
=
{
false
}
/
>
<
ListView
ref
=
'subCategoryList'
style
=
{
styles
.
rightContentContainer
}
dataSource
=
{
this
.
dataSourceR
.
cloneWithRows
(
subList
.
toArray
())}
renderRow
=
{
this
.
rightRenderRow
}
scrollsToTop
=
{
false
}
/
>
<
/View>
<
View
style
=
{
styles
.
allcontainer
}
>
<
BrandProductFilter
onPressFilter
=
{
this
.
props
.
onPressFilter
}
lastSelected
=
{
this
.
props
.
productList
.
isFilter
}
moreFilter
=
{
this
.
props
.
productList
.
isMoreFilter
}
selectOrder
=
{
this
.
props
.
productList
.
order
}
/
>
<
View
style
=
{
styles
.
container
}
>
<
ListView
style
=
{
styles
.
leftContentContainer
}
dataSource
=
{
this
.
dataSourceL
.
cloneWithRows
(
categoryFilterList
.
toArray
())}
renderRow
=
{
this
.
leftRenderRow
}
scrollsToTop
=
{
false
}
/
>
<
ListView
ref
=
'subCategoryList'
style
=
{
styles
.
rightContentContainer
}
dataSource
=
{
this
.
dataSourceR
.
cloneWithRows
(
subList
.
toArray
())}
renderRow
=
{
this
.
rightRenderRow
}
scrollsToTop
=
{
false
}
/
>
<
/View
>
<
/View
>
);
}
};
...
...
@@ -119,18 +127,30 @@ let rowHeight = Math.ceil(height - 37);
let
rowWidth
=
Math
.
ceil
(
width
/
2
);
let
styles
=
StyleSheet
.
create
({
allcontainer
:{
flex
:
1
,
flexDirection
:
'column'
,
left
:
0
,
width
:
width
,
height
:
height
,
backgroundColor
:
'#ffffff'
,
borderTopColor
:
'#e0e0e0'
,
borderTopWidth
:
0.5
,
borderLeftColor
:
'#ffffff'
,
borderLeftWidth
:
0
,
borderRightWidth
:
0
,
borderBottomWidth
:
0
,
},
container
:{
flex
:
1
,
flexDirection
:
'row'
,
position
:
'absolute'
,
top
:
40
,
left
:
0
,
width
:
width
,
height
:
height
-
40
-
44
-
64
,
backgroundColor
:
'#ffffff'
,
borderTopColor
:
'#e0e0e0'
,
borderTopWidth
:
0.5
,
borderLeftColor
:
'#ffffff'
,
borderTopWidth
:
0
,
borderLeftWidth
:
0
,
borderRightWidth
:
0
,
borderBottomWidth
:
0
,
...
...
Please
register
or
login
to post a comment