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) => {