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 += '
