From fea854516181b09b3d94bb41b57c9a6f26372812 Mon Sep 17 00:00:00 2001 From: suixy <2277317060@qq.com> Date: Wed, 22 Apr 2026 09:44:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A6=96=E9=A1=B5=E5=92=8C?= =?UTF-8?q?=E8=A1=8C=E4=B8=9A=E6=96=B9=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/search/index.vue | 148 +++++++++++++++++++++++++++----- src/layout/index.vue | 6 +- src/views/contactUs/index.vue | 9 +- 3 files changed, 140 insertions(+), 23 deletions(-) diff --git a/src/components/search/index.vue b/src/components/search/index.vue index d7ae009..48e32ad 100644 --- a/src/components/search/index.vue +++ b/src/components/search/index.vue @@ -8,32 +8,61 @@
{{ - list.length || 0 + (list.length + list1.length) || 0 }}个相关结果
-
-
-
- 行业方案 -
-
-
-
-
- {{ i.title }} +
+
+
+
+ {{ i }}
-
-
- 产品中心 -
-
+
+
+
+ +
+
+ {{ i.time }} +
{{ i.title }}
+
+ 查看详情 +
+
+
+
+
+
+ +
+
+ {{ i.time }} +
+
+
+
+ {{ i.title }} +
+
+ 查看详情 +
@@ -50,6 +79,7 @@ export default { form: {}, list: [], list1: [], + tabsActive: 0, } }, methods: { @@ -82,13 +112,19 @@ export default { toLink1(e) { this.$router.push(`/productCenter/detail?type=${e[0]}&typeId=${e[1]}&id=${e[2]}`) this.dialogVisible = false - } + }, + checkTabs(k) { + console.log(k) + this.tabsActive = k + }, }, mounted() { }, } \ No newline at end of file diff --git a/src/layout/index.vue b/src/layout/index.vue index 873f8a1..6bd5330 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -52,7 +52,11 @@ export default { this.$router.push('/index') }, toTop() { - window.scrollTo({top: 0, behavior: 'smooth'}); + // window.scrollTo({top: 0, behavior: 'smooth'}); + document.getElementById('content').scrollTo({ + top: 0, + behavior: 'smooth' + }); }, toService() { this.$router.push('/serviceSupport') diff --git a/src/views/contactUs/index.vue b/src/views/contactUs/index.vue index a2c7122..eb2ad79 100644 --- a/src/views/contactUs/index.vue +++ b/src/views/contactUs/index.vue @@ -12,18 +12,20 @@
-
+
+
+
@@ -194,7 +196,7 @@ export default { checkTabs(e, k) { this.tabsActive = k this.itemId = e.id - // document.querySelector('#item' + e.id).scrollIntoView(); // 使用JavaScript实现平滑滚动到指定元素 + document.querySelector('#item' + e.id).scrollIntoView(); // 使用JavaScript实现平滑滚动到指定元素 }, getData() { getAboutUsInfo().then(e => { @@ -253,6 +255,9 @@ export default { white-space: nowrap; background: linear-gradient(to bottom, fade(@standard-color, 10), fade(#fff, 10)); backdrop-filter: saturate(50%) blur(4px); + position: sticky; + top: 0; + z-index: 9999; .content { width: 100%;