...
|
...
|
@@ -56,24 +56,8 @@ export default function native(platform) { |
|
|
|
|
|
_renderContainer() {
|
|
|
if (this.props.type == 0) {
|
|
|
|
|
|
if(this.props.channelId=='1'){
|
|
|
store.dispatch(setCurrentChannelId('boy'));
|
|
|
}else if(this.props.channelId=='2'){
|
|
|
store.dispatch(setCurrentChannelId('girl'));
|
|
|
}else if(this.props.channelId=='3'){
|
|
|
store.dispatch(setCurrentChannelId('kids'));
|
|
|
}else if(this.props.channelId=='4'){
|
|
|
store.dispatch(setCurrentChannelId('lifestyle'));
|
|
|
}
|
|
|
|
|
|
return <CategoryContainer />;
|
|
|
} else if (this.props.type == 1) {
|
|
|
|
|
|
if(this.props.channelId){
|
|
|
store.dispatch(setBrandSelectedChannel(this.props.channelId));
|
|
|
}
|
|
|
|
|
|
return <BrandContainer />;
|
|
|
} else if (this.props.type == 2) {
|
|
|
return <InterestContainer />;
|
...
|
...
|
@@ -87,6 +71,22 @@ export default function native(platform) { |
|
|
store.dispatch(setHost(this.props.host));
|
|
|
store.dispatch(setServiceHost(this.props.serviceHost));
|
|
|
|
|
|
if (this.props.type == 0) {
|
|
|
if (this.props.channelId == '1') {
|
|
|
store.dispatch(setCurrentChannelId('boy'));
|
|
|
} else if (this.props.channelId == '2') {
|
|
|
store.dispatch(setCurrentChannelId('girl'));
|
|
|
} else if (this.props.channelId == '3') {
|
|
|
store.dispatch(setCurrentChannelId('kids'));
|
|
|
} else if (this.props.channelId == '4') {
|
|
|
store.dispatch(setCurrentChannelId('lifestyle'));
|
|
|
}
|
|
|
} else if (this.props.type == 1) {
|
|
|
if (this.props.channelId) {
|
|
|
store.dispatch(setBrandSelectedChannel(this.props.channelId));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return (
|
|
|
<Provider store={store}>
|
|
|
{this._renderContainer()}
|
...
|
...
|
|