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
shixiang
8 years ago
Commit
fab24921dd62c4711752157a7bd515c20c216a8c
1 parent
9218e1ad
添加频道切换跳转功能、review 陈林
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
js/classify/containers/CategoryContainer.js
js/classify/containers/CategoryContainer.js
View file @
fab2492
...
...
@@ -50,6 +50,22 @@ class CategoryContainer extends Component {
this
.
_onSelectChannel
=
this
.
_onSelectChannel
.
bind
(
this
);
this
.
_pressLeftRow
=
this
.
_pressLeftRow
.
bind
(
this
);
this
.
_pressSubCateRow
=
this
.
_pressSubCateRow
.
bind
(
this
);
this
.
subscription
=
NativeAppEventEmitter
.
addListener
(
'ChannelDidChangeEvent'
,
(
reminder
)
=>
{
let
value
;
if
(
reminder
.
channel
==
2
){
value
=
'girl'
;
}
else
if
(
reminder
.
channel
==
3
){
value
=
'kids'
;
}
else
if
(
reminder
.
channel
==
4
){
value
=
'lifestyle'
;
}
else
{
value
=
'boy'
;
}
this
.
_onSelectChannel
({
value
:
value
});
}
);
}
componentDidMount
()
{
...
...
Please
register
or
login
to post a comment