feat: fix user boughts
This commit is contained in:
@@ -17,7 +17,7 @@ const formattedDate = computed(() => {
|
||||
})
|
||||
|
||||
const discountPrice = computed(() => {
|
||||
return (props.article.price * props.article.discount / 100).toFixed(2)
|
||||
return (props.article.price * props.article.discount / (100 * 100)).toFixed(2)
|
||||
})
|
||||
|
||||
const showArticle = (article) => {
|
||||
@@ -68,7 +68,7 @@ const showArticle = (article) => {
|
||||
</span>
|
||||
<template v-else>
|
||||
<span v-if="article.discount < 100" class="text-xs line-through text-gray-500">
|
||||
¥{{ article.price }}
|
||||
¥{{ (article.price / 100).toFixed(2) }}
|
||||
</span>
|
||||
<span class="text-xl text-orange-600">¥{{ discountPrice }}</span>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user