Fix product discount problem

This commit is contained in:
marzban-dev
2025-12-25 22:24:12 +03:30
parent 9a046f1eba
commit b223fd374b
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -47,9 +47,10 @@ withDefaults(defineProps<Props>(), {
:title="product.name"
:picture="product.image ?? product.variants[0].images[0].image"
:colors="product.colors"
:price="product.variants[0].price"
:price="product.variants[0].price_after_discount ?? product.variants[0].price"
:rate="product.rating"
:dark-layer="true"
:tag="`${product.variants[0].discount}% تخفیف`"
/>
</li>
</ul>
+1 -1
View File
@@ -1,5 +1,5 @@
<template>
<div class="text-white flex items-center justify-center rounded-full px-4 py-2 bg-danger-600 typo-sub-h-sm">
<div class="text-white flex items-center justify-center rounded-full px-3 lg:px-4 py-2 bg-danger-600 typo-sub-h-xs lg:typo-sub-h-sm">
<slot />
</div>
</template>