<template>
  <div class="fill-batch">
    <div class="top-title">（三）选择填报批次</div>
    <div class="input-box">
      <div class="input-title">
        您的预估高考成绩： {{ subject }}
        <span>{{firstSubject}}</span>
        <span :key="index" v-for="(item ,index) in lastSubject">,{{item}}</span> 总分：{{ score }}
      </div>
      <div
        class="select-item"
        v-for="(item, index) in zytbBatchesList"
        :key="index"
      >
        <div class="select-title">
          {{ item.name }} <span v-if="item.recommand">重点推荐</span>
        </div>
        <div class="select-content">
          <div class="select-text">
            {{ item.tips }}
          </div>
          <div class="select-button" @click="onFillIn(item)">开始填写</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "FillBatch",
  data: () => {
    return {
      inputScore: 0,
      radio: 1,
    };
  },
  methods: {
    onFillIn(item) {
      this.$emit("onFillIn", item);
    },
  },
  props: {
    zytbBatchesList: {
      type: Array,
      default: () => {
        return {};
      },
    },
    firstSubject: {
      type: String,
      default: "",
    },
    lastSubject: {
      type: Array,
      default: [],
    },
    isNewCollegeEntranceExam: {
      type: Boolean,
      default: false,
    },
    subject: {
      type: String,
      default: "",
    },
    score: {
      type: Number,
      default: 0,
    },
  },
};
</script>

<style scoped>
.top-title {
  color: #6cd1b5;
  text-align: center;
  font-size: 30px;
  height: 80px;
  padding: 26px;
  border-bottom: 1px solid rgba(183, 183, 183, 0.5);
}
.input-box {
  padding: 30px;
}
.input-box {
  font-size: 20px;
}
.select-item {
  margin: 20px;
  padding: 10px;
  border: solid 1px #e6e6e6;
  position: relative;
}
.select-title {
  padding: 0 10px;
  position: absolute;
  top: -12px;
  background: #fff;
}
.select-title span {
  font-size: 12px;
  color: #fff;
  padding: 2px 5px;
  background-color: #ff5722;
}
.select-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.select-text {
  font-size: 18px;
  line-height: 40px;
  height: 40px;
}
.select-button {
  cursor: pointer;
  color: #fff;
  height: 35px;
  line-height: 35px;
  padding: 0 15px;
  font-size: 14px;
  background: #6cd1b5;
}
</style>
