Luolei 6 yıl önce
ebeveyn
işleme
1a4ac78b17

+ 6 - 6
src/components/EmergencyProcedure/EmergencyModal/index.jsx

@@ -43,11 +43,11 @@ class EmergencyModal extends React.Component{
   }
   handleImgShow(flg){
     this.setState({imgShow:flg},()=>{
-      if(flg){
-        dragBox('dragModalWrap','dragModalTitle','add')
-      }else{
-        dragBox('dragModalWrap','dragModalTitle','del')
-      }
+      // if(flg){
+      //   dragBox('dragModalWrap','dragModalTitle','add')
+      // }else{
+      //   dragBox('dragModalWrap','dragModalTitle','del')
+      // }
     })
   }
   render(){
@@ -65,7 +65,7 @@ class EmergencyModal extends React.Component{
                 <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`}>
+                  <div id="dragModalTitle" className={styles.dragImgWrap}>
                   </div>
                 </div>
               </React.Fragment>:null

+ 7 - 3
src/components/EmergencyProcedure/EmergencyModal/index.less

@@ -88,14 +88,18 @@
     z-index: 500;
     width: 1000px;
     margin-left: -500px;
-    margin-top: -400px;
-    height: 800px;
+    // margin-top: -400px;
+    // height: 800px;
+    // top: 50%;
     left: 50%;
-    top: 50%;
+    top: 7%;
+    bottom: 7%;
     img{
       height: 100%;
+      width: 100%;
       float: left;
       top: 0;
+      position: relative;
     }
   }
   .dragImgWrap {

+ 0 - 1
src/components/EmergencyProcedure/index.less

@@ -31,7 +31,6 @@
       right: 10px;
       width: 22px;
       height: 40px;
-
       img {
         position: relative;
         top: 6px;