123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- import React from 'react';
- import { Spin, Button, Tabs } from 'antd';
- import '../content.less';
- import './content.less';
- import LeftTab from './leftTab.jsx';
- import weixin from '../../../../image/weixin-w.png';
- import qq from '../../../../image/qq-w.png';
- import weibo from '../../../../image/weibo-w.png';
- const TabPane = Tabs.TabPane;
- const Content = React.createClass({
- getInitialState() {
- return {
- per: '24',
- loading: false,
- userlvl: '1',
- userid: '1234567',
- follow: '0',
- chengguo: '0',
- kaifa: '0',
- fuwu: '0',
- xuqiu: '0',
- activityArr: [{ type: '成果对接会', title: '龙岗区在线科技成果对接会——智能制造业专场', time: '2017-01-10', link: '' },
- { type: '成果对接会', title: '钛白粉行业技术在线对接会', time: '2017-01-11', link: '' }]
- };
- },
- handlekey(key) {
- this.setState({
- leftKey: key,
- });
- },
- tabChange(key) {
- },
- render() {
- return (
- <div className="acc-content">
- <LeftTab handlekey={this.handlekey} />
- <div className="content-right">
- <Spin spinning={this.state.loading} className='spin-box'>
- <div className="index-content">
- <div className="index-userdata clearfix">
- <p className="acc-title">{this.state.userid}</p>
- <div className="userdata-img">
- <img src="" alt="" />
- </div>
- <div className="userdata-content">
- {(() => {
- switch (this.state.userlvl) {
- case '1':
- return <p className="userdata-lvl">等级:<span>LV1</span> 初来乍到</p>;
- case '2':
- return <p className="userdata-lvl">等级:<span>LV2</span> 初来乍到</p>;
- case '3':
- return <p className="userdata-lvl">等级:<span>LV3</span> 初来乍到</p>;
- case '4':
- return <p className="userdata-lvl">等级:<span>LV4</span> 初来乍到</p>;
- case '5':
- return <p className="userdata-lvl">等级:<span>LV5</span> 初来乍到</p>;
- };
- })()}
- <p>完善资料 {this.state.per}% ,<a href="./set.html">继续完善</a>,有助于提高您的资信</p>
- <p className="userdata-relate">
- <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>
- </Spin>
- </div>
- </div>
- )
- }
- });
- export default Content;
|