1405/03/20-fix bug in update cart

This commit is contained in:
2026-06-10 17:14:20 +03:30
parent bf34d0fba0
commit 511564be64
+8 -1
View File
@@ -79,7 +79,8 @@
</div> </div>
<!-- Total and Checkout --> <!-- Total and Checkout -->
<div class="fixed bottom-20 left-0 right-0 bg-white border-t border-gray-200 p-4 shadow-lg z-1"> <div class=" flex justify-center fixed bottom-20 left-0 right-0 z-1">
<div class="md:w-[426px] w-full bg-white border-t border-gray-200 p-4 shadow-lg">
<div class="flex justify-between items-center mb-4"> <div class="flex justify-between items-center mb-4">
<div class="text-lg font-semibold">مجموع:</div> <div class="text-lg font-semibold">مجموع:</div>
<div class="flex flex-col gap-2 "> <div class="flex flex-col gap-2 ">
@@ -110,6 +111,8 @@
تسویه حساب تسویه حساب
</BasicButton> </BasicButton>
</div> </div>
</div>
</div> </div>
</template> </template>
</div> </div>
@@ -423,6 +426,10 @@ onMounted(async () => {
try { try {
await initPrice() await initPrice()
await refreshCart() await refreshCart()
const refreshCartInfo=setInterval(async () => {
await refreshCart()
// await getUpPrice()
}, 10000)
} finally { } finally {
loading.value = false loading.value = false
} }