|
@@ -12,8 +12,9 @@ class DrugInfo extends Component {
|
|
|
return (<div className={style['drug-info-wrapper']}>
|
|
|
<h3 className={style['drug-title']}>{drugInfo.title}说明书 <img src={close} onClick={hideDrugInfo} className={style['close-drug-desc']}/> </h3>
|
|
|
{ drugInfo && drugInfo.drugDesc.length > 0 && <div className={style['drug-desc-wrapper']}>
|
|
|
+ <div className={style['drug-title1']}>{drugInfo.title}说明书</div>
|
|
|
{drugInfo.drugDesc.map((item, index) =>{
|
|
|
- return <div className={style['drug-desc-item']}>{item.title}: <span dangerouslySetInnerHTML ={{__html: item.content}}></span> </div>
|
|
|
+ return <div className={style['drug-desc-item']}><span className={style['drug-desc-title']}>{item.title}</span> <span className={style['drug-desc-content']} dangerouslySetInnerHTML ={{__html: item.content}}></span> </div>
|
|
|
})}
|
|
|
</div> }
|
|
|
|