Commit d14515d4 by wujiabao

再次改造关门

parent 15b0a1b9
......@@ -212,10 +212,10 @@ class PageContainer extends React.Component {
});
break;
case 'SUCCESS_CLOSEDOOR':
if(isSend){
if(area==="A"){
if(data.info.left_tread===1){
//关门成功
if(isSend){
console.log("closedoor");
dispatch(logout());
// this.endCountBack();
......@@ -229,14 +229,12 @@ class PageContainer extends React.Component {
successCloseDoor : true,
isSend:false
});
}
}else{
sendMsg(JSON.stringify({type:'WILL_CLOSEDOOR'}))
}
}else if(area==="B"){
if(data.info.right_tread===1){
//关门成功
if(isSend){
console.log("closedoor");
dispatch(logout());
// this.endCountBack();
......@@ -250,11 +248,11 @@ class PageContainer extends React.Component {
successCloseDoor : true,
isSend:false
});
}
}else{
sendMsg(JSON.stringify({type:'WILL_CLOSEDOOR'}))
}
}
}
break;
}
......
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