From e7cd9c5e450901b51010a558e7f4554cda719f59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Sat, 14 Mar 2026 07:47:58 +0000 Subject: [PATCH] chore(admin-ui): remove inline styles from platform order show and add layout helpers --- public/css/admin-base.css | 9 +++++++++ .../admin/platform_orders/show.blade.php | 20 +++++++++---------- 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/public/css/admin-base.css b/public/css/admin-base.css index 4cde11f..77b717f 100644 --- a/public/css/admin-base.css +++ b/public/css/admin-base.css @@ -162,6 +162,8 @@ button.btn-sm{ textarea.w-full,input.w-full{width:100%;} +.pre-wrap{white-space:pre-wrap;} + .w-100{width:100px;} .w-120{width:120px;} .w-140{width:140px;} @@ -200,7 +202,14 @@ input.w-90{width:90px;} .actions-spread{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap;} .inline-links,.card-link-list{display:flex;gap:8px;flex-wrap:wrap;} +/* Layout helpers */ +.flex-between{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;} +.items-center{align-items:center;} + .gap-12{gap:12px;} +.gap-10{gap:10px;} + +.flex-between{display:flex;align-items:center;justify-content:space-between;} .focus-box,.nav-box,.profile-box{padding:12px;border:1px solid #334155;border-radius:8px;} .summary-box,.stat-box,.status-card,.status-link{padding:12px;border:1px solid #334155;border-radius:8px;} diff --git a/resources/views/admin/platform_orders/show.blade.php b/resources/views/admin/platform_orders/show.blade.php index 66ec359..0140f35 100644 --- a/resources/views/admin/platform_orders/show.blade.php +++ b/resources/views/admin/platform_orders/show.blade.php @@ -387,8 +387,8 @@
-
-

支付回执(对账留痕)

+
+

支付回执(对账留痕)

@php $makeExportLedgerUrl = function (array $query = []) use ($order) { // download 必须显式为 1(导出安全阀),且为了测试/口径稳定,固定放在 query 的第一位 @@ -397,7 +397,7 @@ return '/admin/platform-orders/' . $order->id . '/export-ledger?' . \Illuminate\Support\Arr::query($query); }; @endphp -
+ @@ -592,11 +592,11 @@ - - - - - + + + + + @@ -663,10 +663,10 @@

原始 meta(JSON)

-
{{ json_encode($order->meta, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) }}
+
{{ json_encode($order->meta, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) }}
-
+
@php $back = (string) request()->query('back', ''); // back 安全校验:只接受相对路径,且拒绝引号/尖括号,并拒绝 nested back,避免潜在 XSS/URL 膨胀。
动作范围时间管理员快照动作范围时间管理员快照 备注