Commit af5d4ffc by yaxiLiuu

解决冲突

parents c1c9e40a a3801e6c
......@@ -5,17 +5,15 @@ import { connect } from 'react-redux';
import {getStoreInfo} from "../../actions/getStore";
import {getTroubleList} from "../../actions/getTroubles";
import {initGetOtherProblem,addNewProbem} from "../../actions/otherQuestion"
import {getRefreshImg} from "../../actions/refreshImg"
import PopupComponent from '../../components/CommonComponent/PopupComponent/PopupComponent'
import TroubleContainer from '../TroubleContainer/TroubleContainer'
import TextAreaContainer from '../TextAreaContainer/TextAreaContainer'
import ScanBarCodeContainer from '../ScanBarCodeContainer/ScanBarCodeContaienr'
import ReportDamagesListContainer from '../ReportDamagesListContainer/ReportDamagesListContainer'
import OtherQuestionContainer from '../OtherQuestionContainer/OtherQuestionContainer'
import HomeContainer from '../HomeContainer/HomeContainer'
import FinishAskContainer from '../FinishAskContainer/FinishAskContainer'
import ChooseTaskContainer from '../ChooseTaskContainer/ChooseTaskContainer'
import Qrcode from '../Qrcode/Qrcode'
require('./index.css')
......@@ -41,12 +39,8 @@ class PageContainer extends React.Component {
lastPage : '',
page : null,
popupInfo : defaultPopupInfo,
pageStyle : {
// 'backgroundColor' : '#ffffff'
},
lastPageStyle:{
},
pageStyle : {},
lastPageStyle:{},
};
this.getPages = this.getPages.bind(this);
this.showPopup = this.showPopup.bind(this);
......@@ -54,6 +48,12 @@ class PageContainer extends React.Component {
this.showQrCode = this.showQrCode.bind(this);
this.saveLastPage = this.saveLastPage.bind(this);
this.goBack = this.goBack.bind(this);
this.maxCountBackTime = 300;
this.count = 1000;
this.countbackTimer = null;
}
componentWillMount() {
let {dispatch} = this.props;
......@@ -73,6 +73,10 @@ class PageContainer extends React.Component {
componentWillUnmount(){
}
countBack(){
}
hidePopup(){
this.setState({
popupInfo : defaultPopupInfo
......@@ -131,11 +135,14 @@ class PageContainer extends React.Component {
case showPage[1]:
pages = <TroubleContainer
troubleList={state.troubleList}
refreshImg = {state.refreshImg}
storeInfo={state.storeInfo}
userInfo={state.userInfo}
initTroubleList={()=>dispatch(getTroubleList())}
showTextArea={(text)=>this.showTextArea(text)}
showPopup={(info)=>this.showPopup(info)}
hidePopup={()=>this.hidePopup()}
getRefreshImg={(errorId,type)=>dispatch(getRefreshImg(errorId,type))}
/>;
break;
case showPage[2]:
......@@ -151,9 +158,6 @@ class PageContainer extends React.Component {
state = {state}
/>;
break;
case showPage[6]:
pages = <Qrcode />;
break;
case showPage[7]:
pages = <HomeContainer />;
break;
......@@ -167,10 +171,14 @@ class PageContainer extends React.Component {
return pages;
}
handleTouch(){
}
render() {
let {state} = this.props;
return (
<div className={"pageContainer "} style={this.state.pageStyle}>
<div className={"pageContainer "} style={this.state.pageStyle} onTouch="">
<PopupComponent popupInfo={this.state.popupInfo} />
{this.getPages()}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment