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

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

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