From 7bd33d0c856501d536ba617e824d41780fc1db99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 10:55:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B9=B3=E5=8F=B0=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E5=BF=AB=E6=8D=B7=E7=AD=9B=E9=80=89=E9=87=8D=E5=A4=8D?= =?UTF-8?q?=E9=94=9A=E7=82=B9=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/platform_orders/index.blade.php | 8 ++--- ...ShouldHaveSingleQuickFiltersAnchorTest.php | 33 +++++++++++++++++++ 2 files changed, 37 insertions(+), 4 deletions(-) create mode 100644 tests/Feature/AdminPlatformOrderIndexShouldHaveSingleQuickFiltersAnchorTest.php diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index dfa4bb0..3698d3c 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -311,7 +311,7 @@ @endif -
+

快捷筛选

@@ -1024,7 +1024,7 @@
-
+

工具

清除仅影响订单 meta 中的失败标记,不改变订单/订阅状态。
@@ -1197,7 +1197,7 @@ $toolGuards = $toolGuards ?? \App\Support\PlatformOrderToolsGuard::forIndex((array) ($filters ?? [])); @endphp -
+
当前工具区承载导出、批量治理与失败标记清理,请先缩小筛选范围再执行动作;也可使用上方快速定位导航直达目标工具组。
快速定位: @@ -1496,7 +1496,7 @@
-
+

平台订单列表

diff --git a/tests/Feature/AdminPlatformOrderIndexShouldHaveSingleQuickFiltersAnchorTest.php b/tests/Feature/AdminPlatformOrderIndexShouldHaveSingleQuickFiltersAnchorTest.php new file mode 100644 index 0000000..e7105e0 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderIndexShouldHaveSingleQuickFiltersAnchorTest.php @@ -0,0 +1,33 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_platform_orders_index_should_have_single_quick_filters_anchor(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $count = substr_count($html, 'id="po-quick-filters"'); + $this->assertSame(1, $count, 'po-quick-filters 锚点应只出现一次,避免页面内锚点冲突。'); + } +}