calculator and other cleaning

This commit is contained in:
2025-07-04 22:39:51 +02:00
parent a2db817133
commit 0bab1d83a1
19 changed files with 420 additions and 93 deletions

View File

@ -2,9 +2,9 @@
<div ref="dropdownRef">
<div class="relative cursor-pointer" @click="openCart = !openCart">
<i class="uil uil-shopping-cart text-[31px]"></i>
<div v-if="checkoutStore.products && checkoutStore.products.length > 0"
<div v-if="checkoutStore.totalNumberOfProducts"
class="w-[15px] h-[15px] rounded-full bg-accent-green-light dark:bg-accent-green-light text-white flex items-center justify-center text-[9px] absolute top-1 right-0">
{{ checkoutStore.products.length }}
{{ checkoutStore.totalNumberOfProducts }}
</div>
</div>
<div v-if="openCart"
@ -69,10 +69,10 @@
</div>
<UiButtonArrow class="w-full" type="fill" :arrow="true" :full="true" @click="() => {
if (userStore.isLogged) {
menuStore.navigateToItem(menuStore.menuItems?.find((item) => item.id === 12))
menuStore.navigateToItem(menuStore.menuItems?.find((item: any) => item.id === 12))
}
else {
menuStore.navigateToItem(menuStore.menuItems?.find((item) => item.id === 11))
menuStore.navigateToItem(menuStore.menuItems?.find((item: any) => item.id === 11))
}
openCart = false
}">