| | |
| | | siteEl.html(sites[i].siteId); |
| | | } |
| | | |
| | | if (sites[i].siteId === '1' || sites[i].siteId === '2') { |
| | | if (sites[i].siteId === '1' || sites[i].siteId === '2' || sites[i].siteId === '3') { |
| | | |
| | | carAnimate(Number(sites[i].siteId), Number(sites[i].nearbySta)); |
| | | } |
| | |
| | | if (res.code === 200) { |
| | | var barcodes = res.data; |
| | | for (var i = 0; i < barcodes.length; i++) { |
| | | $("#code-decoder-data-" + barcodes[i].barcodeId).html(barcodes[i].codeValue); |
| | | $("#barcode-"+barcodes[i].barcodeId).html(barcodes[i].codeValue ? barcodes[i].codeValue : "--"); |
| | | } |
| | | } else if (res.code === 403) { |
| | | parent.location.href = baseUrl + "/login"; |
| | |
| | | function carAnimate(id, target) { |
| | | // debugger |
| | | var targetTop = 0; |
| | | if (id === 1 || id === '1' || id === '2' || id === 2) { |
| | | if (id === 1 || id === '1' || id === '2' || id === 2 || id === '3' || id === 3) { |
| | | switch (target) { |
| | | case 1: |
| | | targetTop += 792; |