|
@@ -1,6 +1,7 @@
|
|
|
import React, { Component } from 'react';
|
|
|
import style from './index.less';
|
|
|
import close from './../img/close.png';
|
|
|
+import imgCurrent from '@common/images/icon-current.png';
|
|
|
import $ from "jquery";
|
|
|
import {dragBoxs} from '@utils/drag'
|
|
|
import { imageUrlPrefix } from '@utils/config.js';
|
|
@@ -56,28 +57,38 @@ class DrugInfo extends Component {
|
|
|
const { currentIndex } = this.state
|
|
|
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.tagType == 8 ? drugInfo.title+'说明书' : drugInfo.tagType == 10 ? drugInfo.title+ '说明': ''}</h3>
|
|
|
+ <h1 onMouseDown={this.setDragBox} id="drugTitle" className={style['drug-title']}>{drugInfo.tagType == 8 ? drugInfo.title+'说明书' : drugInfo.tagType == 10 ? drugInfo.title+ '说明': ''}</h1>
|
|
|
{ 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.tagType == 8 ? drugInfo.title+'说明书' : drugInfo.tagType == 10 ? 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>
|
|
|
+ <div className={style['details-content-title-box']} >
|
|
|
+ <span className={style['details-content-title-name']}>{item.title}</span>
|
|
|
+ <div className={style['details-content-title-circle-box']}><span className={style['details-content-title-circle']}></span></div>
|
|
|
+ </div>
|
|
|
<pre className={style['drug-desc-content']} dangerouslySetInnerHTML ={{__html: item.content.replace(/{imageUrlPrefix}/g, imageUrlPrefix)}}></pre>
|
|
|
</div>
|
|
|
})}
|
|
|
<div className={style['content-menu-box']}>
|
|
|
<div className={style['content-menu-wrapper']}>
|
|
|
<div className={style['content-menu']}>
|
|
|
- {drugInfo.drugDesc.map((item, index) => {
|
|
|
- return (<div >
|
|
|
- <div className={style['details-menu-title-box']}>
|
|
|
- {index === 0 ? '' : <div className={style['details-content-menu-line']}></div>}
|
|
|
- <span onClick={this.handleClickMenu.bind(this, index, item, drugInfo.drugDesc)} className={style['details-content-menu-name']} style = {index === currentIndex ? {color:'#0089be'} : ''}>
|
|
|
- <span className={style['details-content-menu-circle']} style = {index === currentIndex ? {background:'#0089be'} : ''}></span>{item.title}
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- </div>)
|
|
|
- })}
|
|
|
+ <div className={style['content-menu-border']}>
|
|
|
+ {drugInfo.drugDesc.map((item, index) => {
|
|
|
+ return (<div class={style['details-menu-title-wrapper']}>
|
|
|
+ <div className={style['details-menu-title-box']}>
|
|
|
+ {index === 0 ? '' : <div className={style['details-content-menu-line']}></div>}
|
|
|
+ <span onClick={this.handleClickMenu.bind(this, index, item, drugInfo.drugDesc)} className={style['details-content-menu-name']} style = {index === currentIndex ? {color:'#0089be'} : ''}>
|
|
|
+ <div className={style['details-content-menu-circle-box']}>
|
|
|
+ {index !== currentIndex&&<span className={style['details-content-menu-circle']} ></span>}
|
|
|
+ {index === currentIndex&&<img className={style['details-content-menu-img']} src ={imgCurrent}/>}
|
|
|
+ </div>
|
|
|
+ {item.title}
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ </div>)
|
|
|
+ })}
|
|
|
+ </div>
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|