admin: dashboard scanline bmpa success links to success list

This commit is contained in:
萝卜
2026-03-18 05:41:06 +08:00
parent d5f54f3e76
commit 8e77a18e5c
2 changed files with 82 additions and 0 deletions

View File

@@ -858,6 +858,12 @@
$scanGoRefundUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $po->id, $selfWithoutBack, 'add-refund-receipt');
$scanGoSyncFailedUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $po->id, $selfWithoutBack, 'sync-failed');
$scanGoBmpaFailedUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $po->id, $selfWithoutBack, 'bmpa-failed');
$bmpaSuccessListUrl = $platformOrdersQuickLinks['bmpa_success'] ?? '';
$scanGoBmpaSuccessUrl = $bmpaSuccessListUrl !== ''
? $bmpaSuccessListUrl
: \App\Support\BackUrl::withBack('/admin/platform-orders?' . \Illuminate\Support\Arr::query([
'bmpa_success_only' => '1',
]), $selfWithoutBack);
$scanGoRelationUrl = \App\Support\BackUrl::withBackAndFragment('/admin/platform-orders/' . $po->id, $selfWithoutBack, 'relation-subscription');
// 运营扫描用的“治理状态摘要”(不替代下方的治理提示入口,只用于快速判断)
@@ -972,6 +978,8 @@
BMPA
@if($bmpaStatusText === '失败')
<a class="link" href="{!! $scanGoBmpaFailedUrl !!}"><strong>{{ $bmpaStatusText }}</strong></a>
@elseif($bmpaStatusText === '成功' && $scanGoBmpaSuccessUrl !== '')
<a class="link" href="{!! $scanGoBmpaSuccessUrl !!}"><strong>{{ $bmpaStatusText }}</strong></a>
@else
<strong>{{ $bmpaStatusText }}</strong>
@endif