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
用时:1m39s 全站:1m39s 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 (
提问
我想对进行提问
有疑问的具体内容是: