|
@@ -3,6 +3,7 @@ import style from './index.less';
|
|
|
import arrowIcon from '@images/arrowIcon.png';
|
|
|
import pushEmpty from '@images/pushEmpty.png';
|
|
|
import {pushPage2} from '@utils/config';
|
|
|
+import {getUrlArgObject} from '@utils/tools';
|
|
|
import {dragBox} from '@utils/drag';
|
|
|
import hideConfirm from '@images/hideConfirm.png';
|
|
|
|
|
@@ -36,19 +37,19 @@ class PushData extends Component{
|
|
|
}
|
|
|
|
|
|
render(){
|
|
|
- const {hashNum } = this.state
|
|
|
- const {mrId,isTcm,planCode,showPushData,togglePushData ,windowWidth,windowHeight,hospitalId} = this.props
|
|
|
+ const hideLg = getUrlArgObject("hideLg");
|
|
|
+ const {mrId,isTcm,planCode,showPushData ,windowWidth,hospitalId} = this.props
|
|
|
const pushBoxPos = windowWidth>1200?(windowWidth-1200)/2:0;
|
|
|
- const url =`${pushPage2}?mrId=${mrId.indexOf("reStart") > - 1?"":mrId}&isTcm=${isTcm}&planCode=${planCode}&hospitalId=${hospitalId}${mrId.indexOf("reStart") > - 1 ? '&reStart='+Math.random():""}`;
|
|
|
+ const url =`${pushPage2}?mrId=${mrId.indexOf("reStart") > - 1?"":mrId}&isTcm=${isTcm}&planCode=${planCode}&hospitalId=${hospitalId}${mrId.indexOf("reStart") > - 1 ? '&reStart='+Math.random():""}`+(hideLg?`&hideLg=1`:``);
|
|
|
return <div >
|
|
|
{!showPushData&&<div className={style['slideButton']} style={{right:pushBoxPos+'px'}} onClick={this.showPushData}>
|
|
|
- 朗通智能提醒
|
|
|
+ {hideLg?'智能提醒':'朗通智能提醒'}
|
|
|
<img class={style['arrowIcon']} src={arrowIcon} alt=""/>
|
|
|
</div>}
|
|
|
{showPushData&&<div id="dragModalWrap" className={style['pushWrapper']} style={{right:pushBoxPos+'px'}} onWheel={this.handleScroll.bind(this)}>
|
|
|
{/* <div id="dragModalTitle" className={style['pushDataTitle']}>朗通智能提醒 <span className={style['pushDataHide']} onClick={this.hidePushData}>收起</span></div> */}
|
|
|
- <div className={style['pushDataTitle']}>朗通智能提醒 <span className={style['pushDataHide']} onClick={this.hidePushData}> <img class={style['hideConfirm']} src={hideConfirm} alt=""/></span></div>
|
|
|
- {hospitalId&&<iframe id='embedPage' src={url} frameborder="0" width="348" height="507" onWheel={this.handleScroll.bind(this)}></iframe>}
|
|
|
+ <div className={style['pushDataTitle']}>{hideLg?'智能提醒':'朗通智能提醒'} <span className={style['pushDataHide']} onClick={this.hidePushData}> <img class={style['hideConfirm']} src={hideConfirm} alt=""/></span></div>
|
|
|
+ {hospitalId&&<iframe id='embedPage' src={url} frameborder="0" width="400" height="557" onWheel={this.handleScroll.bind(this)}></iframe>}
|
|
|
{!hospitalId&&<div className={style['pushEmpty']}>
|
|
|
<div className={style['pushEmptyBox']}>
|
|
|
<img className={style['pushEmptyImg']} src={pushEmpty} alt=""/>
|