<template>
  <div class="service_steps">
    <ul class="steps_list">
      <template v-for="(step, index) in data">
        <li class="step_item" :key="'step_' + index">
          <div class="step_icon">
            <span v-text="index + 1"></span>
          </div>
          <p class="step_title" v-text="step"></p>
        </li>
        <li
          class="step_line"
          :key="'step_line_' + index"
          v-if="index + 1 < data.length"
        ></li>
      </template>
    </ul>
  </div>
</template>

<script>
export default {
  props: {
    data: {
      type: Array,
      default: ["服务申请", "信息填写", "审核确认", "服务获取"],
    },
  },
  mounted() {},
};
</script>

<style scoped>
.service_steps {
  min-height: 68px;
  padding: 30px 0;
}
.service_steps > .steps_list {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
}
.service_steps .step_line {
  width: 168px;
  border: 1px solid #c0c8f8;
  margin: 33px 10px 0;
}
.service_steps .step_item > .step_icon {
  width: 68px;
  height: 68px;
  background-color: #515fe7;
  border: 10px solid #e1e3ee;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
}
.service_steps .step_item > .step_title {
  font-size: 16px;
  line-height: 24px;
  color: #242c43;
  margin-top: 7px;
}
</style>
