|
@ -5,9 +5,9 @@ |
|
|
line1="专业水下视学设备团队,研发出品,多年的使用经验打磨的好产品,支持定制,想您所想,另外公司有硬件研发团队" |
|
|
line1="专业水下视学设备团队,研发出品,多年的使用经验打磨的好产品,支持定制,想您所想,另外公司有硬件研发团队" |
|
|
line2="软件研发团队、结构研发团队、外观研发团队也能帮您研发设计其他产品。" |
|
|
line2="软件研发团队、结构研发团队、外观研发团队也能帮您研发设计其他产品。" |
|
|
/> |
|
|
/> |
|
|
<div class="more_btn" @click="toAboutPage()"> |
|
|
|
|
|
<span>了解更多</span> |
|
|
|
|
|
<span>→</span> |
|
|
|
|
|
|
|
|
<div class="more_btn" @click="toAboutPage()" ref="el"> |
|
|
|
|
|
<span ref="elLeft">了解更多</span> |
|
|
|
|
|
<span ref="elRight">→</span> |
|
|
</div> |
|
|
</div> |
|
|
<FourCard /> |
|
|
<FourCard /> |
|
|
</div> |
|
|
</div> |
|
@ -17,10 +17,26 @@ |
|
|
import HeadLine from '@/components/HeadLine' |
|
|
import HeadLine from '@/components/HeadLine' |
|
|
import FourCard from '@/components/FourCard' |
|
|
import FourCard from '@/components/FourCard' |
|
|
import { useRouter } from 'vue-router' |
|
|
import { useRouter } from 'vue-router' |
|
|
|
|
|
import { animateCSS } from '@/constant' |
|
|
|
|
|
import { ref, onMounted } from 'vue' |
|
|
const router = useRouter() |
|
|
const router = useRouter() |
|
|
const toAboutPage = () => { |
|
|
const toAboutPage = () => { |
|
|
router.push('/about') |
|
|
router.push('/about') |
|
|
} |
|
|
} |
|
|
|
|
|
const elRight = ref(null) |
|
|
|
|
|
const elLeft = ref(null) |
|
|
|
|
|
const el = ref(null) |
|
|
|
|
|
onMounted(() => { |
|
|
|
|
|
const observer = new IntersectionObserver(entries => { |
|
|
|
|
|
entries.forEach(entry => { |
|
|
|
|
|
if (entry.isIntersecting) { |
|
|
|
|
|
animateCSS(elRight.value, 'backInRight') |
|
|
|
|
|
animateCSS(elLeft.value, 'backInLeft') |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}) |
|
|
|
|
|
observer.observe(el.value) |
|
|
|
|
|
}) |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
<style lang="scss" scoped> |
|
|