From 5671f7a6189e0918d5993e50a29bd23db1a797a0 Mon Sep 17 00:00:00 2001 From: claw_bot Date: Fri, 13 Mar 2026 08:04:00 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BE=AE=E4=BF=A1=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E6=90=9C=E7=B4=A2=E5=8A=9F=E8=83=BD=E7=AE=80=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - detail.vue: 小程序中隐藏搜索下拉列表,买入时直接输入代码 - 小程序不触发搜索接口调用,提升性能 - H5/APP保持完整搜索功能 --- pages/detail/detail.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pages/detail/detail.vue b/pages/detail/detail.vue index b7505ad..bc95150 100755 --- a/pages/detail/detail.vue +++ b/pages/detail/detail.vue @@ -278,6 +278,7 @@ @click="handleStockInputClick" /> + + @@ -456,6 +458,7 @@ const searchResults = ref([]); const searchTimer = ref(null); const handleStockInputClick = () => { + // #ifdef H5 || APP-PLUS if (transactionType.value === 'sell') { searchResults.value = positions.value.map(pos => ({ ticker: pos.stockCode, @@ -471,9 +474,14 @@ const handleStockInputClick = () => { }; const onStockInput = (e) => { + // #ifdef H5 || APP-PLUS const keyword = e.detail.value; console.log('🔍 股票输入:', keyword); searchStock(keyword); + // #endif + // #ifdef MP-WEIXIN + // 小程序中不触发搜索,直接输入代码 + // #endif }; const searchStock = async (keyword) => {