Commit d14515d4 by wujiabao

再次改造关门

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