From de396f57db3a5b43cbca29b40e91d3d0865ff9df Mon Sep 17 00:00:00 2001
From: wuhans-first-deep-love <2966551326@qq.com>
Date: Fri, 30 May 2025 17:12:12 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=90=9C=E7=B4=A2=E7=BB=93?=
=?UTF-8?q?=E6=9E=9C=E7=95=8C=E9=9D=A2=EF=BC=8C=E9=A1=B6=E6=A0=8F=E6=B7=BB?=
=?UTF-8?q?=E5=8A=A0=E6=90=9C=E7=B4=A2=E6=A1=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../vue-unilife/src/components/HeaderBar.vue | 60 ++-
Front/vue-unilife/src/routers/routers.ts | 9 +-
Front/vue-unilife/src/views/SearchResult.vue | 395 ++++++++++++++++++
3 files changed, 462 insertions(+), 2 deletions(-)
create mode 100644 Front/vue-unilife/src/views/SearchResult.vue
diff --git a/Front/vue-unilife/src/components/HeaderBar.vue b/Front/vue-unilife/src/components/HeaderBar.vue
index 3ff6a95..2266670 100644
--- a/Front/vue-unilife/src/components/HeaderBar.vue
+++ b/Front/vue-unilife/src/components/HeaderBar.vue
@@ -1,9 +1,17 @@
@@ -31,6 +39,19 @@
+
+
+
+
+
@@ -115,4 +136,41 @@
border-radius: 50%;
object-fit: cover;
}
+
+ .header-search {
+ display: flex;
+ align-items: center;
+ margin-left: 16px;
+ }
+
+ .header-search input {
+ width: 180px;
+ padding: 6px 10px;
+ font-size: 14px;
+ border-radius: 4px 0 0 4px;
+ border: 1px solid #ccc;
+ outline: none;
+ transition: border-color 0.2s;
+ }
+
+ .header-search input:focus {
+ border-color: #765ce6;
+ }
+
+ .header-search button {
+ padding: 6px 12px;
+ border: none;
+ background-color: #765ce6;
+ color: white;
+ font-weight: 600;
+ cursor: pointer;
+ border-radius: 0 4px 4px 0;
+ transition: background-color 0.2s;
+ user-select: none;
+ }
+
+ .header-search button:hover {
+ background-color: #5a42b8;
+ }
+
diff --git a/Front/vue-unilife/src/routers/routers.ts b/Front/vue-unilife/src/routers/routers.ts
index 29c905d..1a764bb 100644
--- a/Front/vue-unilife/src/routers/routers.ts
+++ b/Front/vue-unilife/src/routers/routers.ts
@@ -9,6 +9,7 @@ import PostManager from '@/views/PostManagement.vue';
import Curriculum from '@/views/Curriculum.vue';
import DirectMessage from '@/views/DirectMessage.vue';
import AIManager from '@/views/AiManager.vue'
+import SearchResult from "@/views/SearchResult.vue";
const routes: Array = [
{
@@ -84,7 +85,13 @@ const routes: Array = [
path:'/directMessage',
name:'DirectMessage',
component:() => import('@/views/DirectMessage.vue'),
- }
+ },
+ {
+ path: '/search',
+ name: 'SearchResult',
+ component: SearchResult,
+ },
+
];
diff --git a/Front/vue-unilife/src/views/SearchResult.vue b/Front/vue-unilife/src/views/SearchResult.vue
new file mode 100644
index 0000000..d044531
--- /dev/null
+++ b/Front/vue-unilife/src/views/SearchResult.vue
@@ -0,0 +1,395 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ item.title }}
+
{{ item.content }}
+
+
+
+ 预览图/内容
+
+
+
+
+ 暂无搜索结果
+
+
+
+
+
+
+
+
+
+