Index: ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/recycleForTouchScreen.js =================================================================== diff -u -r29348 -r29351 --- ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/recycleForTouchScreen.js (.../recycleForTouchScreen.js) (revision 29348) +++ ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/recycleForTouchScreen.js (.../recycleForTouchScreen.js) (revision 29351) @@ -3545,41 +3545,79 @@ return; } obj.blur(); - var width = 900; - var height = 500; - if(window.screen.availWidth > 1500){ - width = 750; - height = 400; + var width = 750; + var height = 400; + openElement = obj; + var boxHeight = window.screen.height; + var offsetTop = ((boxHeight-height)/2)+'px'; + if(isIE()){ + var screenWidth = ChangeRatio('width'); + var screenHeight = ChangeRatio('height'); + if(screenWidth < 1030){ + width = width*0.6; + height = height*0.6; + offsetTop = ((boxHeight-height)/2)+'px'; + }else if(screenWidth>1270 && screenWidth<1300){ + width = width*0.8; + height = height*0.8; + offsetTop = ((boxHeight-height)/2)+'px'; + }else if(screenWidth>1350 && screenWidth<1370){ + width = width*0.8; + height = height*0.8; + offsetTop = ((boxHeight-height)/2)+'px'; + }else if(screenWidth>1390){ + width = width*0.9; + height = height*0.9; + offsetTop = ((boxHeight-height)/2)+'px'; + } } - openElement = obj; layerIndex = layer.open({ type : 2, title : ['修改数量',true], content : 'updateAmount.jsp?resolution='+resolution+'&row='+row, area : [width + 'px' , height + 'px'], border : [5, 0.3, '#fff', true], closeBtn : [2 , true], - offset : ['250px',''] + offset : [offsetTop,''] }); } function openUpdateStuffInTheBasketAmount(obj,tousseName,name,type){ obj.blur(); var width = 550; - var height = 300; - if(resolution == '1980'){ - width = 750; - height = 400; - } + var height = 300; + var boxHeight = window.screen.height; openElement = obj; + var offsetTop = ((boxHeight-height)/2)+'px'; + if(isIE()){ + var screenWidth = ChangeRatio('width'); + var screenHeight = ChangeRatio('height'); + if(screenWidth < 1030){ + width = width*0.6; + height = height*0.6; + offsetTop = ((boxHeight-height)/2)+'px'; + }else if(screenWidth>1270 && screenWidth<1300){ + width = width*0.8; + height = height*0.8; + offsetTop = ((boxHeight-height)/2)+'px'; + }else if(screenWidth>1350 && screenWidth<1370){ + width = width*0.8; + height = height*0.8; + offsetTop = ((boxHeight-height)/2)+'px'; + }else if(screenWidth>1390){ + width = width*0.9; + height = height*0.9; + offsetTop = ((boxHeight-height)/2)+'px'; + } + } layerIndex=layer.open({ type : 2, title : ['修改数量',true], content : 'updateAmount.jsp?resolution='+resolution+'&tousseName='+tousseName+'&name='+name+'&type='+type, area : [width + 'px' , height + 'px'], border : [5, 0.3, '#fff', true], closeBtn : [2 , true], - offset : ['250px',''] + offset : [offsetTop,''] }); }