|  |  | 
 |  |  |         } | 
 |  |  |         bayWidth = rackss[i].width / bLen | 
 |  |  |         // hpPosition 0 表示货架序号 左->右 1 表示货架序号 左<-右 | 
 |  |  |         if (mapInfo.hpPosition == 1) { | 
 |  |  |         if (mapInfo.hpPosition == 0) { | 
 |  |  |             bNum = maxBayNo | 
 |  |  |             for (let j = bLen; j > 0; j--) { | 
 |  |  |                 bay = "<button class='item' style='width: "+ bayWidth +"px'>" + bNum + "</button>" | 
 |  |  | 
 |  |  |         let floor = areas[i].text | 
 |  |  |         let barcodes = areas[i].barcode | 
 |  |  |         floorId = areas[i].id | 
 |  |  |         var position = (i+1)*100 | 
 |  |  |         var position = (i+1)*50 + 400 | 
 |  |  |         floorBtn = | 
 |  |  |             "<button class='floorBtn btn-16' onclick='changFloor("+i+")' style='top: "+position+"px;'>" + floor +"</button>" | 
 |  |  |         if (mapInfo.areas[0].floors.length == 1) { |