|
@@ -62,7 +62,7 @@ class TreatDesc extends Component {
|
|
|
}
|
|
|
|
|
|
render(){
|
|
|
- const { treatment, treatDesc, setDrugInfo, showDrugInfo} = this.props
|
|
|
+ const { treatment, treatDesc, setDrugInfo} = this.props
|
|
|
const { title, basic, otherDrugIndex, drugDesc} = treatDesc
|
|
|
const { currentIndex, hasEnterImg } = this.state
|
|
|
return (treatment && treatment.length >0 && <div className={style['treat-desc-box']}>
|
|
@@ -97,7 +97,7 @@ class TreatDesc extends Component {
|
|
|
src={currentIndex === index ? (hasEnterImg ? info3 : info2) : info2}
|
|
|
onMouseEnter={this.handleMouseEnterImg.bind(this, index)}
|
|
|
onMouseLeave = {this.handleMouseLeaveImg}
|
|
|
- onClick={() =>{setDrugInfo({name: item.medicitionName, type: 8, position: 5});showDrugInfo();}}
|
|
|
+ onClick={() =>{setDrugInfo({name: item.medicitionName, type: 8, position: 5})}}
|
|
|
/>}
|
|
|
</span>
|
|
|
|