import React from 'react'; import './index.less'; import Page from '@src/containers/Page'; import { formatDate, formatSeconds } from '@src/services/Tools'; import Icon from '../../../components/Icon'; import { My } from '../../../stores/my'; export default class extends Page { init() { } initData() { My.getStudyTotal().then(total => { this.setState({ total }); }); My.getStudyWeek().then(week => { this.setState({ week }); }); } renderView() { const { total } = this.state; return (
自{formatDate(total.createTime, 'YYYY-MM-DD')},您已在千行学习{total.days}
累积$1$2') }} />
本周数据
学习时间
23Hour
同比上周
15%
同比全站
15%
); } }