|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div :class="`we-price ${theme}`">
|
|
|
|
|
<div v-if="original_price && original_price != 0" class="discount">
|
|
|
|
|
<div class="number-original En Bold" > {{ Intl.NumberFormat().format(original_price) }} </div>
|
|
|
|
|
<div class="number-original En Bold" > {{ Intl.NumberFormat().format(Number(original_price)) }} </div>
|
|
|
|
|
<div class="percent En Bold"> 12 <v-icon color="white"> WMi-percentage</v-icon> </div>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-if="(price != 0 || !zeroLabel)" class="number En Bold"> {{ Intl.NumberFormat().format(price) }} </div>
|
|
|
|
@ -14,7 +14,7 @@
|
|
|
|
|
export default {
|
|
|
|
|
props: {
|
|
|
|
|
theme: { default: '' },
|
|
|
|
|
original_price: String,
|
|
|
|
|
original_price: { default: 0 },
|
|
|
|
|
price: { default: 1000 },
|
|
|
|
|
label: { default: 'تومان' },
|
|
|
|
|
zeroLabel: String,
|
|
|
|
|