import React from 'react'; import '../content.less'; import LeftTab from './leftTab.jsx'; import Patent from './patent'; import Intellectual from './intellectual'; import Activity from './activity'; import Standard from './standard'; import ActivityCostList from './activityCostList'; import TechProduct from './techProduct'; import Ratepay from './ratepay'; import Finance from './finance'; import Achievement from './achievement'; import HonorList from './honorList'; import OrgTechCenter from './orgTechCenter'; import AnnualReport from './annualReport'; import Cognizance from './cognizance'; import Copyright from './copyright/copyright'; import Technology from './technology' const Content = React.createClass({ getInitialState() { return { loading: false, leftKey: 'patent', userType: '0' }; }, handlekey(key) { this.setState({ leftKey: key, }); window.location.hash = key; }, componentWillMount() { if (window.location.hash) { this.handlekey(window.location.hash.substr(1)); }; }, render() { return (
{(() => { switch (this.state.leftKey) { case 'patent': return ; case 'intellectual': return ; case 'activity': return ; case 'standard': return ; case 'activityCostList': return ; case 'techProduct': return ; case 'ratepay': return ; case 'finance': return ; case 'achievement': return ; case 'honorList': return ; case 'orgTechCenter': return ; case 'annualReport': return ; case 'cognizance': return ; case 'copyright': return ; case 'technology': return ; }; })()}
) } }); export default Content;