<template>
  <div>
    <div class="logistics acea-row row-top">
      <div class="logistics_img"><img src="@/assets/images/expressi.jpg"></div>
      <div class="logistics_cent">
        <span>物流公司：{{ logisticsName ? orderDatalist.delivery_type : orderDatalist.delivery_name }}</span>
        <span>物流单号：{{ orderDatalist.delivery_id }}</span>
      </div>
    </div>
    <div class="acea-row row-column-around trees-coadd">
      <div class="scollhide">
        <el-timeline v-if="result.length>0">
          <el-timeline-item v-for="(item,i) in result" :key="i">
            <p class="time" v-text="item.time" />
            <p class="content" v-text="item.status" />
          </el-timeline-item>
        </el-timeline>
      </div>
    </div>
  </div>
</template>

<script>

export default {
  name: 'Logistics',
  props: {
    orderDatalist: {
      type: Object,
      default: null
    },
    result: {
      type: Array,
      default: () => []
    },
    logisticsName: {
      type: String,
      default: ''
    }
  }
}
</script>

<style scoped lang="scss">
  .title{
    margin-bottom: 16px;
    color: #17233d;
    font-weight: 500;
    font-size: 14px;
  }
  .description{
    &-term {
      display: table-cell;
      padding-bottom: 10px;
      line-height: 20px;
      width: 50%;
      font-size: 12px;
    }
  }
  .logistics{
    align-items: center;
    padding: 10px 0px;
    .logistics_img{
      width: 45px;
      height: 45px;
      margin-right: 12px;
      img{
        width: 100%;
        height: 100%;
      }
    }
    .logistics_cent{
      span{
        display: block;
        font-size: 12px;
      }
    }
  }
  .trees-coadd{
    width: 100%;
    height: 400px;
    border-radius: 4px;
    overflow: hidden;
    .scollhide{
      width: 100%;
      height: 100%;
      overflow: auto;
      margin-left: 18px;
      padding: 10px 0 10px 0;
      box-sizing: border-box;
      .content{
        font-size: 12px;
      }
      .time{
        font-size: 12px;
        color: var(--prev-color-primary);
      }
    }
  }
  .scollhide::-webkit-scrollbar {
    display: none; /* Chrome Safari */
  }

</style>
