import React, { Component } from 'react'; import style from './index.less'; import up from '@common/images/slide-up.png'; import down from '@common/images/slide-down.png'; import chronicPic from "@common/images/chronic.png"; import className from 'classnames'; import $ from 'jquery'; import config from '@config/index'; class MRAnalyse extends Component { constructor(props) { super(props) this.state = { slideUp: false } this.$content = React.createRef(); this.slideToggle = this.slideToggle.bind(this); } slideToggle(){ const { slideUp } = this.state $(this.$content.current).slideToggle(config.slideTime); this.setState({ slideUp: !slideUp }) } getDetail() { const { MRAnalyseResult } = this.props // const result =[ // "诊断名称不标准(腹痛待查)", // "现病史缺少症状部位(腹痛)", // "现病史缺少症状缓解情况(腹痛)", // "现病史缺少症状加剧情况(腹痛)" // ] return MRAnalyseResult.map(item => (
{item}
)) } render() { const {slideUp} = this.state return