|
@@ -36,17 +36,18 @@ class PushData extends Component{
|
|
|
|
|
|
render(){
|
|
|
const {hashNum } = this.state
|
|
|
- const {mrId,planCode,showPushData,togglePushData } = this.props
|
|
|
+ const {mrId,planCode,showPushData,togglePushData ,windowWidth,windowHeight} = this.props
|
|
|
+ console.log(windowWidth,windowHeight)
|
|
|
const url =`${pushPage2}?mrId=${mrId}&planCode=${planCode}&data=${hashNum}`;
|
|
|
return <div >
|
|
|
- {!showPushData&&<div className={style['slideButton']} onClick={this.showPushData}>
|
|
|
+ {!showPushData&&<div className={style['slideButton']} style={{right:(windowWidth-1000)/2+'px'}} onClick={this.showPushData}>
|
|
|
朗通智能提醒
|
|
|
- <img class={style['arrowIcon']} src={arrowIcon} alt=""/>
|
|
|
-
|
|
|
+ <img class={style['arrowIcon']} src={arrowIcon} alt=""/>
|
|
|
</div>}
|
|
|
- {showPushData&&<div id="dragModalWrap" className={style['pushWrapper']}>
|
|
|
- <div id="dragModalTitle" className={style['pushDataTitle']}>朗通智能提醒 <span className={style['pushDataHide']} onClick={this.hidePushData}>收起</span></div>
|
|
|
- <iframe id='embedPage' src={url} frameborder="0" width="400" height="560"></iframe>
|
|
|
+ {showPushData&&<div id="dragModalWrap" className={style['pushWrapper']} style={{right:(windowWidth-1000)/2+'px'}}>
|
|
|
+ {/* <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}>收起</span></div>
|
|
|
+ <iframe id='embedPage' src={url} frameborder="0" width="400" height="563"></iframe>
|
|
|
|
|
|
</div>}
|
|
|
</div>
|