From e33e70a96800a53e83638bc6df27d8e96d5eff18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Mon, 16 Mar 2026 11:01:02 +0800 Subject: [PATCH] refactor(admin-dashboard): unify mini chart subtitles --- resources/views/admin/dashboard.blade.php | 6 ++++-- .../AdminDashboardPlatformOrderTrend7dShouldRenderTest.php | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/resources/views/admin/dashboard.blade.php b/resources/views/admin/dashboard.blade.php index f2bfe17..69696b5 100644 --- a/resources/views/admin/dashboard.blade.php +++ b/resources/views/admin/dashboard.blade.php @@ -80,7 +80,7 @@

趋势

-
近7天平台订单(按天)
+
近7天|平台订单(按天)
@php $trendRows = (array) ($platformOrderTrend7d ?? []); @@ -160,7 +160,7 @@ } @endphp -
按已付金额统计
+
近7天|按已付金额统计
@php // 用于前端渐进增强渲染迷你排行(JS 读取 data-points) @@ -370,6 +370,8 @@ 查看套餐
+
近7天|按订单数统计
+ @php $shareRows = (array) ($planOrderShare ?? []); $totalOrders = 0; diff --git a/tests/Feature/AdminDashboardPlatformOrderTrend7dShouldRenderTest.php b/tests/Feature/AdminDashboardPlatformOrderTrend7dShouldRenderTest.php index ba20d48..83a2b30 100644 --- a/tests/Feature/AdminDashboardPlatformOrderTrend7dShouldRenderTest.php +++ b/tests/Feature/AdminDashboardPlatformOrderTrend7dShouldRenderTest.php @@ -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);