diff --git a/beike/Services/CurrencyService.php b/beike/Services/CurrencyService.php index 54feb664..a74e4a30 100644 --- a/beike/Services/CurrencyService.php +++ b/beike/Services/CurrencyService.php @@ -1,4 +1,12 @@ + * @Date 2022-08-02 19:19:52 + * @LastEditTime 2022-08-06 12:52:21 + */ + /** * CurrencyService.php * diff --git a/public/build/beike/shop/default/js/app.js b/public/build/beike/shop/default/js/app.js index 0469a502..f19978a3 100644 --- a/public/build/beike/shop/default/js/app.js +++ b/public/build/beike/shop/default/js/app.js @@ -2054,98 +2054,118 @@ module.exports = { /***/ }), -/***/ "./resources/beike/shop/default/js/global.js": +/***/ "./resources/beike/shop/default/js/common.js": /*!***************************************************!*\ - !*** ./resources/beike/shop/default/js/global.js ***! + !*** ./resources/beike/shop/default/js/common.js ***! \***************************************************/ -/***/ (() => { +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { -// 创建 bk 对象 -window.bk = window.bk || {}; // 获取购物车数据 +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ }); +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ + /** + * @description: 获取购物车数据 + * @return {*} + */ + getCarts: function getCarts() { + $http.get('carts/mini', null, { + hload: true + }).then(function (res) { + $('.offcanvas-right-cart-amount').html(res.data.amount_format); -bk.getCarts = function () { - $http.get('carts/mini', null, { - hload: true - }).then(function (res) { - $('.offcanvas-right-cart-amount').html(res.data.amount_format); - - if (res.data.carts.length) { - $('.navbar-icon-link-badge').html(res.data.carts.length > 99 ? '99+' : res.data.carts.length).show(); - $('.offcanvas-right-cart-count').html(res.data.quantity); - var html = ''; - res.data.carts.forEach(function (e) { - html += '