From 969399525cd79b34e3f8b0913591ec823d9c65d4 Mon Sep 17 00:00:00 2001 From: pushuo Date: Thu, 5 Jan 2023 16:24:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20checkout=20=E7=BB=93?= =?UTF-8?q?=E6=9E=84=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/views/pages/orders/form.blade.php | 10 + .../default/account/order_success.blade.php | 2 + themes/default/checkout.blade.php | 329 ++---------------- themes/default/checkout/_address.blade.php | 289 +++++++++++++++ 4 files changed, 322 insertions(+), 308 deletions(-) create mode 100644 themes/default/checkout/_address.blade.php diff --git a/resources/beike/admin/views/pages/orders/form.blade.php b/resources/beike/admin/views/pages/orders/form.blade.php index 645ab940..62382004 100644 --- a/resources/beike/admin/views/pages/orders/form.blade.php +++ b/resources/beike/admin/views/pages/orders/form.blade.php @@ -43,6 +43,16 @@ +
+ + + + + + + +
{{ __('common.email') }}:{{ $order->email }}
+
diff --git a/themes/default/account/order_success.blade.php b/themes/default/account/order_success.blade.php index 52dc561b..bc41b5f5 100644 --- a/themes/default/account/order_success.blade.php +++ b/themes/default/account/order_success.blade.php @@ -28,7 +28,9 @@ {{ __('shop/account.order.order_success.payment_method') }}:{{ $order['payment_method_name'] }} + @if (current_customer()) {{ __('shop/account.order.order_success.view_order') }} + @endif {{ __('shop/account.order.order_success.pay_now') }} diff --git a/themes/default/checkout.blade.php b/themes/default/checkout.blade.php index 52891335..d245bb1c 100644 --- a/themes/default/checkout.blade.php +++ b/themes/default/checkout.blade.php @@ -9,7 +9,7 @@ @endpush @section('content') -
+
@@ -21,154 +21,7 @@
-
-
-
-
-
{{ __('shop/checkout.address') }}
- {{ __('shop/checkout.same_as_shipping_address') }} - -
- -
-
-
- - -
-
-
- -
-
-
-
{{ __('shop/checkout.payment_address') }}
-
- -
-
-
- - -
-
-
-
+ @include('checkout._address')
{{ __('shop/checkout.payment_method') }}
@@ -177,7 +30,6 @@
- {{-- --}}
@@ -196,7 +48,6 @@ @foreach ($methods['quotes'] as $shipping)
- {{-- --}}
@@ -265,184 +116,46 @@
- -
@endsection @push('add-scripts') -@include('shared.address-form') @endpush diff --git a/themes/default/checkout/_address.blade.php b/themes/default/checkout/_address.blade.php new file mode 100644 index 00000000..95ed6c4d --- /dev/null +++ b/themes/default/checkout/_address.blade.php @@ -0,0 +1,289 @@ +
+
+
+
+
{{ __('shop/checkout.address') }}
+ {{ __('shop/checkout.same_as_shipping_address') }} + +
+ +
+
+
+ + +
+
+
+ +
+
+
+
{{ __('shop/checkout.payment_address') }}
+
+ +
+
+
+ + +
+
+
+ + +
+@push('add-scripts') +@include('shared.address-form') + +@endpush