platform-fee-info.vue 1.41 KB
<template>
  <div class="platform-fee-info-wrapper">
    <div class="price-info">
      <p class="price-item">
        <span>{{ platformFeeInfo.appraiseFeeDesc }}</span>
        <span>{{ platformFeeInfo.appraiseFee }}</span>
      </p>
      <p class="price-item">
        <span>{{ platformFeeInfo.packageFeeDesc }}</span>
        <span>{{ platformFeeInfo.packageFee }}</span>
      </p>
      <p class="price-item">
        <span
          >{{ platformFeeInfo.serviceFeeDesc }}&nbsp;&nbsp;({{
            platformFeeInfo.payChannelPercentage
          }})</span
        >
        <span>{{ platformFeeInfo.serviceFee }}</span>
      </p>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    platformFeeInfo: {
      type: Object,
      default: function() {
        return {};
      }
    }
  }
};
</script>

<style lang="scss" scoped>
.platform-fee-info-wrapper {
  display: flex;
  padding: 0 40px;
  color: #000;

  .confrim-info {
    font-size: 28px;
    text-align: center;
    flex: 1;

    span {
      color: #d0021b;
    }

    & > :first-child,
    & > :last-child {
      color: #000;
      padding-left: 10px;
    }

    // p {
    //   display: inline-block;
    //   text-align: left;
    //   max-width: 100%;
    // }
  }

  .price-info {
    flex: 1;

    .price-item {
      display: flex;
      justify-content: space-between;

      .penalty {
        color: #d0021b;
      }
    }
  }
}
</style>