3f535f30
杨鑫
'初始'
|
13
14
15
16
17
18
19
20
21
22
23
|
<view class="order-details-information mt20">
<view class="order-title-box">
<view class="order-title padd-l">
<text class="line"></text>
<text style="margin-left: 10upx;">物流信息</text>
</view>
</view>
</view>
<view class="logistics">
<uni-steps :options="steps" direction="column" :active="0"></uni-steps>
</view>
|
3f535f30
杨鑫
'初始'
|
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
|
<label class="font-color-999 fs26 mar-top-30">你还没有物流信息哦~</label>
</view>
</view>
</template>
<script>
const NET = require('../../utils/request')
const API = require('../../config/api')
import uniSteps from "@/components/uni-steps/uni-steps.vue"
export default {
data() {
return {
express:'',
deliverFormid:'',
steps:[]
}
},
components: {uniSteps},
onLoad(options) {
this.express = options.express
this.deliverFormid = options.deliverFormid
this.getShippingTrace(this.express,this.deliverFormid)
},
methods: {
//物流信息
getShippingTrace(express,deliverFormid){
NET.request(API.ShippingTrace,{
express:express,
deliverFormid:deliverFormid
},"GET").then( res => {
let traces = res.data
let len = traces.length
for(let i = 0; i < len; i++){
let item = traces[i]
this.steps.push({
title: item.reason,
desc: item.time,
})
}
this.steps = this.steps.reverse()
}).catch(res => {
})
},
}
}
</script>
<style lang="scss">
.emptyOrder-box{
margin-top: 70upx;
.emptyOrder-img {
width: 113upx;
height: 98upx;
}
}
page {
background: #f7f7f7;
}
.logistics{
padding: 20upx 20upx;
}
.content {
padding: 0 0 120upx 0;
}
.order-details-information {
background: #fff;
flex-shrink: 0;
display: flex;
flex-direction: row;
align-items: center;
height: 98upx;
}
.order-details-information.padd {
padding: 30upx;
box-sizing: border-box;
}
.order-details-information .order-title {
font-size: 30upx;
margin-left: 30upx;
color: #333;
font-weight: 500;
display: flex;
flex-direction: row;
align-items: center;
}
.order-details-information .order-title .line {
width: 10upx;
height: 30upx;
background: #ff7911;
margin-right: 10upx;
}
.order-details-information .info-box {
margin-top: 30upx;
}
.order-details-information .info-box .item {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
font-size: 24upx;
color: #666;
margin-bottom: 20upx;
}
.order-details-information .info-box .item .copy-color {
font-size: 24upx;
color: #ff7911;
}
.arrow-down-img {
width: 90upx;
height: 90upx;
padding: 30upx;
box-sizing: border-box;
}
.mt20 {
margin-top: 20upx;
}
</style>
|