@@ -114,9 +132,7 @@ watch(() => selectedVariant.value!, (newValue) => {
>
{{ selectedVariant!.price }}
-
+
{{ selectedVariant!.discount > 0 ? selectedVariant!.price : selectedVariant!.price }}
@@ -124,37 +140,42 @@ watch(() => selectedVariant.value!, (newValue) => {
v-if="selectedVariant!.discount > 0"
class="text-white bg-blue-500 mb-1 px-4 py-2 text-xs rounded-full flex items-center gap-1"
>
-
+
{{ selectedVariant!.discount }}
درصد
تخفیف