From cd9bf2dbc484d2bff6dde3340f7d73607c2c8fce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Mon, 16 Mar 2026 01:26:16 +0800 Subject: [PATCH] chore(admin-ui): apply list-card component to platform orders index --- .../admin/platform_orders/index.blade.php | 14 +++++--- ...ersIndexShouldUseListCardStructureTest.php | 35 +++++++++++++++++++ 2 files changed, 44 insertions(+), 5 deletions(-) create mode 100644 tests/Feature/AdminPlatformOrdersIndexShouldUseListCardStructureTest.php diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index e84be11..f099615 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -1060,9 +1060,11 @@ -
-
-

平台订单列表

+
+
+
+

平台订单列表

+
@php // 新建平台订单:默认携带 back 回到本页自身(剔除 back query,避免嵌套) // 同时:若当前列表已筛选站点/套餐/订阅ID,则预填到创建页,提高运营下单效率 @@ -1099,8 +1101,9 @@ 新建平台订单
-
- +
+
+
@@ -1546,6 +1549,7 @@ @endforelse
ID
+
diff --git a/tests/Feature/AdminPlatformOrdersIndexShouldUseListCardStructureTest.php b/tests/Feature/AdminPlatformOrdersIndexShouldUseListCardStructureTest.php new file mode 100644 index 0000000..c4b21f9 --- /dev/null +++ b/tests/Feature/AdminPlatformOrdersIndexShouldUseListCardStructureTest.php @@ -0,0 +1,35 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_admin_platform_orders_index_should_use_list_card_structure(): void + { + $this->loginAsPlatformAdmin(); + + $response = $this->get('/admin/platform-orders'); + $response->assertOk(); + + // 护栏:平台订单列表区域应使用统一 List Card 结构,便于全站列表页风格统一。 + $response->assertSee('list-card', false); + $response->assertSee('list-card-header', false); + $response->assertSee('list-card-body', false); + $response->assertSee('list-card-table', false); + } +}