<template>
  <div class="dm-integral__item__wrap">
    <!-- {{ item.integralType }} -->
    <template v-if="item.integralType === 1">
      <span class="fz16">赠送积分<span class="fz12 gray ml20">* 仅支持给开卡会员赠送积分</span></span>
      <p class="mt15">
        <span class="fz24 mr5 primary-font-color">{{ item.integralCount }}</span>
        <span>积分</span>
      </p>
    </template>
    <template v-if="item.integralType === 2">
      <div><span class="fz16">赠送订单金额倍数积分</span></div>
      <div class="mt5"><span class="fz12 gray">* 订单金额将四舍五入取整，且1元等于1积分</span></div>
      <p class="mt15">
        <span class="fz24 mr5 primary-font-color">{{ item.multipleNum }}</span>
        <span>倍</span>
      </p>
    </template>
  </div>
</template>

<script>
export default {
  name: 'item-integral',
  props: {
    item: {
      type: Object,
      default() {
        return {};
      }
    }
  }
};
</script>
