From a7bc26740fe659af63008d044c143c7b62941f56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Mon, 16 Mar 2026 05:52:45 +0800 Subject: [PATCH] chore(admin-ui): orders show uses page header and list cards --- resources/views/admin/orders/show.blade.php | 131 ++++++++++++++------ 1 file changed, 91 insertions(+), 40 deletions(-) diff --git a/resources/views/admin/orders/show.blade.php b/resources/views/admin/orders/show.blade.php index 5e671ce..ed48e96 100644 --- a/resources/views/admin/orders/show.blade.php +++ b/resources/views/admin/orders/show.blade.php @@ -1,50 +1,101 @@ @extends('admin.layouts.app') -@section('title', '平台订单详情') -@section('page_title', '平台订单详情') +@section('title', '订单详情') +@section('page_title', '订单详情') @section('content') -
-

订单 {{ $order->order_no }}

- - - - - - - - - - - - - - - - -
ID{{ $order->id }}
商家{{ $order->merchant?->name ?? ('商家#'.$order->merchant_id) }}
平台{{ $order->platform }}
订单状态{{ $order->status }}
支付渠道{{ $order->payment_channel }}
支付状态{{ $order->payment_status }}
买家{{ $order->buyer_name }}
手机{{ $order->buyer_phone }}
邮箱{{ $order->buyer_email }}
商品金额¥{{ number_format($order->product_amount, 2) }}
优惠金额¥{{ number_format($order->discount_amount, 2) }}
运费¥{{ number_format($order->shipping_amount, 2) }}
应付金额¥{{ number_format($order->pay_amount, 2) }}
备注{{ $order->remark }}
创建时间{{ $order->created_at }}
+@php + $incomingBack = (string) request()->query('back', ''); + $safeBackForLinks = \App\Support\BackUrl::sanitizeForLinks($incomingBack); +@endphp + + -
-

订单明细

- - - - @forelse($order->items as $item) +
+
+
+

订单信息

+
+
+ +
+
ID商品SKU单价数量小计快照
+ + + + + + + + + + + + + + + + + +
ID{{ $order->id }}
商家{{ $order->merchant?->name ?? ('商家#'.$order->merchant_id) }}
平台{{ $order->platform }}
订单状态{{ $order->status }}
支付渠道{{ $order->payment_channel }}
支付状态{{ $order->payment_status }}
买家{{ $order->buyer_name }}
手机{{ $order->buyer_phone }}
邮箱{{ $order->buyer_email }}
商品金额¥{{ number_format((float) $order->product_amount, 2) }}
优惠金额¥{{ number_format((float) $order->discount_amount, 2) }}
运费¥{{ number_format((float) $order->shipping_amount, 2) }}
应付金额¥{{ number_format((float) $order->pay_amount, 2) }}
备注{{ $order->remark }}
创建时间{{ $order->created_at }}
+
+
+ +
+
+
+

订单明细

+
+
+ +
+ + - - - - - - - + + + + + + + - @empty - - @endforelse - -
{{ $item->id }}{{ $item->product_title }}{{ $item->product_sku }}¥{{ number_format($item->product_price, 2) }}{{ $item->quantity }}¥{{ number_format($item->line_total_amount, 2) }}{{ $item->snapshot['category'] ?? '-' }}ID商品SKU单价数量小计快照
暂无订单明细
-

返回订单列表

+ + + @forelse($order->items as $item) + + {{ $item->id }} + {{ $item->product_title }} + {{ $item->product_sku }} + ¥{{ number_format((float) $item->product_price, 2) }} + {{ $item->quantity }} + ¥{{ number_format((float) $item->line_total_amount, 2) }} + {{ $item->snapshot['category'] ?? '-' }} + + @empty + 暂无订单明细 + @endforelse + + +
@endsection