From d4211fd96865e58217d63efaf4d8f6609fb24ae6 Mon Sep 17 00:00:00 2001 From: mh-two-thousand-and-two <17391232786@163.com> Date: 星期二, 16 四月 2024 17:43:33 +0800 Subject: [PATCH] 更新数据 --- src/pages/index/index.vue | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 16483d0..068b697 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -16,7 +16,7 @@ <view class="flex searchCss" :style="{'backgroundColor': isExpanded==true?'#fff':''}" style="border-radius: .5rem; height: 75%; width: 2.33rem;margin-right: .30rem;justify-content: flex-end;"> <!-- overflow: hidden; --> - <input :style="{'display': isExpanded == true ? 'block' : 'none'}" type="text" + <input :style="{'display': isExpanded == true ? 'block' : 'none'}" @confirm="toggleSearch" type="text" style="margin-left: .05rem;color: #2C2C2C; flex: 1; background-color: #fff; font-size: .13rem;" class="search-input" v-model="searchInput" placeholder="璇疯緭鍏ユ悳绱㈠唴瀹�" /> <view class="search-logo" @click="toggleSearch" @@ -152,9 +152,8 @@ // 鎼滅储 onSearch(val) { uni.navigateTo({ - url: '/pages/knowledgeBase/knowledgeBase?name=' + val + url: '/pages/knowledgeBase/knowledgeBase?name=' + val.text }) - console.log('vv', val); }, // 鎼滅储 // 鍒囨崲鎼滅储妗嗙殑灞曞紑鍜屾敹璧风姸鎬� @@ -164,7 +163,10 @@ this.isExpanded = !this.isExpanded; this.$nextTick(() => { if (this.searchInput.trim() !== '') { - console.log('鎼滅储', this.searchInput); + uni.navigateTo({ + url: '/pages/knowledgeBase/knowledgeBase?name=' + this.searchInput + }) + // console.log('鎼滅储', this.searchInput); } else { console.log('涓嶆悳绱�'); } -- Gitblit v1.9.1