wip
This commit is contained in:
parent
dc4a11f43c
commit
82a60b71df
|
|
@ -13,7 +13,6 @@ class CartController extends Controller
|
|||
$data = [
|
||||
'carts' => CartService::list(current_customer())
|
||||
];
|
||||
dump($data);
|
||||
return view("cart", $data);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@for ($i = 0; $i < 5; $i++)
|
||||
@foreach ($carts as $cart)
|
||||
<tr>
|
||||
<td>
|
||||
<div class="d-flex align-items-center p-image">
|
||||
|
|
@ -55,7 +55,7 @@
|
|||
<button type="button" class="btn btn-link btn-sm">加入收藏</button>
|
||||
</td>
|
||||
</tr>
|
||||
@endfor
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="{{ shop_route('pages.show', 'cart') }}" class="nav-link"><i class="iconfont"></i></a>
|
||||
<a href="{{ shop_route('carts.index') }}" class="nav-link"><i class="iconfont"></i></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue