<template>
  <div class="logistics_info">
    <div class="logistics_com">
      <p v-for="(item,index) in list" :key="index">
        <span>{{ item.name }}:</span>
        <span>{{ item.value }}</span>
      </p>
    </div>
    <div class="logistics_status">
      <div>物流信息:</div>
      <div>
        <p v-for="(item,index) in logisticsList" :key="index">
          <span>{{ item.time }}</span>
          <span>{{ item.status }}</span>
        </p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: [
        { name: '物流公司', value: '中通', field: '' },
        { name: '运单号', value: '123123', field: '' }
      ],
      logisticsList: [
        { time: '2020/12/20 15:20:23', status: '正在派件', field: '' },
        { time: '2020/12/20 15:20:23', status: '已从廊坊发货', field: '' },
        { time: ' 2020/12/20 15:20:23', status: '已到达目的地', field: '' }
      ]
    }
  }
}
</script>

<style lang='less' scoped>
.logistics_info {
  padding: 20px 10%;
  .logistics_com {
    overflow: hidden;
    margin-bottom: 30px;
    p {
      width: 50%;
      float: left;
      span {
        font-size: 16px;
        color: #333333;
        display: inline-block;
        &:nth-of-type(1) {
          width:80px;
        }
        &:nth-of-type(2) {
          color:#666666;
        }
      }
    }
  }
  .logistics_status {
    overflow: hidden;
    div {
      font-size: 16px;
      color: #333333;
      float: left;
      &:nth-of-type(1) {
        width:80px;
      }
      &:nth-of-type(2) {
        width: calc(80% - 80px);
        color:#666666;
        p {
          margin: 0;
          margin-bottom: 20px;
          span {
            display: inline-block;
            &:nth-of-type(2) {
              margin-left: 50px;
            }
          }
        }
      }
    }
  }
}
</style>
