Commit 0c4b642f authored by xcc's avatar xcc

页面整合一起

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