Browse Source

bottom color

master
maochaoying 2 years ago
parent
commit
dd8455c6c5
  1. 7
      src/components/Bottom.vue
  2. 10
      src/components/Top.vue

7
src/components/Bottom.vue

@ -15,7 +15,7 @@
<span class="text1">在线咨询</span> <span class="text1">在线咨询</span>
</div> </div>
<div class="phone"> <div class="phone">
<div class="box">
<div :class="isHard ? 'box hard' : 'box'">
<img class="img3" :src="A2" alt="" /> <img class="img3" :src="A2" alt="" />
<span class="text2">拨打电话</span> <span class="text2">拨打电话</span>
</div> </div>
@ -108,6 +108,9 @@ onMounted(() => {
color: #ffffff; color: #ffffff;
} }
} }
.hard {
background: linear-gradient(90deg, #2beec3, #74fddf);
}
} }
} }
.drag { .drag {
@ -117,6 +120,6 @@ onMounted(() => {
animation-fill-mode: forwards; animation-fill-mode: forwards;
} }
.h_bottom { .h_bottom {
background: $hardware-theme;
background: #14e1b4;
} }
</style> </style>

10
src/components/Top.vue

@ -4,7 +4,11 @@
istop && isFirstSwiper ? 'top_container' : 'top_container container_bg' istop && isFirstSwiper ? 'top_container' : 'top_container container_bg'
" "
> >
<img class="logo" :src="istop && isFirstSwiper ? Logo : Logo1" alt="" />
<img
class="logo"
:src="istop && isFirstSwiper ? Logo : isHard ? Logo2 : Logo1"
alt=""
/>
<img <img
class="fold_icon" class="fold_icon"
:src="istop && isFirstSwiper ? Icon : Icon1" :src="istop && isFirstSwiper ? Icon : Icon1"
@ -65,9 +69,13 @@ const hidePanel = event => {
} }
} }
} }
const isHard = ref(false)
onMounted(() => { onMounted(() => {
window.addEventListener('scroll', scrollToTop) window.addEventListener('scroll', scrollToTop)
if (route.path.indexOf('/hardware') != -1) {
isHard.value = true
}
}) })
const istop = ref(true) const istop = ref(true)

Loading…
Cancel
Save