From 3e43a34db4004c9a7548baa7842adc62fb96f7fc Mon Sep 17 00:00:00 2001 From: fanshuai Date: Tue, 25 Mar 2025 10:36:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/home/homeView.vue | 71 ++++++++++++++++++++++++++++--------- 1 file changed, 55 insertions(+), 16 deletions(-) diff --git a/src/views/home/homeView.vue b/src/views/home/homeView.vue index eb7352a..680c429 100644 --- a/src/views/home/homeView.vue +++ b/src/views/home/homeView.vue @@ -34,8 +34,32 @@ export default { const prevSlide = () => { currentIndex.value = (currentIndex.value - 1 + slides.length) % slides.length } + function tiaoZhuan(id) { + const element = document.getElementById(id) + if (element) { + element.scrollIntoView({ behavior: 'smooth' }) + } + } const geet = () => { - alert(`欢迎咨询`) + alert(`欢迎咨询!`) + } + const tiJiao = () => { + alert('提交成功!') + } + const shouye = (id) => { + tiaoZhuan(id) + } + const canPingFangan = (id) => { + tiaoZhuan(id) + } + const jieJuewenTi = (id) => { + tiaoZhuan(id) + } + const keHuanLi = (id) => { + tiaoZhuan(id) + } + const yuanYuwoMen = (id) => { + tiaoZhuan(id) } // 自动播放 onMounted(() => { @@ -48,6 +72,13 @@ export default { nextSlide, prevSlide, geet, + shouye, + canPingFangan, + tiaoZhuan, + jieJuewenTi, + keHuanLi, + yuanYuwoMen, + tiJiao, } }, } @@ -58,18 +89,18 @@ export default { -
+
Logo 辉擎科技
-
首页
-
产品方案
-
行业解决问题
-
客户案例
-
关于我们
+ + + + +
免费咨询
@@ -84,8 +115,10 @@ export default {
辉擎成都科技有限公司致力于提供创新的软件开发解决方案,帮助企业实现数字化转型提升竞争力。
- 联系我们 - 了解服务 + 联系我们 + 了解服务
Slide Image
@@ -93,7 +126,7 @@ export default { -
+
我们的服务
辉擎科技提供全方位的软件开发服务,从需求分析到部署维护,我们用技术为您的业务赋能。 @@ -130,7 +163,7 @@ export default {
-
+
成功案例
服务超过1000家企业客户,助力企业数字化转型。
@@ -258,7 +291,7 @@ export default {
-
+
解决方案
@@ -282,7 +315,7 @@ export default {
-
+
联系我们
@@ -309,7 +342,7 @@ export default { />
- 提交 + 提交
@@ -350,6 +383,10 @@ export default {