平台订单列表:回执数/退款数跳详情携带 back+锚点

This commit is contained in:
萝卜
2026-03-13 19:49:03 +00:00
parent 87ccbf1c74
commit 3c185fa392
2 changed files with 96 additions and 2 deletions

View File

@@ -956,7 +956,10 @@
$receiptCount = $receiptSummaryCount !== null ? (int) $receiptSummaryCount : count($receipts);
@endphp
@if($receiptCount > 0)
<a href="/admin/platform-orders/{{ $order->id }}" class="muted">{{ $receiptCount }}</a>
@php
$receiptCountShowUrl = '/admin/platform-orders/' . $order->id . '?' . \Illuminate\Support\Arr::query(['back' => $selfWithoutBack]) . '#payment-receipts';
@endphp
<a href="{!! $receiptCountShowUrl !!}" class="muted">{{ $receiptCount }}</a>
@else
<span class="muted">0</span>
@endif
@@ -968,7 +971,10 @@
$refundCount = $refundSummaryCount !== null ? (int) $refundSummaryCount : count($refunds);
@endphp
@if($refundCount > 0)
<a href="/admin/platform-orders/{{ $order->id }}" class="muted">{{ $refundCount }}</a>
@php
$refundCountShowUrl = '/admin/platform-orders/' . $order->id . '?' . \Illuminate\Support\Arr::query(['back' => $selfWithoutBack]) . '#refund-receipts';
@endphp
<a href="{!! $refundCountShowUrl !!}" class="muted">{{ $refundCount }}</a>
@else
<span class="muted">0</span>
@endif