...
|
...
|
@@ -40,6 +40,7 @@ import homeInitialState from './reducers/home/homeInitialState'; |
|
|
import messageInitialState from './reducers/message/messageInitialState';
|
|
|
import userInitialState from './reducers/user/userInitialState';
|
|
|
import accountSettlementInitialState from './reducers/accountSettlement/accountSettlementInitialState';
|
|
|
import saleStatisticsInitialState from './reducers/saleStatistics/saleStatisticsInitialState';
|
|
|
|
|
|
|
|
|
import App from './containers/App';
|
...
|
...
|
@@ -54,6 +55,7 @@ import ModifyPasswordContainer from './containers/ModifyPasswordContainer' |
|
|
import AccountSettlementContainer from './containers/AccountSettlementContainer'
|
|
|
import AboutUsContainer from './containers/AboutUsContainer'
|
|
|
import StockStatsContainer from './containers/StockStatsContainer'
|
|
|
import SaleStatisticsContainer from './containers/SaleStatisticsContainer'
|
|
|
|
|
|
import NavBar from './components/NavBar';
|
|
|
import TabIcon from './containers/TabIcon';
|
...
|
...
|
@@ -75,6 +77,8 @@ function getInitialState() { |
|
|
message: (new messageInitialState),
|
|
|
user: (new userInitialState),
|
|
|
actStmt: (new accountSettlementInitialState),
|
|
|
saleStats: (new saleStatisticsInitialState()),
|
|
|
stockStats: (new stockStatsInitialState()),
|
|
|
};
|
|
|
return _initState;
|
|
|
}
|
...
|
...
|
@@ -100,7 +104,7 @@ export default function native(platform) { |
|
|
// setup the router table with App selected as the initial component
|
|
|
return (
|
|
|
<Provider store={store}>
|
|
|
<NewRouter hideNavBar={false}>
|
|
|
<NewRouter hideNavBar={false} sceneStyle={styles.scene}>
|
|
|
<Scene key="root" >
|
|
|
<Scene
|
|
|
key="App"
|
...
|
...
|
@@ -145,12 +149,13 @@ export default function native(platform) { |
|
|
type="push"
|
|
|
/>
|
|
|
<Scene
|
|
|
key="Test"
|
|
|
component={GuideContainer}
|
|
|
title='Test'
|
|
|
key="SaleStats"
|
|
|
component={SaleStatisticsContainer}
|
|
|
title='销售统计'
|
|
|
hideNavBar={false}
|
|
|
initial={false}
|
|
|
navBar={NavBar}
|
|
|
titleStyle={styles.navTitle}
|
|
|
type='push'
|
|
|
/>
|
|
|
|
...
|
...
|
@@ -188,7 +193,7 @@ export default function native(platform) { |
|
|
/>
|
|
|
|
|
|
<Scene key="Drawer" component={DrawerContainer} type="replace" hideNavBar={true} >
|
|
|
<Scene key="Tabbar" tabs={true} initial={false} type="replace" component={TabBar} >
|
|
|
<Scene key="Tabbar" tabs={true} initial={false} type="replace" component={TabBar}>
|
|
|
<Scene
|
|
|
key="Home"
|
|
|
title="首页"
|
...
|
...
|
@@ -239,6 +244,9 @@ export default function native(platform) { |
|
|
}
|
|
|
|
|
|
let styles = StyleSheet.create({
|
|
|
scene: {
|
|
|
backgroundColor:'#F0F0F0',
|
|
|
},
|
|
|
navTitle: {
|
|
|
color: 'white',
|
|
|
},
|
...
|
...
|
|