<template>
  <div class="sum-wrapper">
    <div class="sum-item">
      <span class="sum-label">价格</span>
      <span class="sum-value">¥{{ referencePrice }}</span>
    </div>
    <div class="sum-item">
      <span class="sum-label">折扣优惠</span>
      <span class="sum-discount">-¥{{ discount }}</span>
    </div>
  </div>
</template>

<script setup>
defineProps({
  referencePrice: {
    type: Number,
    default: 0,
  },
  discount: {
    type: Number,
    default: 0,
  },
});
</script>

<style scoped lang="scss">
@import "./styles/index.scss";
</style>
