소스 검색

修改治疗方案和药品说明书弹窗可拖拽区域(2963)

zhangxc 5 년 전
부모
커밋
394d936f40

+ 2 - 1
src/components/PushItems/DetailsModal/index.jsx

@@ -67,7 +67,8 @@ class DetailsModal extends Component {
 
                 <div className={styles['details-wrapper']}>
                     <div className={styles['details-content-wrapper']} id="detailsContentWrap">
-                        <h1 id="detailsContentTitle" className={`${styles['details-content-name']} drag-title`} >{tipsDetails && showAllName ? showAllName : tipsDetails &&tipsDetails.name} <img className={styles['details-close']} onClick={this.hideTips} src={close} /></h1>
+                        <div id="detailsContentTitle" className={`${styles['details-drag-name']} drag-title`}></div>
+                        <h1  className={`${styles['details-content-name']}`} >{tipsDetails && showAllName ? showAllName : tipsDetails &&tipsDetails.name} <img className={styles['details-close']} onClick={this.hideTips} src={close} /></h1>
                         <div className={styles['details-content']} id= 'detailsContent' onScroll={this.handleScrollModal.bind(this, tipsDetails)}>
                             {tipsDetails && tipsDetails.details && tipsDetails.details.map((item, index) => {
                                 return (<div id={item.title} class={styles['details-content-box']}>

+ 6 - 0
src/components/PushItems/DetailsModal/index.less

@@ -11,6 +11,12 @@
         max-width: 100%;
     }
 }
+.details-drag-name {
+    position: absolute;
+    width: 100%;
+    height: 70px;
+    top: 0;
+}
 
 .details-content-wrapper {
     position: fixed;

+ 2 - 1
src/components/TreatDesc/DrugInfo/index.jsx

@@ -57,7 +57,8 @@ 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']}/>
-                <h1 onMouseDown={this.setDragBox} id="drugTitle" className={style['drug-title']}>{drugInfo.tagType == 8 ? drugInfo.title+'说明书' : drugInfo.tagType == 10 ? drugInfo.title+ '说明': ''}</h1>
+                <div id="drugTitle" className={`${style['details-drag-name']}`}></div>
+                <h1 onMouseDown={this.setDragBox}  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> */}
                     {drugInfo.drugDesc.map((item, index) =>{

+ 14 - 8
src/components/TreatDesc/DrugInfo/index.less

@@ -29,16 +29,11 @@
     overflow-y: auto;
     padding: 0 40px;
 }
-.drug-title {
+.details-drag-name {
     position: absolute;
-    top: 43px;
     width: 100%;
-    height: 37px;
-    line-height: 37px;
-    font-size: 28px;
-    font-weight: bold;
-    padding: 0 40px;
-    color: #1E1E1E;
+    height: 70px;
+    top: 0;
     cursor: move;
     moz-user-select: -moz-none;
     -moz-user-select: none;
@@ -48,6 +43,17 @@
     -ms-user-select:none;
     user-select:none;
 }
+.drug-title {
+    position: absolute;
+    top: 43px;
+    width: 100%;
+    height: 37px;
+    line-height: 37px;
+    font-size: 28px;
+    font-weight: bold;
+    padding: 0 40px;
+    color: #1E1E1E;
+}
 
 .close-drug-desc {
     .contentZIndex1;