From c10b951f4afd948798494bd1d7cd1c34da19ad76 Mon Sep 17 00:00:00 2001 From: claw_bot Date: Mon, 9 Mar 2026 10:33:36 +0000 Subject: [PATCH] =?UTF-8?q?fix:=201.=20=E9=99=8D=E4=BD=8E=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E8=A7=A6=E5=8F=91=E9=97=A8=E6=A7=9B=E4=B8=BA1?= =?UTF-8?q?=E4=BD=8D=E5=AD=97=E7=AC=A6=EF=BC=8C=E6=94=AF=E6=8C=81=E5=8D=95?= =?UTF-8?q?=E5=AD=97=E6=AF=8D=E8=82=A1=E7=A5=A8=E4=BB=A3=E7=A0=81=EF=BC=9B?= =?UTF-8?q?2.=20=E9=80=82=E9=85=8D=E5=90=8E=E7=AB=AF=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E7=9A=84=E5=B0=8F=E5=86=99=E5=AD=97=E6=AE=B5=EF=BC=8C=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E8=B5=84=E4=BA=A7=E7=B1=BB=E5=9E=8B=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/config/config.vue | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/pages/config/config.vue b/pages/config/config.vue index 4634b9e..7225e4c 100644 --- a/pages/config/config.vue +++ b/pages/config/config.vue @@ -66,8 +66,11 @@ :key="idx" @click="selectStock(result)" > - {{ result.Ticker }} - {{ result.Exchange }} + + {{ result.ticker }} + {{ result.assetType }} + + {{ result.exchange }} @@ -134,7 +137,7 @@ const searchStock = async (keyword, stockIndex) => { // 赋值当前激活的搜索下标 activeSearchIndex.value = stockIndex; - if (!keyword || keyword.length < 2) { + if (!keyword || keyword.length < 1) { searchResults.value = []; activeSearchIndex.value = -1; return; @@ -160,7 +163,10 @@ const searchStock = async (keyword, stockIndex) => { const selectStock = (result) => { const stock = form.value.stocks[result.stockIndex]; if (stock) { - stock.name = result.Ticker; + stock.name = result.ticker; + // 可以在这里额外保存资产类型等信息 + stock.assetType = result.assetType; + stock.currency = result.priceCurrency; } searchResults.value = []; activeSearchIndex.value = -1; @@ -514,12 +520,27 @@ onShow(async () => { 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;