From 0b4fa4b2cfd68528d15aa71557425a7a80e3fc41 Mon Sep 17 00:00:00 2001
From: YM <479443481@qq.com>
Date: 星期五, 17 五月 2024 21:08:50 +0800
Subject: [PATCH] 222

---
 src/components/headNav/headNav.vue |   21 +++++++++++++--------
 1 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/src/components/headNav/headNav.vue b/src/components/headNav/headNav.vue
index 65c390f..3a3f61b 100644
--- a/src/components/headNav/headNav.vue
+++ b/src/components/headNav/headNav.vue
@@ -3,7 +3,12 @@
     <view class="NavTop flex" :style="{ backgroundImage: 'url(' + bg + ')' }">
       <view
         class="santiaogang"
-        style="width: 0.34rem; height: 0.34rem; margin-right: 3rem;cursor: pointer;"
+        style="
+          width: 0.34rem;
+          height: 0.34rem;
+          margin-right: 3rem;
+          cursor: pointer;
+        "
         @click="menuNav = !menuNav"
         ><img
           style="width: 100%; height: 100%"
@@ -284,7 +289,7 @@
         });
       } else if (index === "1") {
         uni.navigateTo({
-          url: "/pages/characterRelation/characterRelation?id=" + 1
+          url: "/pages/character/index?id=" + 1
         });
       } else if (index === "2") {
         uni.navigateTo({
@@ -292,7 +297,7 @@
         });
       } else if (index === "3") {
         uni.navigateTo({
-          url: "/pages/dataDisplay/dataDisplay?id=" + 3
+          url: "/pages/academicGenres/index?id=" + 3
         });
       } else if (index === "4") {
         uni.navigateTo({
@@ -311,17 +316,18 @@
     },
     // 鍒囨崲鎼滅储妗嗙殑灞曞紑鍜屾敹璧风姸鎬�
     toggleSearch() {
-      // console.log('鎾掓棪鑼冨痉钀ㄥ彂鐢熺殑',this.searchInput);
       this.isExpanded = !this.isExpanded;
       this.$nextTick(() => {
         if (this.searchInput.trim() !== "") {
-          console.log("鎼滅储", this.searchInput);
+          uni.navigateTo({
+            url:
+              "/pages/knowledgeBase/knowledgeBase?keyword=" + this.searchInput
+          });
         } else {
           console.log("涓嶆悳绱�");
         }
 
         this.searchInput = "";
-        console.log(this.isExpanded);
       });
     }
   }
@@ -377,8 +383,7 @@
 }
 
 .NavTop {
-  /* background: url(@/static/image/topBg.png); */
-
+  /* background-image: url("../../static/image/topBg.png"); */
   background-size: 100% 100%;
   padding: 0.16rem 0.24rem;
   color: #fff !important;

--
Gitblit v1.9.1