...
|
...
|
@@ -32,6 +32,9 @@ import { |
|
|
setServiceHost,
|
|
|
} from './reducers/app/appActions';
|
|
|
|
|
|
import {
|
|
|
setCurrentChannelId,
|
|
|
} from './reducers/category/categoryActions';
|
|
|
|
|
|
function getInitialState() {
|
|
|
const _initState = {
|
...
|
...
|
@@ -63,7 +66,15 @@ export default function native(platform) { |
|
|
store.dispatch(setPlatform(platform));
|
|
|
store.dispatch(setHost(this.props.host));
|
|
|
store.dispatch(setServiceHost(this.props.serviceHost));
|
|
|
|
|
|
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 (
|
|
|
<Provider store={store}>
|
|
|
{this._renderContainer()}
|
...
|
...
|
|