Commit 0c4b642f authored by xcc's avatar xcc

页面整合一起

parent 68dd4d12
...@@ -177,6 +177,9 @@ ...@@ -177,6 +177,9 @@
const _data=JSON.parse( (event.data||"{}") ) const _data=JSON.parse( (event.data||"{}") )
console.log(_data); console.log(_data);
closeMessage(); closeMessage();
if(_data.type==='conStatusChange'){
updateStatus(_data.newStatus);
}
if(_data.type=='info'){ if(_data.type=='info'){
if(_data.message.firstCarInfo){ if(_data.message.firstCarInfo){
$("#firstCarInfo-no").text(_data.message.firstCarInfo.carNo); $("#firstCarInfo-no").text(_data.message.firstCarInfo.carNo);
...@@ -308,9 +311,7 @@ ...@@ -308,9 +311,7 @@
showMessage(); showMessage();
} }
} }
if(_data.type==='conStatusChange'){
updateStatus(_data.newStatus);
}
}, false); }, false);
// 初始时关闭提示 // 初始时关闭提示
......
...@@ -329,6 +329,9 @@ $(document).ready(function () { ...@@ -329,6 +329,9 @@ $(document).ready(function () {
window.addEventListener('message', function(event={}) { window.addEventListener('message', function(event={}) {
const _data=JSON.parse( (event.data||"{}") ) const _data=JSON.parse( (event.data||"{}") )
console.log(_data); console.log(_data);
if(_data.type==='conStatusChange'){
updateStatus(_data.newStatus);
}
if(_data.type==='carTypeList'){ if(_data.type==='carTypeList'){
var snMapList=_data.data; var snMapList=_data.data;
if(snMapList.length>0){ if(snMapList.length>0){
...@@ -357,9 +360,7 @@ $(document).ready(function () { ...@@ -357,9 +360,7 @@ $(document).ready(function () {
$("#equipmentStatus").addClass("text-124"); $("#equipmentStatus").addClass("text-124");
} }
} }
if(_data.type==='conStatusChange'){
updateStatus(_data.newStatus);
}
}, false); }, false);
// 初始时关闭提示 // 初始时关闭提示
......
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