From 1335100e875ffdda19fc16de9afdda920858ca9b Mon Sep 17 00:00:00 2001 From: 杨磊 <505174330@qq.com> Date: 星期五, 17 五月 2024 22:17:30 +0800 Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/TCM_CharacterLibrary --- src/components/headNav/headNav.vue | 16 +++++++++++----- 1 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/components/headNav/headNav.vue b/src/components/headNav/headNav.vue index 29ae20a..958c87d 100644 --- a/src/components/headNav/headNav.vue +++ b/src/components/headNav/headNav.vue @@ -1,10 +1,15 @@ <template> <view class="headNav"> - <view class="NavTop flex" :style="{ backgroundImage: 'url(' + bg + ')' }" > + <view class="NavTop flex" :style="{ backgroundImage: 'url(' + bg + ')' }"> <view class="santiaogang" + style=" + width: 0.34rem; + height: 0.34rem; + margin-right: 3rem; + cursor: pointer; + " title="瀵艰埅鑿滃崟" - style="width: 0.34rem; height: 0.34rem; margin-right: 3rem;cursor: pointer;" @click="menuNav = !menuNav" ><img style="width: 100%; height: 100%" @@ -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); }); } } -- Gitblit v1.9.1