import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import './index.less';
import { Tooltip, Icon } from 'antd';
import Page from '@src/containers/Page';
import Assets from '@src/components/Assets';
import UserLayout from '../../../layouts/User';
import Button from '../../../components/Button';
import { Icon as GIcon } from '../../../components/Icon';
import UserTable from '../../../components/UserTable';
import Examination from '../../../components/Examination';
import menu from '../index';
import { BindPhone, BindEmail, EditInfo, RealAuth, EditAvatar, InviteModal } from '../../../components/OtherModal';
import VipRenew from '../../../components/VipRenew';
class LogItem extends Component {
constructor(props) {
super(props);
this.columns = [
{ title: '', key: 'title' },
{ title: '语法SC', key: 'sc' },
{ title: '逻辑CR', key: 'cr' },
{ title: '阅读RC', key: 'rc' },
];
this.state = { open: false };
}
render() {
const { data = {} } = this.props;
const { total = [], detail = [] } = data;
const { open } = this.state;
return (
{total.map(item => {
return (
);
})}
this.setState({ open: !open })} />
);
}
}
export default class extends Page {
initState() {
return {
showExamination: false,
timeList: [
{ title: '长难句', time: '3h60min', ratio: 10, color: '#3C39CC' },
{ title: '综合推理IR', time: '3h60min', ratio: 10, color: '#9E9CFF' },
{ title: '语法SC', time: '3h60min', ratio: 10, color: '#4292F0' },
{ title: '作文AWA', time: '3h60min', ratio: 10, color: '#4374EC' },
{ title: '阅读RC', time: '3h60min', ratio: 10, color: '#6865FD' },
{ title: '模考', time: '3h60min', ratio: 10, color: '#8D65FD' },
{ title: '逻辑CR', time: '3h60min', ratio: 10, color: '#6BABF6' },
{ title: '自由组卷', time: '3h60min', ratio: 10, color: '#7BBEFF' },
{ title: '数学Quant', time: '3h60min', ratio: 10, color: '#6BABF6' },
],
logList: [
{
total: [
{ title: '练习和订正', width: 130 },
{ title: '60min', width: 90 },
{ title: '30题', width: 80 },
{ title: '超过了30%的用户' },
],
detail: [
{ title: '做题数', sc: '10', cr: '10', rc: '20' },
{ title: '平均正确率', sc: '86%', cr: '86%', rc: '86%' },
{ title: '平均用时', sc: '1min', cr: '1min20s', rc: '1min' },
],
},
{
total: [
{ title: '模考和订正', width: 130 },
{ title: '60min', width: 90 },
{ title: '30套卷', width: 80 },
{ title: '超过了30%的用户' },
],
detail: [
{ title: '做题数', sc: '10', cr: '10', rc: '20' },
{ title: '平均正确率', sc: '86%', cr: '86%', rc: '86%' },
{ title: '平均用时', sc: '1min', cr: '1min20s', rc: '1min' },
],
},
{
total: [
{ title: '课程学习', width: 130 },
{ title: '60min', width: 90 },
{ title: '30课', width: 80 },
{ title: '超过了30%的用户' },
],
detail: [
{ title: '做题数', sc: '10', cr: '10', rc: '20' },
{ title: '平均正确率', sc: '86%', cr: '86%', rc: '86%' },
{ title: '平均用时', sc: '1min', cr: '1min20s', rc: '1min' },
],
},
],
};
}
renderView() {
const { config } = this.props;
return (
);
}
renderTotal() {
return 1
;
}
renderLog() {
const { logList = [] } = this.state;
return (
学习记录
本周学习时间23Hour
同比上周15%
同比全站15%
{logList.map((log, index) => {
return
;
})}
);
}
renderTime() {
const { timeList = [] } = this.state;
return (
时间分配
自 2019-05-26 ,您已在千行学习23天,累计 32h 30min
{timeList.map(item => {
return (
);
})}
{timeList.map(item => {
return (
);
})}
);
}
renderInfo() {
const { showExamination } = this.state;
return (
VIP
2019-10-15到期
续费
this.setState({ showExamination: false })}
onCancel={() => this.setState({ showExamination: false })}
onClose={() => this.setState({ showExamination: false })}
/>
this.setState({ showPhone: false })}
onCancel={() => this.setState({ showPhone: false })}
/>
this.setState({ showEmail: false })}
onCancel={() => this.setState({ showEmail: false })}
/>
this.setState({ showEdit: false })}
onCancel={() => this.setState({ showEdit: false })}
/>
this.setState({ showReal: false })} />
this.setState({ showAvatar: false })}
onCancel={() => this.setState({ showAvatar: false })}
/>
this.setState({ showInvite: false })} />
this.setState({ showVip: false })} />
);
}
renderMessage() {
return (
老师回答了您的提问
2019-05-15 16:21:06
{}} />
老师回答了您的提问
2019-05-15 16:21:06
);
}
}