import React, { Component } from 'react'; import style from './index.less'; import arrowIcon from '@images/arrowIcon.png'; import pushEmpty from '@images/pushEmpty.png'; import {pushPage2} from '@utils/config'; import {dragBox} from '@utils/drag'; class PushData extends Component{ constructor(props){ super(props); this.state = { hashNum:0 } this.showPushData = this.showPushData.bind(this) this.hidePushData = this.hidePushData.bind(this) } showPushData(){ const {togglePushData} = this.props setTimeout(function(){ dragBox('dragModalWrap','dragModalTitle','add') }) togglePushData() } hidePushData(){ const {togglePushData} = this.props dragBox('dragModalWrap','dragModalTitle','del') togglePushData() } componentWillReceiveProps(next){ // if(next.update!=this.props.update){ this.setState({ hashNum:Math.random() }); // } } render(){ const {hashNum } = this.state const {mrId,planCode,showPushData,togglePushData ,windowWidth,windowHeight} = this.props // console.log(windowWidth,windowHeight) const url =`${pushPage2}?mrId=${mrId}&planCode=${planCode}&data=${hashNum}`; return
等待内容输入中…