This commit is contained in:
joylink_cuiweidong 2020-11-16 10:08:58 +08:00
commit a4af480ab8
3 changed files with 9 additions and 5 deletions

View File

@ -31,7 +31,7 @@ export function PassflowConnect(deviceaction,toptrain,downtrain,routegroup,passe
function callback(Response) {
const data = JSON.parse(Response.body);
// console.log(data);
/** 站台客流当前人数信息 */
if(data.type == "STAND_PFI"){

View File

@ -31,6 +31,10 @@ export function TrainConnect(trafficTrain,deviceaction,toptrain,routegroup,passe
const data = JSON.parse(Response.body);
if(data.type != "TrainRun_3D"){
console.log(data);
}
if(data.type == "BeAbout2Arrive_3D"){
if(toptrain.nowcode == data.body.groupNumber){
console.log(data);

View File

@ -339,14 +339,14 @@ export function Jl3dTrafficTrain(dom,skinCode,routegroup,viewMap) {
// console.log(scope.trainList[i]);
for(let an=passerTrain.toptrain.action.top.length-1;an>=0;an--){
passerTrain.toptrain.action.top[an].reset();
passerTrain.toptrain.action.top[an].time = passerTrain.toptrain.action.top[an]._clip.duration;
passerTrain.toptrain.action.top[an].time = 0;
passerTrain.toptrain.action.top[an].timeScale = -1;
passerTrain.toptrain.action.top[an].play();
}
for(let an=passerTrain.toptrain.action.top.length-1;an>=0;an--){
passerTrain.toptrain.action.down[an].reset();
passerTrain.toptrain.action.down[an].time = passerTrain.toptrain.action.top[an]._clip.duration;
passerTrain.toptrain.action.down[an].time = 0;
passerTrain.toptrain.action.down[an].timeScale = -1;
passerTrain.toptrain.action.down[an].play();
}
@ -355,14 +355,14 @@ export function Jl3dTrafficTrain(dom,skinCode,routegroup,viewMap) {
if(scope.trainList[i].doorCode == "1"){
for(let an=passerTrain.toptrain.action.top.length-1;an>=0;an--){
passerTrain.toptrain.action.top[an].reset();
passerTrain.toptrain.action.top[an].time = 0;
passerTrain.toptrain.action.top[an].time = passerTrain.toptrain.action.top[an]._clip.duration;
passerTrain.toptrain.action.top[an].timeScale = 1;
passerTrain.toptrain.action.top[an].play();
}
}else{
for(let an=passerTrain.toptrain.action.top.length-1;an>=0;an--){
passerTrain.toptrain.action.down[an].reset();
passerTrain.toptrain.action.down[an].time = 0;
passerTrain.toptrain.action.down[an].time = passerTrain.toptrain.action.top[an]._clip.duration;
passerTrain.toptrain.action.down[an].timeScale = 1;
passerTrain.toptrain.action.down[an].play();
}