From 5ef4e7605393eeba42970209b8430ea7e8e95ca3 Mon Sep 17 00:00:00 2001 From: claw_bot Date: Wed, 25 Mar 2026 03:11:09 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=8A=E6=97=A5=E5=8F=98=E5=8A=A8?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E6=AD=A3=E8=B4=9F=E5=8F=B7;=20=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=A1=B5=E5=8A=A8=E6=80=81=E6=98=BE=E7=A4=BA=E7=BB=84?= =?UTF-8?q?=E5=90=88=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/detail/detail.vue | 6 ++++++ pages/index/index.vue | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pages/detail/detail.vue b/pages/detail/detail.vue index b9fdab4..c9192bb 100755 --- a/pages/detail/detail.vue +++ b/pages/detail/detail.vue @@ -977,6 +977,12 @@ const fetchPortfolioData = async () => { if (response.code === 200) { portfolioData.value = response.data; positions.value = response.data.positions || []; + + // 动态设置页面标题 + if (response.data.name) { + uni.setNavigationBarTitle({ title: response.data.name }); + } + console.log('投资组合数据获取成功:', response.data); } } catch (error) { diff --git a/pages/index/index.vue b/pages/index/index.vue index e94d033..39a6ac1 100755 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -137,7 +137,7 @@ 今日变动 - {{ (holding.todayProfit || 0) >= 0 ? '+' : '' }}{{ getCurrencySymbol(holding.todayProfitCurrency || holding.currency) }}{{ Math.abs(holding.todayProfit || 0).toLocaleString('zh-CN', { minimumFractionDigits: 2, maximumFractionDigits: 2 }) }} + {{ (holding.todayProfit || 0) >= 0 ? '+' : '-' }}{{ getCurrencySymbol(holding.todayProfitCurrency || holding.currency) }}{{ Math.abs(holding.todayProfit || 0).toLocaleString('zh-CN', { minimumFractionDigits: 2, maximumFractionDigits: 2 }) }}