|
@@ -9,6 +9,7 @@ import pic4 from '../img/pic4.png'
|
|
|
import pic5 from '../img/pic5.png'
|
|
|
import $ from 'jquery'
|
|
|
import { dragBox } from '@utils/drag';
|
|
|
+import close from '@common/images/icon_close.png';
|
|
|
|
|
|
class EmergencyModal extends React.Component{
|
|
|
constructor(props){
|
|
@@ -64,9 +65,11 @@ class EmergencyModal extends React.Component{
|
|
|
this.state.imgShow?<React.Fragment>
|
|
|
<div className={styles.imageModalWrap} onClick={()=>{this.handleImgShow(false)}}></div>
|
|
|
<div className={styles.imageModal} id="dragModalWrap">
|
|
|
- <img src={idx==1?pic1:idx==2?pic2:idx==3?pic3:idx==4?pic4:idx==5?pic5:null}/>
|
|
|
<div id="dragModalTitle" className={`${styles.dragImgWrap} drag-title`}>
|
|
|
+ {data.emergencyname}
|
|
|
</div>
|
|
|
+ <img className={styles.emergencyImg} src={idx==1?pic1:idx==2?pic2:idx==3?pic3:idx==4?pic4:idx==5?pic5:null}/>
|
|
|
+ <img className={styles.img} src={close} onClick={()=>{this.handleImgShow(false)}} />
|
|
|
</div>
|
|
|
</React.Fragment>:null
|
|
|
}
|