1.在工具包中添加以下代码
export function initDialogHeight() {
let h = initLayoutInfo().height;
let devicePixelRatio = window.devicePixelRatio;
let jResolutionHeight = window.screen.height;
if (devicePixelRatio == 1) {
if (jResolutionHeight == 600) {
//当电脑屏幕分辨率的高度为600,缩放比例为100%时
h = h - 120;
} else if (jResolutionHeight == 768) {
//当电脑屏幕分辨率的高度为768,缩放比例为100%时
h = h - 140;
} else if (jResolutionHeight == 720) {
//当电脑屏幕分辨率的高度为720,缩放比例为100%时
h = h - 140;
} else if (jResolutionHeight == 800) {
//当电脑屏幕分辨率的高度为800,缩放比例为100%时
h = h - 170;
} else if (jResolutionHeight == 864) {
//当电脑屏幕分辨率的高度为864,缩放比例为100%时
h = h - 160;
} else if (jResolutionHeight == 960) {