chore(admin-ui): remove inline styles from platform order show and add layout helpers
This commit is contained in:
@@ -387,8 +387,8 @@
|
||||
</div>
|
||||
|
||||
<div class="card mb-20" id="payment-receipts">
|
||||
<div class="flex-between" style="align-items:center;">
|
||||
<h3 style="margin:0;">支付回执(对账留痕)</h3>
|
||||
<div class="flex-between items-center">
|
||||
<h3 class="mb-0">支付回执(对账留痕)</h3>
|
||||
@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
|
||||
<div class="muted" style="display:flex; gap:10px;">
|
||||
<div class="muted inline-links">
|
||||
<a class="muted" href="{!! $makeExportLedgerUrl() !!}" target="_blank" rel="noopener">导出对账明细(CSV)</a>
|
||||
<a class="muted" href="{!! $makeExportLedgerUrl(['include_order_snapshot' => 1]) !!}" target="_blank" rel="noopener">导出含订单摘要(CSV)</a>
|
||||
</div>
|
||||
@@ -592,11 +592,11 @@
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:180px;">动作</th>
|
||||
<th style="width:120px;">范围</th>
|
||||
<th style="width:200px;">时间</th>
|
||||
<th style="width:100px;">管理员</th>
|
||||
<th style="width:180px;">快照</th>
|
||||
<th class="w-200">动作</th>
|
||||
<th class="w-120">范围</th>
|
||||
<th class="w-200">时间</th>
|
||||
<th class="w-120">管理员</th>
|
||||
<th class="w-200">快照</th>
|
||||
<th>备注</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -663,10 +663,10 @@
|
||||
|
||||
<div class="card">
|
||||
<h3>原始 meta(JSON)</h3>
|
||||
<pre style="white-space: pre-wrap;">{{ json_encode($order->meta, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) }}</pre>
|
||||
<pre class="pre-wrap">{{ json_encode($order->meta, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) }}</pre>
|
||||
</div>
|
||||
|
||||
<div class="mb-20" style="margin-top:16px;">
|
||||
<div class="mb-20 mt-16">
|
||||
@php
|
||||
$back = (string) request()->query('back', '');
|
||||
// back 安全校验:只接受相对路径,且拒绝引号/尖括号,并拒绝 nested back,避免潜在 XSS/URL 膨胀。
|
||||
|
||||
Reference in New Issue
Block a user