import React from 'react'; import { Icon, Tabs,Spin } from 'antd'; import LoginForm from './loginForm.jsx'; import loginqq from '../../../image/login_qq.png'; import loginweixin from '../../../image/login_weixin.png'; import loginweibo from '../../../image/login_weibo.png'; import loginmore from '../../../image/login_more.png'; import './login.less'; const TabPane = Tabs.TabPane; const LoginContent = React.createClass({ getInitialState() { return { theKey: "0", loading:false }; }, tabChange(key) { this.setState({ theKey: key }) }, spinChange(e) { this.setState({ loading: e }); }, componentWillMount(){ if ( window.location.search === "?1" ) { this.state.theKey = '1' } }, render() { return (
) } }); export default LoginContent;