refactor(admin-dashboard): unify mini chart subtitles

This commit is contained in:
萝卜
2026-03-16 11:01:02 +08:00
parent 94e55d9ac2
commit e33e70a968
2 changed files with 5 additions and 3 deletions

View File

@@ -80,7 +80,7 @@
<div class="two-col mb-20" data-role="analysis-skeleton">
<div class="card">
<h3 class="mt-0">趋势</h3>
<div class="muted">近7天平台订单按天</div>
<div class="muted">近7天平台订单(按天)</div>
@php
$trendRows = (array) ($platformOrderTrend7d ?? []);
@@ -160,7 +160,7 @@
}
@endphp
<div class="muted">按已付金额统计</div>
<div class="muted">近7天按已付金额统计</div>
@php
// 用于前端渐进增强渲染迷你排行JS 读取 data-points
@@ -370,6 +370,8 @@
<a class="muted" href="{!! $plansIndexUrl !!}">查看套餐</a>
</div>
<div class="muted">近7天按订单数统计</div>
@php
$shareRows = (array) ($planOrderShare ?? []);
$totalOrders = 0;

View File

@@ -80,7 +80,7 @@ class AdminDashboardPlatformOrderTrend7dShouldRenderTest extends TestCase
$res->assertSee('data-role="platform-order-trend-7d"', false);
$res->assertSee('data-role="platform-order-trend-7d-chart"', false);
$res->assertSee('data-role="platform-order-trend-7d-meta"', false);
$res->assertSee('近7天平台订单按天');
$res->assertSee('近7天平台订单(按天)');
// 断言日期行出现(只验证两个代表点)
$res->assertSee($d3, false);