| | |
| | | <!-- 货架 --> |
| | | <div class="stock-group"> |
| | | <div id="site-2" class="site" style="">2</div> |
| | | <button class="item">1</button> |
| | | <button class="item">2</button> |
| | | <button class="item">3</button> |
| | | <button class="item">4</button> |
| | |
| | | <!-- 货架 --> |
| | | <div class="stock-group"> |
| | | <div id="site-4" class="site" style="">4</div> |
| | | <button class="item">1</button> |
| | | <button class="item">2</button> |
| | | <button class="item">3</button> |
| | | <button class="item">4</button> |
| | |
| | | <!-- 货架 --> |
| | | <div class="stock-group"> |
| | | <div id="site-6" class="site" style="">6</div> |
| | | <button class="item">1</button> |
| | | <button class="item">2</button> |
| | | <button class="item">3</button> |
| | | <button class="item">4</button> |
| | |
| | | <!-- 货架 --> |
| | | <div class="stock-group"> |
| | | <div id="site-8" class="site" style="">8</div> |
| | | <button class="item">1</button> |
| | | <button class="item">2</button> |
| | | <button class="item">3</button> |
| | | <button class="item">4</button> |
| | |
| | | var crnEl = $("#crn-"+crns[i].crnId); |
| | | crnEl.attr("class", "machine " + crns[i].crnStatus); |
| | | // crnAnimate(crns[i].crnId, crns[i].offset); |
| | | crnEl.animate({left: (crns[i].bay * ($('.item').eq(0).width()+4)) +'px'}, 1000); |
| | | var unit = $('.item').eq(0).width()+4; |
| | | crnEl.animate({left: (crns[i].bay * unit + 20) +'px'}, 1000); |
| | | } |
| | | } else if (res.code === 403){ |
| | | window.location.href = baseUrl+"/login"; |