diff --git a/src/jlmap3d/jl3ddrive/moveupdate/DrivingConnectNew.js b/src/jlmap3d/jl3ddrive/moveupdate/DrivingConnectNew.js index d5116bccd..c74e4166e 100644 --- a/src/jlmap3d/jl3ddrive/moveupdate/DrivingConnectNew.js +++ b/src/jlmap3d/jl3ddrive/moveupdate/DrivingConnectNew.js @@ -995,29 +995,29 @@ export function Jl3dDrivingNew(mixers,updatemmi,sound,translation,routegroup,dri function signalupdate(data) { code = data.code; if(data.red == 1){ - signallist.list[code].mesh.getObjectByName("red").material.map = materials[0]; + signallist.list[code].mesh.getObjectByName("red").material.map = materials["red"]; signallist.list[code].mesh.getObjectByName("red").material.map.needsUpdate = true; }else{ - signallist.list[code].mesh.getObjectByName("red").material.map = materials[3]; + signallist.list[code].mesh.getObjectByName("red").material.map = materials["black"]; signallist.list[code].mesh.getObjectByName("red").material.map.needsUpdate = true; } if(data.yellow == 1){ - signallist.list[code].mesh.getObjectByName("yellow").material.map = materials[1]; + signallist.list[code].mesh.getObjectByName("yellow").material.map = materials["yellow"]; signallist.list[code].mesh.getObjectByName("yellow").material.map.needsUpdate = true; }else{ - signallist.list[code].mesh.getObjectByName("yellow").material.map = materials[3]; + signallist.list[code].mesh.getObjectByName("yellow").material.map = materials["black"]; signallist.list[code].mesh.getObjectByName("yellow").material.map.needsUpdate = true; } if(data.green == 1){ - signallist.list[code].mesh.getObjectByName("green").material.map = materials[2]; + signallist.list[code].mesh.getObjectByName("green").material.map = materials["green"]; signallist.list[code].mesh.getObjectByName("green").material.map.needsUpdate = true; }else{ - signallist.list[code].mesh.getObjectByName("green").material.map = materials[3]; + signallist.list[code].mesh.getObjectByName("green").material.map = materials["black"]; signallist.list[code].mesh.getObjectByName("green").material.map.needsUpdate = true; } diff --git a/src/jlmap3d/jl3dsimulation/connect/Jlmap3dSubscribeNew.js b/src/jlmap3d/jl3dsimulation/connect/Jlmap3dSubscribeNew.js index 4f0bbb622..3f5b1d6f3 100644 --- a/src/jlmap3d/jl3dsimulation/connect/Jlmap3dSubscribeNew.js +++ b/src/jlmap3d/jl3dsimulation/connect/Jlmap3dSubscribeNew.js @@ -798,29 +798,29 @@ export function Jlmap3dSubscribeNew(jlmap3d,routegroup,jsonwebwork) { code = data.code; if(signallist.list[code]){ if(data.red == 1){ - signallist.list[code].mesh.getObjectByName("red").material.map = materials[0]; + signallist.list[code].mesh.getObjectByName("red").material.map = materials["red"]; signallist.list[code].mesh.getObjectByName("red").material.map.needsUpdate = true; }else{ - signallist.list[code].mesh.getObjectByName("red").material.map = materials[3]; + signallist.list[code].mesh.getObjectByName("red").material.map = materials["black"]; signallist.list[code].mesh.getObjectByName("red").material.map.needsUpdate = true; } if(data.yellow == 1){ - signallist.list[code].mesh.getObjectByName("yellow").material.map = materials[1]; + signallist.list[code].mesh.getObjectByName("yellow").material.map = materials["yellow"]; signallist.list[code].mesh.getObjectByName("yellow").material.map.needsUpdate = true; }else{ - signallist.list[code].mesh.getObjectByName("yellow").material.map = materials[3]; + signallist.list[code].mesh.getObjectByName("yellow").material.map = materials["black"]; signallist.list[code].mesh.getObjectByName("yellow").material.map.needsUpdate = true; } if(data.green == 1){ - signallist.list[code].mesh.getObjectByName("green").material.map = materials[2]; + signallist.list[code].mesh.getObjectByName("green").material.map = materials["green"]; signallist.list[code].mesh.getObjectByName("green").material.map.needsUpdate = true; }else{ - signallist.list[code].mesh.getObjectByName("green").material.map = materials[3]; + signallist.list[code].mesh.getObjectByName("green").material.map = materials["black"]; signallist.list[code].mesh.getObjectByName("green").material.map.needsUpdate = true; } diff --git a/src/jlmap3d/main/loaders/Materialload.js b/src/jlmap3d/main/loaders/Materialload.js index 9f41014e1..21eccc0db 100644 --- a/src/jlmap3d/main/loaders/Materialload.js +++ b/src/jlmap3d/main/loaders/Materialload.js @@ -33,7 +33,7 @@ function settexture(materiallist,name,textureurl){ // onLoad回调 function ( texture ) { texture.name = name; - materiallist.push(texture); + materiallist[name] = texture; }, // 目前暂不支持onProgress的回调 diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js index 8b75cd8e6..bc303bcc8 100644 --- a/src/utils/baseUrl.js +++ b/src/utils/baseUrl.js @@ -2,11 +2,11 @@ export function getBaseUrl() { let BASE_API; if (process.env.NODE_ENV === 'development') { // BASE_API = 'https://joylink.club/jlcloud'; - // BASE_API = 'https://test.joylink.club/jlcloud'; + BASE_API = 'https://test.joylink.club/jlcloud'; // BASE_API = 'http://192.168.8.107:9000'; // 袁琪 // BASE_API = 'http://192.168.2.175:9000'; // 旭强 有线 // BASE_API = 'http://192.168.8.114:9000'; // 旭强 无线 - BASE_API = 'http://192.168.2.183:9000'; // 张赛 + // BASE_API = 'http://192.168.2.183:9000'; // 张赛 // BASE_API = 'http://192.168.8.140:9000'; // 杜康 // BASE_API = 'http://b29z135112.zicp.vip'; // BASE_API = 'http://2925963m2a.zicp.vip'; // 杜康 diff --git a/src/views/jlmap3d/drive/drivecontrol/centerpane.vue b/src/views/jlmap3d/drive/drivecontrol/centerpane.vue index 6e465e7da..2ac2b97a1 100644 --- a/src/views/jlmap3d/drive/drivecontrol/centerpane.vue +++ b/src/views/jlmap3d/drive/drivecontrol/centerpane.vue @@ -320,8 +320,8 @@ if(mx46){ if(angle<63 && angle>46){ if(this.touchstate != "Drive"){ @@ -330,7 +330,7 @@ gear:"Drive" }; trainSimulationGear(this.group,data).then(netdata => { - console.log(netdata); + // console.log(netdata); if(netdata.code == "200"){ this.toutransform = "rotate(140deg)"; this.touchstate = "Drive"; diff --git a/src/views/jlmap3d/drive/drivecontrol/drivecontrol.vue b/src/views/jlmap3d/drive/drivecontrol/drivecontrol.vue index 97b21c6ba..87d406f07 100644 --- a/src/views/jlmap3d/drive/drivecontrol/drivecontrol.vue +++ b/src/views/jlmap3d/drive/drivecontrol/drivecontrol.vue @@ -141,7 +141,7 @@ import axios from 'axios'; methods: { changeTrainSelect(mode){ if(mode == "isTraining"){ - this.isTraining = false; + // this.isTraining = false; } }, currentsel(selVal){ diff --git a/src/views/jlmap3d/drive/sceneview/mmiview.vue b/src/views/jlmap3d/drive/sceneview/mmiview.vue index 521a5ac75..af27b5c74 100644 --- a/src/views/jlmap3d/drive/sceneview/mmiview.vue +++ b/src/views/jlmap3d/drive/sceneview/mmiview.vue @@ -215,7 +215,6 @@ export default { }, updatetrainstatus(newdata){ - console.log(newdata); if(typeof(newdata.eb) != "undefined"){ this.updateEbStatus(newdata.eb); @@ -344,7 +343,7 @@ export default { }, updateM4(newdata){ - console.log(newdata ); + if(newdata.parking != undefined){ if(newdata.parking == true){ this.m4image = this.images.m4['in']; @@ -361,7 +360,7 @@ export default { } }, updateTiaoting(newdata){ - console.log(newdata); + if(newdata.jump != undefined){ if(newdata.jump == true){ this.tiaotingimage = this.images.n['tiaoting']; @@ -550,7 +549,6 @@ export default { } }, updatemmic1(tow){ - console.log("tow:"+tow); if(tow == "1"){ this.c1image = this.images.c1["qianyin"]; }