From 9542db8bad1f4ca10f008877e8c937aa5c4925a1 Mon Sep 17 00:00:00 2001 From: xuli3099 Date: Fri, 1 Aug 2025 18:47:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages.json | 6 ++++++ src/pages/notice/notice.vue | 9 ++++++++- src/pages/search/search.vue | 24 ++++++++++++++++++++++++ 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 src/pages/search/search.vue diff --git a/src/pages.json b/src/pages.json index a64300b..491b6a5 100644 --- a/src/pages.json +++ b/src/pages.json @@ -126,6 +126,12 @@ "style": { "navigationBarTitleText": "" } + }, + { + "path": "pages/search/search", + "style": { + "navigationBarTitleText": "" + } } ], "globalStyle": { diff --git a/src/pages/notice/notice.vue b/src/pages/notice/notice.vue index 8a58fb3..85d0979 100644 --- a/src/pages/notice/notice.vue +++ b/src/pages/notice/notice.vue @@ -15,7 +15,9 @@ + cancelButton="none" bgColor="#6FA2F8" textColor="#ffffff" + @confirm="handleSearch" @focus="handleFocus" + /> @@ -50,6 +52,11 @@ onMounted(() => { navBarPaddingTop.value = getNavBarPaddingTop() * 2; }) +// 获取input 焦点跳转 +let handleFocus=()=>{ + uni.navigateTo({url:'/pages/search/search'}) +} + // 查询搜索跳转 let handleSearch = () => { diff --git a/src/pages/search/search.vue b/src/pages/search/search.vue new file mode 100644 index 0000000..d7ddbee --- /dev/null +++ b/src/pages/search/search.vue @@ -0,0 +1,24 @@ + + + + \ No newline at end of file