<template>
  <div>
    <div class="list-header">
      <div class="header-text haeder-one">被邀请账号</div>
      <div class="header-text header-two">购买时间</div>
    </div>
    <div class="record-list">
      <div class="record-item" v-for="(item, index) in data" :key="index">
        <div class="record-title">{{ item.phoneNumber }}</div>
        <div class="record-time">{{ item.createTime }}</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'RecordList',
  props: {
    data: {
      type: Array,
      default: () => []
    }
  }
}
</script>

<style lang="scss" scoped>
.list-header{
  background-color: #FFEED7;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-around;

  .haeder-one{
    flex: 0.45;
  }
  .header-two{
    flex: 0.55;
  }

  .header-text{
    text-align: center;
    font-weight: 400;
    font-size: 12px;
    color: #333;
    line-height: 24px;
  }
}

.record-list{
  min-height: 165px;
}

.record-item{
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-around;

  .record-title,
  .record-time{
    text-align: center;
    line-height: 33px;
  }

  .record-title{
    flex: 0.45;
  
  }

  .record-time{
    flex: 0.55;
  }
}
</style>