From 3a997c8fdf326139adf9fac6343fa6a0dab176f8 Mon Sep 17 00:00:00 2001 From: claw_bot Date: Mon, 9 Mar 2026 11:13:10 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=AD=96=E7=95=A5?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E9=A1=B5=E8=82=A1=E7=A5=A8=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E5=92=8C=E6=B8=B2=E6=9F=93=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=9A1.=20=E4=BF=AE=E5=A4=8DTypeError=E6=8A=A5=E9=94=99?= =?UTF-8?q?=EF=BC=9B2.=20=E9=99=8D=E4=BD=8E=E6=90=9C=E7=B4=A2=E8=A7=A6?= =?UTF-8?q?=E5=8F=91=E9=97=A8=E6=A7=9B=E4=B8=BA1=E4=BD=8D=EF=BC=9B3.=20?= =?UTF-8?q?=E9=80=82=E9=85=8D=E5=90=8E=E7=AB=AF=E8=BF=94=E5=9B=9E=E5=B0=8F?= =?UTF-8?q?=E5=86=99=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/strategies/edit/edit.vue | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/pages/strategies/edit/edit.vue b/pages/strategies/edit/edit.vue index 18d73c5..9b33242 100644 --- a/pages/strategies/edit/edit.vue +++ b/pages/strategies/edit/edit.vue @@ -121,8 +121,11 @@ :key="idx" @click="selectStock(result)" > - {{ result.Ticker }} - {{ result.Exchange }} + + {{ result.ticker }} + {{ result.assetType }} + + {{ result.exchange }} @@ -244,7 +247,9 @@ const searchTimer = ref(null); const searchStock = async (keyword, assetIndex) => { // 防抖 if (searchTimer.value) clearTimeout(searchTimer.value); - if (!keyword || keyword.length < 2) { + // 赋值当前激活的搜索下标 + activeAssetIndex.value = assetIndex; + if (!keyword || keyword.length < 1) { searchResults.value = []; activeAssetIndex.value = -1; return; @@ -271,7 +276,7 @@ const searchStock = async (keyword, assetIndex) => { const selectStock = (result) => { const asset = formData.value.assets[result.assetIndex]; if (asset) { - asset.symbol = result.Ticker; + asset.symbol = result.ticker; } searchResults.value = []; activeAssetIndex.value = -1; @@ -822,12 +827,27 @@ onMounted(() => { background-color: #F3F4F6; } +.item-left { + display: flex; + flex-direction: row; + align-items: center; + gap: 12rpx; +} + .item-ticker { font-size: 26rpx; font-weight: 600; color: #1F2937; } +.item-type { + font-size: 18rpx; + color: #064E3B; + background-color: #D1FAE5; + padding: 2rpx 8rpx; + border-radius: 4rpx; +} + .item-exchange { font-size: 22rpx; color: #9CA3AF;