From ba1ae595dfaf8b146553bed01e8a89862733fe27 Mon Sep 17 00:00:00 2001
From: maochaoying <925670706@qq.com>
Date: Mon, 10 Apr 2023 10:34:11 +0800
Subject: [PATCH] 123
---
src/components/TopNav/index.vue | 32 +++++++++++++++-------
.../components/HeaderSwiper/SlideFive/index.vue | 6 ++++
.../components/HeaderSwiper/SlideFour/index.vue | 7 +++++
.../components/HeaderSwiper/SlideOne/index.vue | 12 +++++++-
.../components/HeaderSwiper/SlideThree/index.vue | 7 +++++
.../components/HeaderSwiper/SlideTwo/index.vue | 14 +++++++++-
6 files changed, 66 insertions(+), 12 deletions(-)
diff --git a/src/components/TopNav/index.vue b/src/components/TopNav/index.vue
index f328470..b78e57c 100644
--- a/src/components/TopNav/index.vue
+++ b/src/components/TopNav/index.vue
@@ -4,15 +4,19 @@
activeIndex == 0 ? 'header_container' : 'header_container not_first'
"
>
-
+
- - 首页
- - 工业设计
- - 软硬件研发
- - 结构开发
- - 企业文化
- - 加入我们
- - 联系我们
+ - 首页
+ - 工业设计
+ -
+ 软硬件研发
+
+ -
+ 结构开发
+
+ - 企业文化
+ - 加入我们
+ - 联系我们
@@ -29,7 +33,7 @@ const countStore = useCountStore()
const { activeIndex } = storeToRefs(swiperStore)
const getActiveClass = index => {
- if (swiperStore.activeIndex == index) {
+ if (index.includes(swiperStore.activeIndex)) {
return 'active'
}
return ''
@@ -37,7 +41,7 @@ const getActiveClass = index => {
const scrollToPage = index => {
// 让数字动
- swiperStore.swiper.slideTo(index, 1000, false)
+ swiperStore.swiper.slideTo(index, 0, false)
if (index == 3) {
setTimeout(() => {
countStore.countAdd()
@@ -87,10 +91,18 @@ const fontColor = () => {
font-size: 18px;
li {
margin: 0 30px;
+ transition-property: all;
+ transition-duration: 0.3s;
+ animation-fill-mode: forwards;
+ }
+ li:hover {
+ transform: scale(1.1);
+ color: rgb(40, 63, 231, 0.6);
}
.logo {
height: 40px;
width: auto;
+ cursor: pointer;
}
}
.flex_center {
diff --git a/src/views/Index/components/HeaderSwiper/SlideFive/index.vue b/src/views/Index/components/HeaderSwiper/SlideFive/index.vue
index 4d4f48b..5feb87e 100644
--- a/src/views/Index/components/HeaderSwiper/SlideFive/index.vue
+++ b/src/views/Index/components/HeaderSwiper/SlideFive/index.vue
@@ -51,6 +51,9 @@
border-radius: 43px;
align-items: center;
margin-bottom: 50px;
+ transition-property: all;
+ transition-duration: 0.7s;
+ animation-fill-mode: forwards;
.left {
width: 50%;
height: 100%;
@@ -76,6 +79,9 @@
color: #000000;
}
}
+ .title:hover {
+ transform: scale(1.05);
+ }
.desc {
display: flex;
align-items: center;
diff --git a/src/views/Index/components/HeaderSwiper/SlideFour/index.vue b/src/views/Index/components/HeaderSwiper/SlideFour/index.vue
index b5f742e..6f30537 100644
--- a/src/views/Index/components/HeaderSwiper/SlideFour/index.vue
+++ b/src/views/Index/components/HeaderSwiper/SlideFour/index.vue
@@ -71,6 +71,13 @@
display: flex;
align-items: center;
justify-content: center;
+ letter-spacing: 2px;
+ transition-property: all;
+ transition-duration: 0.7s;
+ animation-fill-mode: forwards;
+ }
+ .btn:hover {
+ transform: scale(1.05);
}
}
.bottom_statement {
diff --git a/src/views/Index/components/HeaderSwiper/SlideOne/index.vue b/src/views/Index/components/HeaderSwiper/SlideOne/index.vue
index 9c0134b..6281e6f 100644
--- a/src/views/Index/components/HeaderSwiper/SlideOne/index.vue
+++ b/src/views/Index/components/HeaderSwiper/SlideOne/index.vue
@@ -18,7 +18,7 @@
|
量产
- 新·工业设计
+ 新 · 工业设计
Product Dreamworks
@@ -74,6 +74,16 @@
font-family: Alibaba PuHuiTi;
font-weight: 400;
color: #ffffff;
+ transition-property: all;
+ transition-duration: 0.7s;
+ animation-fill-mode: forwards;
+ .point {
+ font-size: 60px;
+ margin: 0 6px;
+ }
+ }
+ .new_btn:hover {
+ transform: scale(1.05);
}
}
.bottom_statement {
diff --git a/src/views/Index/components/HeaderSwiper/SlideThree/index.vue b/src/views/Index/components/HeaderSwiper/SlideThree/index.vue
index ea7f5ac..b72f1c9 100644
--- a/src/views/Index/components/HeaderSwiper/SlideThree/index.vue
+++ b/src/views/Index/components/HeaderSwiper/SlideThree/index.vue
@@ -54,6 +54,13 @@ import Gif from '@/assets/img/banner/nation/logo.png'
font-family: Alibaba PuHuiTi;
font-weight: 400;
color: #ffffff;
+ letter-spacing: 2px;
+ transition-property: all;
+ transition-duration: 0.7s;
+ animation-fill-mode: forwards;
+ }
+ .btn:hover {
+ transform: scale(1.05);
}
}
.right_img {
diff --git a/src/views/Index/components/HeaderSwiper/SlideTwo/index.vue b/src/views/Index/components/HeaderSwiper/SlideTwo/index.vue
index b178694..d4b83e9 100644
--- a/src/views/Index/components/HeaderSwiper/SlideTwo/index.vue
+++ b/src/views/Index/components/HeaderSwiper/SlideTwo/index.vue
@@ -8,7 +8,9 @@
>
理论结合实践
- 专注基础科学 · 培养百名专家团队
+
+ 专注基础科学 · 培养百名专家团队
+
Product Dreamworks
@@ -57,6 +59,16 @@ import HeaderPng from '@/assets/img/banner/lilun/biaotitubiao.png'
display: flex;
align-items: center;
justify-content: center;
+ transition-property: all;
+ transition-duration: 0.7s;
+ animation-fill-mode: forwards;
+ .point {
+ font-size: 60px;
+ margin: 0 6px;
+ }
+ }
+ .btn:hover {
+ transform: scale(1.05);
}
}
.bottom_statement {