Some Bug Fixed In Top Nav And Mobile Header
This commit is contained in:
parent
0f0e49e765
commit
8b7515254a
File diff suppressed because one or more lines are too long
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"/js/velocity.js": "/js/velocity.js?id=aa1955fd254968f187bf",
|
||||
"/js/velocity.js": "/js/velocity.js?id=2872721aea8bca68a99d",
|
||||
"/css/velocity-admin.css": "/css/velocity-admin.css?id=4322502d80a0e4a0affd",
|
||||
"/css/velocity.css": "/css/velocity.css?id=29a0849a44b50cc36048"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -311,7 +311,7 @@
|
|||
<i class="material-icons text-down-3">shopping_cart</i>
|
||||
|
||||
<div class="badge-wrapper">
|
||||
<span class="badge" v-text="cartItemsCount"></span>
|
||||
<span class="badge" v-text="updatedCartItemsCount"></span>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
|
|
@ -347,7 +347,8 @@ export default {
|
|||
subCategory: null,
|
||||
isSearchbar: false,
|
||||
rootCategories: true,
|
||||
rootCategoriesCollection: this.$root.sharedRootCategories
|
||||
rootCategoriesCollection: this.$root.sharedRootCategories,
|
||||
updatedCartItemsCount: this.cartItemsCount
|
||||
};
|
||||
},
|
||||
|
||||
|
|
@ -450,7 +451,7 @@ export default {
|
|||
.get(`${this.$root.baseUrl}/mini-cart`)
|
||||
.then(response => {
|
||||
if (response.data.status) {
|
||||
this.cartItemsCount =
|
||||
this.updatedCartItemsCount =
|
||||
response.data.mini_cart.cart_items.length;
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<div class="dropdown">
|
||||
<div id="account">
|
||||
<div class="d-inline-block welcome-content" @click="togglePopup">
|
||||
<div class="d-inline-block welcome-content toggle-popup">
|
||||
<i class="material-icons align-vertical-top">perm_identity</i>
|
||||
|
||||
<span class="text-center">
|
||||
|
|
@ -25,8 +25,8 @@
|
|||
<div class="modal-header no-border pb0">
|
||||
<label class="fs18 grey">{{ __('shop::app.header.title') }}</label>
|
||||
|
||||
<button type="button" class="close disable-box-shadow" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true" class="white-text fs20" @click="togglePopup">×</span>
|
||||
<button type="button" class="close disable-box-shadow toggle-popup" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true" class="white-text fs20">×</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
|
|
@ -107,6 +107,12 @@
|
|||
|
||||
@push('scripts')
|
||||
<script>
|
||||
$(document).ready(() => {
|
||||
$('.toggle-popup').on('click', (e) => {
|
||||
togglePopup(e);
|
||||
});
|
||||
});
|
||||
|
||||
function togglePopup(event) {
|
||||
let accountModal = $('#account-modal');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue