|
|
@ -11,7 +11,11 @@ const scaleFunc = (showEmpty, id, origin, scale, isLow) => { |
|
|
|
showEmpty.value = false |
|
|
|
} else { |
|
|
|
if (isLow) { |
|
|
|
showEmpty.value = false |
|
|
|
if (['#case_detail_container'].includes(id)) { |
|
|
|
showEmpty.value = true |
|
|
|
} else { |
|
|
|
showEmpty.value = false |
|
|
|
} |
|
|
|
} else { |
|
|
|
showEmpty.value = true |
|
|
|
} |
|
|
@ -22,10 +26,13 @@ export const handleScreenAuto = (showEmpty, id, origin) => { |
|
|
|
const clientHeight = document.documentElement.clientHeight |
|
|
|
const clientWidth = document.documentElement.clientWidth |
|
|
|
if (clientHeight < 1080) { |
|
|
|
const scale = (clientHeight / 1080).toFixed(3) |
|
|
|
let scale = (clientHeight / 1080).toFixed(3) |
|
|
|
scaleFunc(showEmpty, id, origin, scale, true) |
|
|
|
} else { |
|
|
|
const scale = ((clientHeight - 300) / 1080).toFixed(3) |
|
|
|
let scale = ((clientHeight - 300) / 1080).toFixed(3) |
|
|
|
if (['#case_picture', '#hardware_picture_list'].includes(id)) { |
|
|
|
scale = ((clientHeight - 300) / 1170).toFixed(3) |
|
|
|
} |
|
|
|
scaleFunc(showEmpty, id, 'center 0', scale, false) |
|
|
|
} |
|
|
|
} |
|
|
|