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 锚点应只出现一次,避免页面内锚点冲突。'); + } +}