1
0

perf: 股票详情页显示财报

This commit is contained in:
2025-09-12 16:18:39 +08:00
parent 5fa2a4e8e7
commit 338554c523
4 changed files with 159 additions and 6 deletions

View File

@@ -26,9 +26,44 @@ function StockDetail() {
},
},
{label: '行业', content: '${industry}'},
{label: '上市日期', content: '${listedDate}'},
],
},
{type: 'divider'},
{
type: 'service',
api: `get:${commonInfo.baseUrl}/stock/finance/${id}`,
body: [
'资产负债表',
{
className: 'my-2',
type: 'property',
items: [
{label: '总资产', content: '${balanceSheet.totalAssets}'},
{label: '总负债', content: '${balanceSheet.totalLiabilities}'},
],
},
'利润表',
{
className: 'my-2',
type: 'property',
items: [
{label: '营业总收入', content: '${income.totalOperatingRevenue}'},
{label: '营业总成本', content: '${income.totalOperatingCost}'},
{label: '营业总利润', content: '${income.totalProfit}'},
],
},
'现金流量表',
{
className: 'my-2',
type: 'property',
items: [
{label: '净利润', content: '${cashFlow.netProfit}'},
],
},
{type: 'divider'},
],
},
],
},
)}