From 6c8d78d981c8fec890a0b3f30bf63fbdd5dea618 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Sat, 14 Mar 2026 02:01:19 +0000 Subject: [PATCH] =?UTF-8?q?chore(css):=20=E6=B2=BB=E7=90=86=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E5=9D=97=E8=84=9A=E6=B3=A8=E6=A0=B7=E5=BC=8F=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=8C=96=20+=20=E6=8A=A4=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/css/admin-components.css | 7 ++++ .../admin/platform_orders/index.blade.php | 4 +-- ...nanceBlockFootnoteUsesCssComponentTest.php | 32 +++++++++++++++++++ 3 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 tests/Feature/AdminGovernanceBlockFootnoteUsesCssComponentTest.php diff --git a/public/css/admin-components.css b/public/css/admin-components.css index bf3f234..52d6f56 100644 --- a/public/css/admin-components.css +++ b/public/css/admin-components.css @@ -45,3 +45,10 @@ font-size:12px; line-height:1.5; } + +/* 可复用:治理提示块内的说明/脚注文本 */ +.governance-block-footnote{ + margin-top:6px; + font-size:12px; + line-height:1.5; +} diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 40bf2f1..2ded344 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -358,8 +358,8 @@
  • 最后处理 可同步:确认无对账/退款异常、无同步失败原因后,再批量同步订阅。
  • -
    说明:本页“批量同步/批量生效/清理失败标记”等工具动作会透传当前筛选条件;建议先缩小到明确集合再操作。
    -
    提示:如果你是从其它页面(例如订阅详情/套餐页)通过 back 进入本页,建议优先用上方「← 返回上一页(保留上下文)」回到来源页,再继续操作。
    +
    说明:本页“批量同步/批量生效/清理失败标记”等工具动作会透传当前筛选条件;建议先缩小到明确集合再操作。
    +
    提示:如果你是从其它页面(例如订阅详情/套餐页)通过 back 进入本页,建议优先用上方「← 返回上一页(保留上下文)」回到来源页,再继续操作。
    diff --git a/tests/Feature/AdminGovernanceBlockFootnoteUsesCssComponentTest.php b/tests/Feature/AdminGovernanceBlockFootnoteUsesCssComponentTest.php new file mode 100644 index 0000000..3005ccd --- /dev/null +++ b/tests/Feature/AdminGovernanceBlockFootnoteUsesCssComponentTest.php @@ -0,0 +1,32 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_platform_order_index_sop_footnote_should_use_governance_block_footnote_class(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + // SOP 卡的两条说明应使用治理提示块的脚注样式类,避免 inline/散落工具类扩散 + $res->assertSee('governance-block-footnote', false); + } +}