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 (