| | |
| | | |
| | | state = { |
| | | loading: true, |
| | | background: sessionStorage.getItem('home_background'), |
| | | view: '' |
| | | } |
| | | |
| | | componentDidMount () { |
| | | this.loadHomeConfig() |
| | | } |
| | | |
| | | loadHomeConfig = () => { |
| | | let _param = { |
| | | func: 'sPC_Get_LongParam', |
| | | MenuID: this.props.MenuID |
| | |
| | | } |
| | | |
| | | render() { |
| | | const { loading, view } = this.state |
| | | const { loading, view, background } = this.state |
| | | |
| | | if (loading) { |
| | | return (<Spin className="home-box-spin" size="large" />) |
| | | return (<div className="home-loading-view" style={{background: background}}><Spin className="home-box-spin" size="large" /></div>) |
| | | } else if (view === 'custom') { |
| | | return (<CustomPage MenuID={this.props.MenuID}/>) |
| | | } else { |