|
@@ -6,7 +6,7 @@ import BodyContainer from "@components/BodyContainer";
|
|
|
|
|
|
import {HIDEDROP} from '@store/types/homePage.js';
|
|
import {HIDEDROP} from '@store/types/homePage.js';
|
|
import style from './index.less';
|
|
import style from './index.less';
|
|
-import {getInitModules} from '@store/async-actions/homePage.js';
|
|
|
|
|
|
+/*import {getInitModules} from '@store/async-actions/homePage.js';*/
|
|
import { getUrlArgObject } from "@utils/tools";
|
|
import { getUrlArgObject } from "@utils/tools";
|
|
|
|
|
|
class HomePage extends Component {
|
|
class HomePage extends Component {
|
|
@@ -17,7 +17,7 @@ class HomePage extends Component {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- componentDidMount(){
|
|
|
|
|
|
+ /*componentDidMount(){
|
|
clearTimeout(this.state.timer);
|
|
clearTimeout(this.state.timer);
|
|
const that = this;
|
|
const that = this;
|
|
const timer = setTimeout(function(){//解决患者信息在获取模板之后的问题
|
|
const timer = setTimeout(function(){//解决患者信息在获取模板之后的问题
|
|
@@ -26,7 +26,7 @@ class HomePage extends Component {
|
|
this.setState({
|
|
this.setState({
|
|
timer
|
|
timer
|
|
})
|
|
})
|
|
- }
|
|
|
|
|
|
+ }*/
|
|
render() {
|
|
render() {
|
|
return <div className={style['home-page']} onClick={this.props.hideAllDrop}>
|
|
return <div className={style['home-page']} onClick={this.props.hideAllDrop}>
|
|
<BannerContainer />
|
|
<BannerContainer />
|
|
@@ -48,9 +48,9 @@ const mapDispatchToProps = function (dispatch) {
|
|
type:HIDEDROP
|
|
type:HIDEDROP
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- getInit(){
|
|
|
|
|
|
+ /*getInit(){
|
|
dispatch(getInitModules);
|
|
dispatch(getInitModules);
|
|
- }
|
|
|
|
|
|
+ }*/
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
|