import React, {Component} from "react"; import { Form, Select, Input, Button, Checkbox, Upload, Icon, message, Modal, Table, Divider, InputNumber, Tag, DatePicker, Radio, Tooltip, notification } from "antd"; import {Link, Switch, Route, Redirect} from 'react-router-dom'; import '../courses/css/members.css'; import "../courses/common/formCommon.css" import '../courses/css/Courses.css'; import beijintulogontwo from '../../../src/images/login/beijintulogontwo.png'; import educodernet from '../../../src/images/login/educodernet.png'; import LoginRegisterComponent from '../user/LoginRegisterComponent'; import FindPasswordComponent from '../user/FindPasswordComponent'; import passopen from "../../images/login/passopen.png"; //educoder登入页面 var sectionStyle = { "height": "100%", "width": "100%", "min-width": "1000px", // makesure here is String确保这里是一个字符串,以下是es6写法 }; var imgback = { " background-size":"cover", "background-repeat":"no-repeat", backgroundImage: `url(${beijintulogontwo})`, } var imgmian ={ "width": "100%", "background": `url(${beijintulogontwo})`, "height": "100%", "position": "relative", } var newContainer={ "min-height": "100%", "background": `url(${beijintulogontwo})`, "height": "auto !important", "position": "relative", } class EducoderLogin extends Component { constructor(props) { super(props); if( props.match.url === "/changepassword" ){ this.state = { showbool: false, logini:3, } }else { if(props.match.url === "/login"){ this.state = { showbool: true, loginstatus:true, logini:1, } }else if(props.match.url === "/register"){ this.state = { showbool: true, loginstatus:false, logini:2, } }else{ this.state = { showbool: true, logini:1, } } } } componentDidMount() { } Setlogins=(i)=>{ console.log("96ye"); console.log(i) this.setState({ logini:i }) } Setshowbool = () => { if (this.state.showbool === true) { this.setState({ showbool: false }) } else { this.setState({ showbool: true }) } } render() { let {showbool,loginstatus,logini} = this.state; return (
{ showbool === true ?
:
}
© 2019 EduCoder湘ICP备17009477号Trustie   &   IntelliDE inside.
) } } export default EducoderLogin;