...
|
...
|
@@ -50,6 +50,15 @@ import { |
|
|
setActivityId,
|
|
|
} from './reducers/app/appActions';
|
|
|
|
|
|
import {
|
|
|
updateDataSource
|
|
|
} from './reducers/screenSub/screenSubActions';
|
|
|
|
|
|
import {
|
|
|
updateCategoryDataSource
|
|
|
} from './reducers/screenCategory/screenCategoryActions';
|
|
|
|
|
|
|
|
|
function getInitialState() {
|
|
|
const _initState = {
|
|
|
app: (new appInitialState()),
|
...
|
...
|
@@ -71,8 +80,7 @@ export default function native(platform) { |
|
|
render() {
|
|
|
const store = configureStore(getInitialState());
|
|
|
store.dispatch(setPlatform(platform));
|
|
|
let {host, serviceHost, channel, type, brand_id, shop_id, dictParams, saleType, activityId} = this.props;
|
|
|
|
|
|
let {host, serviceHost, channel, type, brand_id, shop_id, dictParams, saleType, activityId, filterSubMap} = this.props;
|
|
|
store.dispatch(setHost(host));
|
|
|
store.dispatch(setServiceHost(serviceHost));
|
|
|
store.dispatch(setChannel(channel));
|
...
|
...
|
@@ -90,12 +98,14 @@ export default function native(platform) { |
|
|
</Provider>
|
|
|
);
|
|
|
} else if(type == 'YH_ProductFilterCategoryView' ){
|
|
|
store.dispatch(updateCategoryDataSource(filterSubMap));
|
|
|
return (
|
|
|
<Provider store={store}>
|
|
|
<ScreenCategoryContainer />
|
|
|
</Provider>
|
|
|
);
|
|
|
} else if (type == 'YH_ProductFilterSubView' ){
|
|
|
store.dispatch(updateDataSource(filterSubMap));
|
|
|
return (
|
|
|
<Provider store={store}>
|
|
|
<ScreenSubContainer />
|
...
|
...
|
|