|
|
@ -1,5 +1,15 @@ |
|
|
|
<template> |
|
|
|
<div :class="isDrag ? 'bottom_container drag' : 'bottom_container'"> |
|
|
|
<div |
|
|
|
:class=" |
|
|
|
isDrag |
|
|
|
? isHard |
|
|
|
? 'bottom_container drag h_bottom' |
|
|
|
: 'bottom_container drag' |
|
|
|
: isHard |
|
|
|
? 'bottom_container h_bottom' |
|
|
|
: 'bottom_container' |
|
|
|
" |
|
|
|
> |
|
|
|
<div class="online"> |
|
|
|
<img class="img1" :src="A1" alt="" /> |
|
|
|
<span class="text1">在线咨询</span> |
|
|
@ -20,11 +30,21 @@ |
|
|
|
import A1 from '@/static/img/bottom/kefu.png' |
|
|
|
import A2 from '@/static/img/bottom/phone.png' |
|
|
|
import A3 from '@/static/img/bottom/wechat.png' |
|
|
|
import { useRoute } from 'vue-router' |
|
|
|
import { ref, onMounted } from 'vue' |
|
|
|
const route = useRoute() |
|
|
|
const props = defineProps({ |
|
|
|
isDrag: { |
|
|
|
type: Boolean, |
|
|
|
}, |
|
|
|
}) |
|
|
|
|
|
|
|
const isHard = ref(false) |
|
|
|
onMounted(() => { |
|
|
|
if (route.path.indexOf('/hardware') != -1) { |
|
|
|
isHard.value = true |
|
|
|
} |
|
|
|
}) |
|
|
|
</script> |
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
@ -96,4 +116,7 @@ const props = defineProps({ |
|
|
|
transition-duration: 0.7s; |
|
|
|
animation-fill-mode: forwards; |
|
|
|
} |
|
|
|
.h_bottom { |
|
|
|
background: $hardware-theme; |
|
|
|
} |
|
|
|
</style> |