feat: 添加风云榜、七数商角标

This commit is contained in:
2026-06-26 15:00:57 +08:00
parent a2f39099d6
commit 1902549342
7 changed files with 39 additions and 22 deletions
+8 -7
View File
@@ -139,7 +139,7 @@
</view>
<view class="seed-card__stat">
<view class="seed-card__stat-label">今日增量</view>
<view class="seed-card__stat-value seed-card__stat-value--up">{{
<view class="seed-card__stat-value">{{
poolTodayIncText
}}</view>
</view>
@@ -519,14 +519,14 @@
const poolGrowthData = ref(null);
const poolTotalText = computed(() => {
const v = Number(poolGrowthData.value?.totalPool);
return Number.isFinite(v) ? formatCnyShort(v) : '0';
const v = poolGrowthData.value?.totalPool;
if (v === null || v === undefined || v === '') return '-';
return String(v);
});
const poolTodayIncText = computed(() => {
const n = Number(poolGrowthData.value?.todayIncrement);
if (!Number.isFinite(n)) return '+0';
const sign = n > 0 ? '+' : '';
return `${sign}${formatCnyShort(n)}`;
const v = poolGrowthData.value?.todayIncrement;
if (v === null || v === undefined || v === '') return '-';
return String(v);
});
const poolRateText = computed(() => {
const raw = poolGrowthData.value?.weekGrowthRate ?? poolGrowthData.value?.todayGrowthRate;
@@ -953,6 +953,7 @@
color: #e54035;
}
.seed-card__totals {
display: flex;
align-items: flex-start;