Blame view

admin-web-master/src/views/order/after/details/component/logistics.vue 1.7 KB
3f535f30   杨鑫   '初始'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
  <template>
    <div class="logistics_info">
      <div class="logistics_com">
        <p>
          <span>物流公司:</span>
          <span>{{ logisticsList.detail.express }}</span>
        </p>
        <p>
          <span>物流单号:</span>
          <span>{{ logisticsList.detail.deliverFormid }}</span>
        </p>
      </div>
      <div class="logistics_status">
        <div>物流信息:</div>
        <div>
          <p v-for="(item,index) in logisticsList.arr" :key="index">
            <span>{{ item.time }}</span>
            <span>{{ item.reason }}</span>
          </p>
        </div>
      </div>
    </div>
  </template>
  
  <script>
  export default {
    props: {
      logisticsList: {
        type: Object,
        default() {
          return {}
        }
      }
    },
    data() {
      return {
      }
    },
    created() {
      console.log(this.logisticsList)
    }
  }
  </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-top: 10px;
              }
            }
          }
        }
      }
    }
  }
  </style>