import React from 'react';
import { Spin, Button, Tabs } from 'antd';
import ajax from 'jquery/src/ajax/xhr.js'
import $ from 'jquery/src/ajax';

import '../content.less';
import LeftTab from './leftTab.jsx';


const TabPane = Tabs.TabPane;



const Content = React.createClass({
    getInitialState() {
        return {
            loading: false
        };
    },
    render() {
        return (
            <div className="manage-content">
                <LeftTab handlekey={this.handlekey} />
                <div className="content-right">
                    <Spin spinning={this.state.loading} className='spin-box'>
                        <div className="index-content">
                        </div>
                    </Spin>
                </div>
            </div>
        )
    }
});

export default Content;

// <div className="index-content">
//                             <div className="index-userdata clearfix">
//                                 <p className="acc-title">{this.state.number}</p>
//                                 <div className="userdata-img">
//                                     <img src={globalConfig.staticHost + "/upload" + this.state.personPortraitUrl} alt="" />
//                                 </div>
//                                 <div className="userdata-content">
//                                     {(() => {
//                                         switch (userData.lvl || this.state.userlvl) {
//                                             case '0':
//                                                 return <p className="userdata-lvl">等级：<span>LV1</span> 普通用户</p>;
//                                             case '1':
//                                                 return <p className="userdata-lvl">等级：<span>LV2</span> 已认证用户</p>;
//                                         };
//                                     })()}
//                                     <p>完善资料 {this.state.per}% ，<a href="./set.html">继续完善</a>，有助于提高您的资信</p>
//                                     <p className="userdata-relate" style={{ 'display': 'none' }}>
//                                         <Button className="relateqq"><img src={qq} alt="" /> QQ账号登录</Button>
//                                         <Button className="relateweibo"><img src={weibo} alt="" />微博账号登录</Button>
//                                         <Button className="relateweixin"><img src={weixin} alt="" />微信账号登录</Button>
//                                     </p>
//                                     <div className="userdata-follow">已有<a href="">{this.state.follow}</a>人关注你</div>
//                                 </div>
//                             </div>
//                             <div className="index-record">
//                                 <p className="acc-title">我的轨迹</p>
//                                 <ul className="record-list clearfix">
//                                     <li>技术成果：<a href="">{this.state.chengguo}</a>项</li>
//                                     <li>技术开发：<a href="">{this.state.kaifa}</a>项</li>
//                                     <li>科技服务：<a href="">{this.state.fuwu}</a>项</li>
//                                     <li>发布需求：<a href="">{this.state.xuqiu}</a>项</li>
//                                 </ul>
//                             </div>
//                             <div className="index-activity">
//                                 <Tabs defaultActiveKey="1" onChange={this.tabChange}>
//                                     <TabPane tab="活动" key="1">
//                                         <p className="acc-title">即将举办的活动</p>
//                                         <ul className="activity-list">
//                                             {
//                                                 this.state.activityArr.map(function (item, i) {
//                                                     return <li key={i}>
//                                                         <span className="list-type">[{item.type}]</span>
//                                                         <span className="list-title">{item.title}</span>
//                                                         <a href={item.link}>报名</a>
//                                                         <span className="list-time">{item.time}</span>
//                                                     </li>;
//                                                 })
//                                             }
//                                         </ul>
//                                     </TabPane>
//                                     <TabPane tab="其他" key="2">Content of Tab Pane 2</TabPane>
//                                 </Tabs>
//                             </div>
//                         </div>