This commit is contained in:
Parsa Nazer
2026-01-28 23:01:04 +03:30
2 changed files with 17 additions and 8 deletions
@@ -313,21 +313,28 @@ watch(
<div
class="flex items-center gap-4"
v-if="selectedVariant!.cart_quantity === 0"
>
<NuxtLink
v-if="selectedVariant?.special_discount_amount"
:to="token ? selectedVariant.special_discount_link : ''"
class="w-full"
>
<Button
variant="secondary"
class="w-full rounded-full h-full max-sm:h-[48px]"
end-icon="bi:percent"
>
۱۰۰ تومان تخفیف بگیر
{{ selectedVariant?.special_discount_amount }}
تخفیف بگیر
</Button>
<Button
</NuxtLink>
<!-- <Button
variant="secondary"
class="w-full rounded-full h-full max-sm:h-[48px]"
end-icon="bi:person-check"
>
پورسانت بگیر
</Button>
</Button> -->
</div>
<InfoCard />
+2
View File
@@ -90,6 +90,8 @@ declare global {
color: string;
video: string | null;
cart_quantity: number;
special_discount_amount: string | null;
special_discount_link: string;
};
type Product = {