| | |
| | | } else { |
| | | siteEl.html(sites[i].siteId); |
| | | } |
| | | if (i + 1 === 8) { |
| | | carAnimate(i + 1, Number(sites[i].nearbySta)); |
| | | |
| | | if (sites[i].siteId === '16' || sites[i].siteId === '016') { |
| | | carAnimate(Number(sites[i].siteId), Number(sites[i].nearbySta)); |
| | | } |
| | | } |
| | | } else if (res.code === 403) { |
| | |
| | | crns[i].bay = 1 |
| | | } |
| | | // crnEl.animate({left: (crns[i].bay * unit) + 'px'}, 1000); |
| | | crns[i].bay = 15; |
| | | // crns[i].bay = 15; |
| | | |
| | | var offSet = 0; |
| | | unit = 60; |
| | |
| | | // 小车偏移动画 |
| | | function carAnimate(id, target) { |
| | | var targetTop = 122; |
| | | if (id === 8) { |
| | | if (id === 16 || id === '16' || id === '016') { |
| | | switch (target) { |
| | | case 1: |
| | | targetTop += 160; |