Files
salvato.newfreeplanet/src/components/CPrice/CPrice.vue

26 lines
677 B
Vue
Raw Normal View History

2024-05-08 16:07:42 +02:00
<template>
<span class="a-price" data-a-size="l" data-a-color="base">
<span aria-hidden="true" v-if="!!real_price">
<span class="a-price-whole">{{ tools.getIntPart(real_price) }}</span>
<span class="a-price-decimal">,</span>
<span class="a-price-fraction">{{
tools.getDecPart2Digit(real_price)
}}</span>
<span class="a-price-symbol"></span>
</span>
</span>
<span v-if="!!sale_price && !bold" :class="sale_price ? 'prod_off_price' : ''"
>{{ price ? price.toFixed(2) : 0 }}
</span>
</template>
<script lang="ts" src="./CPrice.ts">
</script>
<style lang="scss" scoped>
@import './CPrice.scss';
</style>