修改三维客流车门动画重置

This commit is contained in:
sunzhenyu 2020-11-16 10:07:33 +08:00
parent ea4ce90b19
commit 4f9a8dd379
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();
}