import React from 'react';
import { Link } from 'react-router-dom';
import './index.less';
import Page from '@src/containers/Page';
import Tabs from '../../../components/Tabs';
import Icon from '../../../components/Icon';
import Switch from '../../../components/Switch';
import AnswerList from '../../../components/AnswerList';
import AnswerButton from '../../../components/AnswerButton';
import OtherAnswer from '../../../components/OtherAnswer';
export default class extends Page {
constructor(props) {
super(props);
this.state = { hideAnalysis: true };
}
renderView() {
return (
No.36
OG18 - Easy (21-40)
ID:PREP 07-124
用时:1 m39 s
全站:1 m39 s
80 %
{this.renderBody()}
);
}
renderBody() {
const { question = { content: {} } } = this.state;
const { typeset = 'one' } = question.content;
const { hideAnalysis } = this.state;
const show = typeset === 'one' ? true : !hideAnalysis;
return (
{this.renderContent()}
{this.renderAnswer()}
{this.renderAnalysis()}
{typeset === 'two' && (
this.setState({ hideAnalysis: !hideAnalysis })}>
{show ? '查看解析>' : '收起解析>'}
)}
);
}
renderAnalysis() {
const { question = { content: {} } } = this.state;
const { typeset = 'one' } = question.content;
const { hideAnalysis } = this.state;
const show = typeset === 'one' ? true : !hideAnalysis;
return (
{this.renderText()}
);
}
renderText() {
return (
“Offering support services to spouses caring for their other halves may reduce martial stress and prevent
divorce at older ages,” she said. “But it’s also important to recognize that the pressure to divorce may be
health-related and that sick ex-wives may need additional care and services to prevent worsening health and
increased health costs.”
);
}
renderOtherAnswer() {
const { otherAnswer = [1, 2, 3, 4, 5] } = this.state;
return (
{otherAnswer.map(() => {
return ;
})}
);
}
renderAnswer() {
const { question = { content: {} } } = this.state;
const { typeset = 'one' } = question.content;
return {typeset === 'two' ? 显示答案 : ''}
;
}
renderContent() {
const { question = { content: {} } } = this.state;
const { typeset = 'one' } = question.content;
return (
{typeset === 'one' ?
显示答案 : ''}
);
}
renderAsk() {
return (
提问
我想对进行提问
有疑问的具体内容是:
针对以上内容的问题是:
);
}
renderAskOk() {
return (
提问
已提交成功!
感谢您的耐心反馈,我们会尽快核实并以站内信的方式告知结果。
您也可以关注公众号及时获取结果。
);
}
renderAskFail() {
return (
提问
提问功能正在维护中。
可先查阅“相关问答” 或 成为学员享受极速 答疑特权。
了解更多>
);
}
renderError() {
return (
纠错
我想对进行提问
有疑问的具体内容是:
针对以上内容的问题是:
);
}
renderErrorOk() {
return (
纠错
我想对进行提问
有疑问的具体内容是:
针对以上内容的问题是:
);
}
renderNote() {
const { note = ['题目', '官方解析'] } = this.state;
return (
笔记
{note.map(item => {
return (
);
})}
);
}
}