Commit 0db76cbc by wujiabao

开发平板四期

parent c305a0a7
import React from 'react';
import Button from '../../CommonComponent/ButtonComponent/ButtonComponent'
import PropTypes from "prop-types";
class DefaultComponent extends React.Component{
constructor(props){
super(props)
......@@ -14,12 +15,19 @@ class DefaultComponent extends React.Component{
style={{marginTop:UTILPATH.getRemByPx(150),marginLeft:'50%',transform:'translate(-50%)'}}
option={this.skipInputCode.bind(this)}
/>
<Button
text={'没有'}
btnContainer={'col333 font30 bordere5e5e5'}
style={{marginTop:UTILPATH.getRemByPx(30),marginLeft:'50%',transform:'translate(-50%)'}}
option={this.props.pullTaskList}
/>
{
this.props.menuType===''?<Button
text={'没有'}
btnContainer={'col333 font30 bordere5e5e5'}
style={{marginTop:UTILPATH.getRemByPx(30),marginLeft:'50%',transform:'translate(-50%)'}}
option={this.props.pullTaskList}
/>:<Button
text={'没有'}
btnContainer={'col333 font30 bordere5e5e5'}
style={{marginTop:UTILPATH.getRemByPx(30),marginLeft:'50%',transform:'translate(-50%)'}}
option={this.context.goBackTask}
/>
}
</div>
)
}
......@@ -30,4 +38,7 @@ class DefaultComponent extends React.Component{
this.props.changeSanCodePage('SanCode')
}
}
DefaultComponent.contextTypes = {
goBackTask: PropTypes.func
};
export default DefaultComponent;
\ No newline at end of file
......@@ -115,6 +115,7 @@ class BreakageContainer extends React.Component {
switch(showPage){
case 1 :
pages=<DefaultComponent pullTaskList={props.pullTaskList}
menuType={props.menuType}
changeCodePage={this.changeCodePage.bind(this)}
changeSanCodePage={this.changeSanCodePage.bind(this)}
/>
......
......@@ -248,8 +248,6 @@ class PageContainer extends React.Component {
this.changePages(CONFIG.showPage[9]);
break;
}
}else{
this.changePages(CONFIG.showPage[13]);
}
}
......@@ -566,6 +564,8 @@ class PageContainer extends React.Component {
this.changePages(CONFIG.showPage[9]);
break;
}
}else{
this.changePages(CONFIG.showPage[13]);
}
}
......
......@@ -29,7 +29,7 @@ function renderPage(store) {
let store = activateVendor();
// UTILPATH.socket.init(129,17);
UTILPATH.socket.testIp(202);
UTILPATH.socket.testIp(14);
// UTILPATH.socket.getIp();
renderPage(store);
\ No newline at end of file
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