import React from 'react'; import './index.less'; import Page from '@src/containers/Page'; import { formatDate } from '@src/services/Tools'; import UserAction from '../../../components/UserAction'; import UserPagination from '../../../components/UserPagination'; import Tabs from '../../../components/Tabs'; import { OpenText } from '../../../components/Open'; import { Button } from '../../../components/Button'; export default class extends Page { constructor(props) { props.size = 10; super(props); } initState() { return { filterMap: {}, list: [], tab: '1', }; } onTabChange(tab) { const data = { tab }; this.refreshQuery(data); } onFilter(value) { this.search(value, false); this.initData(); } onSearch(value) { this.search({ keyword: value }, false); this.initData(); } onAction() {} delAsk(id) { console.log(id); } renderView() { const { tab, questionSubjectSelect, questionSubjectMap = {}, oneSelect, twoSelectMap = {}, filterMap = {}, list = [], } = this.state; const { total, page } = this.state; return (
千行课堂 > 全部课程 > OG20综合刷题 > 课时3 > 全部问答
返回课程
OG20综合刷题——第3课时:XXXXXXX
this.onTabChange(key)} /> this.onFilter(value)} onSearch={value => this.onSearch(value)} /> {list.map(item => { return (
课时1 01:00~05:00
课程内容: 单词 avoid 的使用场景应该出现在这些地方
{item.answerStatus === 0 && (
)}
提问
{formatDate(item.createTime, 'YYYY-MM-DD HH:mm:ss')}
{item.content}
{item.answerStatus > 0 && (
回答
{formatDate(item.answerTime, 'YYYY-MM-DD HH:mm:ss')}
)} {item.answerStatus > 0 && (
{item.answer}
)}
); })} {total > 0 && list.length > 0 && ( this.onChangePage(p)} /> )}
); } }