feat:已更新净值布局

This commit is contained in:
hzm
2026-02-05 21:27:51 +08:00
parent d4b8dbb23b
commit 77e1146dfe
2 changed files with 24 additions and 40 deletions

View File

@@ -3070,26 +3070,11 @@ export default function HomePage() {
</button>
)}
<div className="title-text">
<span className="name-text" style={{ display: 'flex', alignItems: 'center', gap: 6 }}>
<span
className={`name-text ${f.jzrq === todayStr ? 'updated' : ''}`}
title={f.jzrq === todayStr ? "今日净值已更新" : ""}
>
{f.name}
{f.jzrq === todayStr && (
<span
title="今日净值已更新"
style={{
display: 'inline-flex',
alignItems: 'center',
justifyContent: 'center',
width: 16,
height: 16,
borderRadius: '50%',
background: 'rgba(34, 197, 94, 0.2)',
color: '#22c55e',
fontSize: '10px'
}}
>
</span>
)}
</span>
<span className="muted code-text">#{f.code}</span>
</div>
@@ -3191,28 +3176,11 @@ export default function HomePage() {
</button>
)}
<div className="title-text">
<span style={{ display: 'flex', alignItems: 'center', gap: 6 }}>
<span
className={`name-text ${f.jzrq === todayStr ? 'updated' : ''}`}
title={f.jzrq === todayStr ? "今日净值已更新" : ""}
>
{f.name}
{console.log('jzrq', f.jzrq)}
{console.log('todayStr', todayStr)}
{f.jzrq === todayStr && (
<span
title="今日净值已更新"
style={{
display: 'inline-flex',
alignItems: 'center',
justifyContent: 'center',
width: 16,
height: 16,
borderRadius: '50%',
background: 'rgba(34, 197, 94, 0.2)',
color: '#22c55e',
fontSize: '10px'
}}
>
</span>
)}
</span>
<span className="muted">#{f.code}</span>
</div>