From 605371ca63aeb25f129ae9c3f7908099030c369f Mon Sep 17 00:00:00 2001 From: pushuo <229102104@qq.com> Date: Tue, 20 Sep 2022 17:45:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20ui?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/views/pages/products/index.blade.php | 2 +- resources/beike/shop/default/css/cart.scss | 5 ----- resources/beike/shop/default/css/header.scss | 13 ++++++++++++- themes/default/account/account.blade.php | 2 +- themes/default/account/order.blade.php | 2 +- themes/default/account/order_info.blade.php | 2 +- themes/default/account/wishlist.blade.php | 2 +- themes/default/cart/cart.blade.php | 4 ++-- themes/default/cart/mini.blade.php | 4 ++-- 9 files changed, 21 insertions(+), 15 deletions(-) diff --git a/resources/beike/admin/views/pages/products/index.blade.php b/resources/beike/admin/views/pages/products/index.blade.php index 268ae54c..7071d07a 100644 --- a/resources/beike/admin/views/pages/products/index.blade.php +++ b/resources/beike/admin/views/pages/products/index.blade.php @@ -118,7 +118,7 @@ @{{ item.id }} -
+
@{{ stringLengthInte(item.name, 90) }} diff --git a/resources/beike/shop/default/css/cart.scss b/resources/beike/shop/default/css/cart.scss index b9ee67f8..882b73cf 100644 --- a/resources/beike/shop/default/css/cart.scss +++ b/resources/beike/shop/default/css/cart.scss @@ -40,11 +40,6 @@ body.page-cart { input { flex: 0 0 1; } - - img { - max-width: 80px; - margin-left: 14px; - } } } } diff --git a/resources/beike/shop/default/css/header.scss b/resources/beike/shop/default/css/header.scss index 4964c99e..27266917 100644 --- a/resources/beike/shop/default/css/header.scss +++ b/resources/beike/shop/default/css/header.scss @@ -261,7 +261,10 @@ header { border-top: 1px solid #eee; .left { - width: 90px; + width: 80px; + flex: 0 0 80px; + height: 80px; + border: 1px solid #eee; margin-right: 10px; img { @@ -270,6 +273,14 @@ header { } .right { + .name { + overflow: hidden; + text-overflow:ellipsis; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; + } + .offcanvas-products-delete { cursor: pointer; color: #999; diff --git a/themes/default/account/account.blade.php b/themes/default/account/account.blade.php index 4b47625c..d2ccf307 100644 --- a/themes/default/account/account.blade.php +++ b/themes/default/account/account.blade.php @@ -67,7 +67,7 @@ @foreach ($latest_orders as $order) -
+
diff --git a/themes/default/account/order.blade.php b/themes/default/account/order.blade.php index b8abe4a1..22ccbcd1 100644 --- a/themes/default/account/order.blade.php +++ b/themes/default/account/order.blade.php @@ -43,7 +43,7 @@
-
+
{{ $product->name }} diff --git a/themes/default/account/order_info.blade.php b/themes/default/account/order_info.blade.php index 0ffc3588..73b0fa71 100644 --- a/themes/default/account/order_info.blade.php +++ b/themes/default/account/order_info.blade.php @@ -59,7 +59,7 @@ @foreach ($order->orderProducts as $product)
-
+
{{ $product->name }} diff --git a/themes/default/account/wishlist.blade.php b/themes/default/account/wishlist.blade.php index e2052c1b..de8c7207 100644 --- a/themes/default/account/wishlist.blade.php +++ b/themes/default/account/wishlist.blade.php @@ -29,7 +29,7 @@ @foreach ($wishlist as $item) -
+
{{ $item['product_name'] }} {{ $item['price'] }} diff --git a/themes/default/cart/cart.blade.php b/themes/default/cart/cart.blade.php index 4b64bdff..daa7b582 100644 --- a/themes/default/cart/cart.blade.php +++ b/themes/default/cart/cart.blade.php @@ -36,7 +36,7 @@ {{ __('shop/carts.index') }} {{ __('shop/carts.commodity') }} {{ __('shop/carts.subtotal') }} - {{ __('common.action') }} + {{ __('common.action') }} @@ -44,7 +44,7 @@
- +
diff --git a/themes/default/cart/mini.blade.php b/themes/default/cart/mini.blade.php index b2332a62..ed200c6b 100644 --- a/themes/default/cart/mini.blade.php +++ b/themes/default/cart/mini.blade.php @@ -7,9 +7,9 @@
@foreach ($carts as $cart)
-
+
-
{{ $cart['name'] }}
+ {{ $cart['name'] }}
{{ $cart['price_format'] }} x {{ $cart['quantity'] }}