|
@@ -53,11 +53,12 @@ class DrugInfo extends Component {
|
|
|
render() {
|
|
|
const { drugInfo, hideDrugInfo, drugInfoList,hideDrugInfoMore } = this.props
|
|
|
const { currentIndex } = this.state
|
|
|
+ {console.log('drugInfodrugInfo', drugInfo)}
|
|
|
return (<div className={style['drug-info-wrapper']} id="drugWrapper">
|
|
|
<img src={close} onClick={hideDrugInfo} className={style['close-drug-desc']}/>
|
|
|
- <h3 onMouseDown={this.setDragBox} id="drugTitle" className={style['drug-title']}>{drugInfo.title}说明书 </h3>
|
|
|
+ <h3 onMouseDown={this.setDragBox} id="drugTitle" className={style['drug-title']}>{drugInfo.tagType == 8 ? drugInfo.title+'说明书' : drugInfo.tagType == 10 ? drugInfo.title+ '说明': ''}</h3>
|
|
|
{ drugInfo && drugInfo.drugDesc.length > 0 && <div className={style['drug-desc-wrapper']} id='drugDesc' onScroll={this.handleScrollModal.bind(this, drugInfo.drugDesc)}>
|
|
|
- <div className={style['drug-title1']} >{drugInfo.title}说明书</div>
|
|
|
+ <div className={style['drug-title1']} >{drugInfo.tagType == 8 ? drugInfo.title+'说明书' : drugInfo.tagType == 10 ? drugInfo.title+ '说明': ''}</div>
|
|
|
{drugInfo.drugDesc.map((item, index) =>{
|
|
|
return <div className={style['drug-desc-item']} id={item.title.trim()}>
|
|
|
<div className={style['drug-desc-title']} >{item.title.trim()}</div>
|
|
@@ -83,7 +84,7 @@ class DrugInfo extends Component {
|
|
|
</div> }
|
|
|
{ !drugInfo || (drugInfo && drugInfo.drugDesc.length === 0) && <div className={style['drug-desc-wrapper']}>
|
|
|
<div>
|
|
|
- 该药品暂无说明
|
|
|
+ {drugInfo.tagType == 8 ? '该药品暂无说明' : drugInfo.tagType == 10 ?'该不良反应暂无说明': ''}
|
|
|
</div>
|
|
|
</div> }
|
|
|
</div>)
|