From 82a60b71dfcf97943bed97e5ead5c04354188d44 Mon Sep 17 00:00:00 2001 From: pushuo <229102104@qq.com> Date: Tue, 28 Jun 2022 17:29:05 +0800 Subject: [PATCH] wip --- .../Shop/Http/Controllers/CartController.php | 1 - themes/default/cart.blade.php | 44 +++++++++---------- themes/default/layout/header.blade.php | 2 +- 3 files changed, 23 insertions(+), 24 deletions(-) diff --git a/beike/Shop/Http/Controllers/CartController.php b/beike/Shop/Http/Controllers/CartController.php index 412ce6e5..e6c1b092 100644 --- a/beike/Shop/Http/Controllers/CartController.php +++ b/beike/Shop/Http/Controllers/CartController.php @@ -13,7 +13,6 @@ class CartController extends Controller $data = [ 'carts' => CartService::list(current_customer()) ]; - dump($data); return view("cart", $data); } diff --git a/themes/default/cart.blade.php b/themes/default/cart.blade.php index b9a559cc..46a987d0 100644 --- a/themes/default/cart.blade.php +++ b/themes/default/cart.blade.php @@ -34,28 +34,28 @@ - @for ($i = 0; $i < 5; $i++) - - -
- - -
- - -
Camera Canon EOS M50 Kit
-
$1156.00
- - - @include('shared.quantity', ['quantity'=>'2']) - - $1156.00 - -
- - - - @endfor + @foreach ($carts as $cart) + + +
+ + +
+ + +
Camera Canon EOS M50 Kit
+
$1156.00
+ + + @include('shared.quantity', ['quantity'=>'2']) + + $1156.00 + +
+ + + + @endforeach diff --git a/themes/default/layout/header.blade.php b/themes/default/layout/header.blade.php index 8fbd0cae..ff9b7229 100644 --- a/themes/default/layout/header.blade.php +++ b/themes/default/layout/header.blade.php @@ -72,7 +72,7 @@