Merge branch 'main' of https://github.com/Byeto-Company/hossein_por_shop
This commit is contained in:
@@ -314,20 +314,27 @@ watch(
|
|||||||
class="flex items-center gap-4"
|
class="flex items-center gap-4"
|
||||||
v-if="selectedVariant!.cart_quantity === 0"
|
v-if="selectedVariant!.cart_quantity === 0"
|
||||||
>
|
>
|
||||||
<Button
|
<NuxtLink
|
||||||
variant="secondary"
|
v-if="selectedVariant?.special_discount_amount"
|
||||||
class="w-full rounded-full h-full max-sm:h-[48px]"
|
:to="token ? selectedVariant.special_discount_link : ''"
|
||||||
end-icon="bi:percent"
|
class="w-full"
|
||||||
>
|
>
|
||||||
۱۰۰ تومان تخفیف بگیر
|
<Button
|
||||||
</Button>
|
variant="secondary"
|
||||||
<Button
|
class="w-full rounded-full h-full max-sm:h-[48px]"
|
||||||
|
end-icon="bi:percent"
|
||||||
|
>
|
||||||
|
{{ selectedVariant?.special_discount_amount }}
|
||||||
|
تخفیف بگیر
|
||||||
|
</Button>
|
||||||
|
</NuxtLink>
|
||||||
|
<!-- <Button
|
||||||
variant="secondary"
|
variant="secondary"
|
||||||
class="w-full rounded-full h-full max-sm:h-[48px]"
|
class="w-full rounded-full h-full max-sm:h-[48px]"
|
||||||
end-icon="bi:person-check"
|
end-icon="bi:person-check"
|
||||||
>
|
>
|
||||||
پورسانت بگیر
|
پورسانت بگیر
|
||||||
</Button>
|
</Button> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<InfoCard />
|
<InfoCard />
|
||||||
|
|||||||
Vendored
+2
@@ -90,6 +90,8 @@ declare global {
|
|||||||
color: string;
|
color: string;
|
||||||
video: string | null;
|
video: string | null;
|
||||||
cart_quantity: number;
|
cart_quantity: number;
|
||||||
|
special_discount_amount: string | null;
|
||||||
|
special_discount_link: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
type Product = {
|
type Product = {
|
||||||
|
|||||||
Reference in New Issue
Block a user