|
|
@ -10,28 +10,14 @@ const scaleFunc = (showEmpty, id, origin, scale) => { |
|
|
|
} |
|
|
|
|
|
|
|
export const handleScreenAuto = (showEmpty, id, origin) => { |
|
|
|
const clientWidth = document.documentElement.clientWidth |
|
|
|
const clientHeight = document.documentElement.clientHeight |
|
|
|
if (clientWidth > 1600) { |
|
|
|
const clientWidth = document.documentElement.clientWidth |
|
|
|
if (clientHeight < 1080) { |
|
|
|
const scale = clientHeight / 1080 |
|
|
|
scaleFunc(showEmpty, id, origin, scale) |
|
|
|
} else { |
|
|
|
if (clientHeight >= 1764) { |
|
|
|
const scale = 1323 / clientHeight |
|
|
|
const scale = (clientHeight / 1080).toFixed(3) |
|
|
|
scaleFunc(showEmpty, id, origin, scale) |
|
|
|
} else { |
|
|
|
if (clientHeight >= 1323) { |
|
|
|
const scale = 1176 / clientHeight |
|
|
|
const scale = ((clientHeight - 180) / 1080).toFixed(3) |
|
|
|
scaleFunc(showEmpty, id, origin, scale) |
|
|
|
} else { |
|
|
|
const scale = 1080 / clientHeight |
|
|
|
scaleFunc(showEmpty, id, origin, scale) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
showEmpty.value = true |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -88,14 +74,6 @@ export const animateCSS = (element, animation, prefix = 'animate__') => |
|
|
|
export const totalPageAni = async (activeIndex, previousIndex) => { |
|
|
|
const isDown = previousIndex < activeIndex |
|
|
|
const aniName = isDown ? 'fadeInUp' : 'fadeInDown' |
|
|
|
if (activeIndex == 0) { |
|
|
|
// animateCSS('#main_img', 'fadeInUp')
|
|
|
|
// animateCSS('#slide_five_desc_ani', 'fadeInUp')
|
|
|
|
// animateCSS('#slide_two_ani', 'fadeInDown')
|
|
|
|
// animateCSS('#slide_one_ani', 'fadeInDown')
|
|
|
|
// animateCSS('#slide_three_ani', 'fadeInDown')
|
|
|
|
// animateCSS('#slide_four_ani', 'fadeInDown')
|
|
|
|
} |
|
|
|
if (activeIndex == 1) { |
|
|
|
animateCSS('#servive_big_title_ani', aniName) |
|
|
|
} |
|
|
@ -105,13 +83,9 @@ export const totalPageAni = async (activeIndex, previousIndex) => { |
|
|
|
if (activeIndex == 3) { |
|
|
|
animateCSS('#case_picture_list_ani', aniName) |
|
|
|
} |
|
|
|
if (activeIndex == 4) { |
|
|
|
} |
|
|
|
if (activeIndex == 5) { |
|
|
|
animateCSS('#contract_ani', aniName) |
|
|
|
} |
|
|
|
if (activeIndex == 6) { |
|
|
|
} |
|
|
|
if (activeIndex == 7) { |
|
|
|
animateCSS('#software_b_ani', aniName) |
|
|
|
animateCSS('#software_c_ani', aniName) |
|
|
|