<template>
  <div class="bill-content">
    <h3 v-if="!overdue" class="title">
      {{ title }}
      <span v-if="billTradeCycle" class="title-text">入账周期：{{ billTradeCycle }}</span>
    </h3>
    <p v-else class="tip">逾期后每天会收取您逾期滞纳金并上报征信!请尽快还款!</p>
    <slot />
  </div>
</template>
<script>
export default {
  components: {},
  props: {
    title: {
      type: String,
      default: '账单分期'
    },
    billTradeCycle: {
      type: String,
      default: ''
    },
    overdue: {
      type: Boolean,
      default: false
    }
  },
  data() {
    return {};
  }
};
</script>
<style lang="less" scoped>
.title {
  font-size: 16px;
  color: #333333;
  margin-left: 20px;
  margin-top: 24px;
  position: relative;
}
.tip {
  color: #f41c1c;
  .text-size(12);
  margin-left: 20px;
  margin-top: 24px;
}
.title-text {
  font-size: 12px;
  color: #999999;
  text-align: right;
  position: absolute;
  right: 20px;
}
</style>
