import React from 'react'; import { Badge } from 'antd-mobile'; import './index.less'; import Page from '@src/containers/Page'; import Assets from '@src/components/Assets'; import { formatDate } from '@src/services/Tools'; import { My } from '../../../stores/my'; export default class extends Page { initData() { My.message(this.state.search) .then(result => { this.setTableData(result.list, result.total); }); } readAll() { My.readAllMessage() .then(() => { this.refresh(); }); } renderView() { const { list = [] } = this.state; return (