From f69f295fd8da29cc06c57847d22eb321020528e9 Mon Sep 17 00:00:00 2001 From: pushuo <229102104@qq.com> Date: Wed, 6 Jul 2022 21:32:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=B3=E4=B8=8A=E8=A7=92=E8=B4=AD=E7=89=A9?= =?UTF-8?q?=E8=BD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/build/beike/shop/default/css/app.css | 9 ++++-- public/build/beike/shop/default/js/app.js | 31 +++++++++++++++++- resources/beike/shop/default/css/header.scss | 9 +++--- resources/beike/shop/default/js/app.js | 33 +++++++++++++++++++- themes/default/layout/header.blade.php | 12 ++++--- 5 files changed, 82 insertions(+), 12 deletions(-) diff --git a/public/build/beike/shop/default/css/app.css b/public/build/beike/shop/default/css/app.css index 6c20b694..3f2c1876 100644 --- a/public/build/beike/shop/default/css/app.css +++ b/public/build/beike/shop/default/css/app.css @@ -213,12 +213,17 @@ header .header-content .right-btn .nav-link i { border-top: 1px solid #eee; } #offcanvas-right-cart .offcanvas-right-products .product-list .left { - width: 100px; + width: 90px; margin-right: 10px; } #offcanvas-right-cart .offcanvas-right-products .product-list .left img { - max-height: 100px; + max-height: 90px; } +#offcanvas-right-cart .offcanvas-right-products .product-list .right .offcanvas-products-delete { + cursor: pointer; + color: #999; +} + footer { background: #fafafa; margin-top: 5rem; diff --git a/public/build/beike/shop/default/js/app.js b/public/build/beike/shop/default/js/app.js index 54128ff6..eb1d7288 100644 --- a/public/build/beike/shop/default/js/app.js +++ b/public/build/beike/shop/default/js/app.js @@ -2488,7 +2488,36 @@ $(document).ready(function ($) { layer.closeAll('loading'); } }); - $('.quantity-wrap .right i').on('click', function (event) { + $http.get('/carts/mini', null, { + hload: true + }).then(function (res) { + $('.offcanvas-right-cart-amount').html(res.data.amount_format); + + if (res.data.carts.length) { + var html = ''; + res.data.carts.forEach(function (e) { + html += '
