From dd8455c6c5b9a4905a429e648973620dc4a756c3 Mon Sep 17 00:00:00 2001 From: maochaoying <925670706@qq.com> Date: Wed, 12 Jul 2023 18:39:12 +0800 Subject: [PATCH] bottom color --- src/components/Bottom.vue | 7 +++++-- src/components/Top.vue | 10 +++++++++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/components/Bottom.vue b/src/components/Bottom.vue index 2a400b3..36f6db5 100644 --- a/src/components/Bottom.vue +++ b/src/components/Bottom.vue @@ -15,7 +15,7 @@ 在线咨询
-
+
拨打电话
@@ -108,6 +108,9 @@ onMounted(() => { color: #ffffff; } } + .hard { + background: linear-gradient(90deg, #2beec3, #74fddf); + } } } .drag { @@ -117,6 +120,6 @@ onMounted(() => { animation-fill-mode: forwards; } .h_bottom { - background: $hardware-theme; + background: #14e1b4; } diff --git a/src/components/Top.vue b/src/components/Top.vue index 66aa881..e7d3471 100644 --- a/src/components/Top.vue +++ b/src/components/Top.vue @@ -4,7 +4,11 @@ istop && isFirstSwiper ? 'top_container' : 'top_container container_bg' " > - + { } } } +const isHard = ref(false) onMounted(() => { window.addEventListener('scroll', scrollToTop) + if (route.path.indexOf('/hardware') != -1) { + isHard.value = true + } }) const istop = ref(true)