| | |
| | | import './index.scss' |
| | | |
| | | const LoginForm = asyncComponent(() => import('./loginform')) |
| | | const Action = asyncComponent(() => import('@/tabviews/tableshare/actionList')) |
| | | const iszhCN = !localStorage.getItem('lang') || localStorage.getItem('lang') === 'zh-CN' |
| | | |
| | | class Login extends Component { |
| | |
| | | ICP: window.GLOB.icp || 'ICP备案: 京ICP备12007830号', |
| | | bgColor: window.GLOB.bgColor || '#000000', |
| | | lineColor: window.GLOB.lineColor || '#1890ff', |
| | | website: window.GLOB.website || (!window.GLOB.copyRight && 'http://minkesoft.com') |
| | | website: window.GLOB.website || (!window.GLOB.copyRight && 'http://minkesoft.com'), |
| | | loaded: false |
| | | } |
| | | |
| | | changelang (item) { |
| | |
| | | localStorage.setItem('AuthCode', box) |
| | | |
| | | this.setState({ |
| | | auth: true |
| | | auth: true, |
| | | loaded: true |
| | | }) |
| | | } else { |
| | | localStorage.removeItem('AuthCode') |
| | |
| | | } |
| | | |
| | | render () { |
| | | |
| | | return ( |
| | | <div className="login-container" style={{backgroundImage: 'url(' + this.state.bgImage + ')', backgroundColor: this.state.bgColor}}> |
| | | <div className="logo" style={{borderColor: this.state.lineColor}}> |
| | |
| | | } |
| | | <p dangerouslySetInnerHTML={{ __html: this.state.ICP.replace(/\s/ig, ' ') }}></p> |
| | | </div> |
| | | {this.state.loaded ? <div style={{position: 'fixed', bottom: '-1000px'}}><Action setting={{}} actions={[]} /></div> : null } |
| | | </div> |
| | | ) |
| | | } |