From db554162f109e9bdaacf6f88f96ec68dc98fca20 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Sat, 11 Oct 2025 17:43:41 +0800
Subject: [PATCH] feat:首页地图搜索相关调整

---
 src/pages/map/index.vue |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/pages/map/index.vue b/src/pages/map/index.vue
index 97a5f8b..cceea63 100644
--- a/src/pages/map/index.vue
+++ b/src/pages/map/index.vue
@@ -17,9 +17,11 @@
       <up-icon customPrefix="xyicon" name="dingwei" size="24" color="#000"></up-icon>
     </view>
 
-    <drag-ele>
+    <drag-ele :isSelectInput="isSelectInput" :searchVal="searchVal">
       <template #searchBox>
-        <u-input placeholder="搜索" border="surround" v-model="value" @change="change" color="#fff">
+        <u-input placeholder="搜索" border="surround" v-model="searchVal" @change="change" color="#fff"
+         @focus="isSelectInput = true"
+         @blur="isSelectInput = false">
           <template #prefix>
             <view class="search-left-box">
               <u-icon color="#fff" name="arrow-left"></u-icon>
@@ -100,8 +102,9 @@
 
   const addressTooltip = ref(null)
   const show = ref(false)
+  const isSelectInput = ref(false)
 
-  const value = ref('')
+  const searchVal = ref('')
 
   const change = () => {
 

--
Gitblit v1.9.3