...
|
...
|
@@ -61,6 +61,7 @@ class CategoryBContainer extends Component { |
|
|
this.subscription = NativeAppEventEmitter.addListener(
|
|
|
'ChannelDidChangeEvent',
|
|
|
(reminder) => {
|
|
|
this.props.actions.setPerloadStatus(true);
|
|
|
let id = reminder.channel;
|
|
|
let value;
|
|
|
if(id == 2){
|
...
|
...
|
@@ -97,14 +98,7 @@ class CategoryBContainer extends Component { |
|
|
|
|
|
_onSelectChannel(channel) {
|
|
|
this.props.actions.setCurrentChannelB(channel.id, channel.value);
|
|
|
|
|
|
let list = this.props.categoryB.categoryList.get(channel.value);
|
|
|
if (!list || list.size == 0) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
let category = list.get(0);
|
|
|
category && this._onSelectCategory(category.toJS());
|
|
|
this.props.actions.getCategoryBFirstSubCategoryDetail();
|
|
|
}
|
|
|
|
|
|
_onSelectCategory(category) {
|
...
|
...
|
|