diff --git a/resources/views/admin/dashboard.blade.php b/resources/views/admin/dashboard.blade.php index aa4eb59..aed2809 100644 --- a/resources/views/admin/dashboard.blade.php +++ b/resources/views/admin/dashboard.blade.php @@ -110,16 +110,17 @@ -
+
-

趋势(占位)

-
对齐 Ant Design Pro Analysis:这里后续接入「平台订单金额/单量趋势、订阅新增趋势」。
-
当前先保留结构位,后续逐步替换为真实聚合数据与可视化(无构建链:优先轻量 JS)。
+

最近平台订单(占位)

+
后续接入:最近 N 笔平台订单列表(订单号/站点/套餐/金额/状态/同步状态)。
+
说明:先保证“看板位”稳定,避免后续接数据时反复改版。
+
-

排行(占位)

-
对齐 Ant Design Pro Analysis:这里后续接入「站点续费排行、套餐销量排行、待治理任务排行」。
-
当前先保留结构位,后续补表格/列表组件与“查看全部”入口。
+

占比(占位)

+
后续接入:套餐销量占比 / 渠道占比 / 支付方式占比(支持时间范围切换)。
+
说明:后续会补占比卡的 legend 与颜色体系(对齐 AntD Pro)。
@endsection diff --git a/tests/Feature/AdminDashboardShouldHaveAnalysisLayoutSkeletonTest.php b/tests/Feature/AdminDashboardShouldHaveAnalysisLayoutSkeletonTest.php index fe034d3..724f1d4 100644 --- a/tests/Feature/AdminDashboardShouldHaveAnalysisLayoutSkeletonTest.php +++ b/tests/Feature/AdminDashboardShouldHaveAnalysisLayoutSkeletonTest.php @@ -33,9 +33,15 @@ class AdminDashboardShouldHaveAnalysisLayoutSkeletonTest extends TestCase $this->assertStringContainsString('class="page-header', $html); $this->assertStringContainsString('class="kpi-grid', $html); - // Analysis 版式占位:趋势 + 排行(后续再接真实聚合数据) + // Analysis 版式占位: + // - 第一行:趋势 + 排行 $this->assertStringContainsString('data-role="analysis-skeleton"', $html); $this->assertStringContainsString('趋势', $html); $this->assertStringContainsString('排行', $html); + + // - 第二行:最近订单 + 占比(占位) + $this->assertStringContainsString('data-role="analysis-skeleton-row2"', $html); + $this->assertStringContainsString('最近平台订单', $html); + $this->assertStringContainsString('占比', $html); } }