<template>
  <card title="理赔流程" :option="['了解更多理赔信息']" @option-click="optionClick">
    <div class="cps-process-list">
      <div class="cps-process-list-item">
        <div class="cps-process-list-item-title">1</div>
        <div class="cps-process-list-item-content">
          <h6>电话报案</h6>
          <small>
            请拨打华泰财险400-609-5509进行报案。华泰财险会有理赔专员1对1指导理赔事宜。
          </small>
        </div>
      </div>
      <div class="cps-process-list-item">
        <div class="cps-process-list-item-title">2</div>
        <div class="cps-process-list-item-content">
          <h6>提交资料</h6>
          <small>根据理赔专员的指导，准备理赔材料，并邮寄至指定地点进行审核。</small>
        </div>
      </div>
      <div class="cps-process-list-item">
        <div class="cps-process-list-item-title">3</div>
        <div class="cps-process-list-item-content">
          <h6>理赔付款</h6>
          <small>审核通过后，理赔款将通过转账的方式支付。</small>
        </div>
      </div>
    </div>
  </card>
</template>

<script>
import card from "@/components/Card";
export default {
  name: "CpsProcess",
  components: {
    card
  },
  props: {
    processData: {
      type: Object,
      default() {}
    }
  },
  methods: {
    optionClick() {
      this.$emit("click", 5);
    }
  }
};
</script>

<style lang="less" scoped>
@import "../../../style/var.less";
.cps-process {
  &-list {
    &-item {
      position: relative;
      display: flex;
      align-items: center;
      padding-bottom: 16px;
      &-title {
        font-size: @font-size-12;
        font-weight: @font-weight-bold;
        color: @black;
        width: 19px;
        height: 19px;
        margin: -10px 20px 0 4px;
        background-color: @orange-light;
        border-radius: @border-radius-max;
        line-height: @line-height-md;
        position: relative;
        text-align: center;
        line-height: 19px;
        &::after {
          content: " ";
          display: block;
          position: absolute;
          top: 19px;
          left: 9.5px;
          width: 0;
          height: calc(100% + 70px);
          border-left: 1px solid #d8d8d8;
        }
      }
      &-content {
        flex: 1;
        background-color: #f6f6f6;
        border-radius: @border-radius-sm / 2 @border-radius-md;
        padding: @padding-sm;
        h6 {
          color: @black;
          font-weight: @font-weight-bold;
          font-size: @font-size-14;
          line-height: @line-height-sm + 2;
        }
        small {
          color: @gray-5;
          font-size: @font-size-12;
          line-height: @line-height-sm + 2;
        }
      }
      &:last-child {
        color: #fff;
        padding-bottom: 0;
        .cps-process-list-item-title::after {
          display: none;
        }
      }
    }
  }
}
</style>
