<template>
|
|
<view class="page">
|
|
<navbar leftClick @leftClick="$utils.navigateBack" />
|
|
|
|
<view class="info">
|
|
<view class="no">
|
|
<image class="logo" :src="detail.logo" mode="aspectFill"></image>
|
|
<view class="">
|
|
{{ detail.expName }}
|
|
</view>
|
|
<view class="">
|
|
{{ detail.number }}
|
|
</view>
|
|
</view>
|
|
<view class="conc">
|
|
<view class="btn"
|
|
@click="$utils.copyText(detail.number)">
|
|
复制
|
|
</view>
|
|
<view class=""
|
|
@click="callPhone(detail.courierPhone)">
|
|
打电话
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="steps">
|
|
<uv-steps current="0" direction="column" dot>
|
|
<uv-steps-item
|
|
v-for="(item, index) in detail.list"
|
|
:key="index"
|
|
:title="item.status"
|
|
:desc="item.time"></uv-steps-item>
|
|
</uv-steps>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
no : '',
|
|
detail : {
|
|
list : [],
|
|
},
|
|
}
|
|
},
|
|
onLoad({no}) {
|
|
this.no = no
|
|
this.queryLogistics()
|
|
},
|
|
methods: {
|
|
queryLogistics(){
|
|
this.$api('queryLogistics', {
|
|
no : this.no
|
|
}, res => {
|
|
if(res.code == 200){
|
|
let data = JSON.parse(res.result)
|
|
this.detail = data.result
|
|
console.log(JSON.parse(res.result));
|
|
}
|
|
})
|
|
},
|
|
callPhone(phone){
|
|
uni.makePhoneCall({
|
|
phoneNumber: phone
|
|
})
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.page{
|
|
min-height: 100vh;
|
|
.info{
|
|
background-color: #fff;
|
|
padding: 30rpx;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
.no{
|
|
display: flex;
|
|
align-items: center;
|
|
flex-shrink: 0;
|
|
font-size: 28rpx;
|
|
color: #777;
|
|
gap: 20rpx;
|
|
.logo{
|
|
width: 50rpx;
|
|
height: 50rpx;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
}
|
|
}
|
|
.conc{
|
|
margin-left: auto;
|
|
display: flex;
|
|
flex-shrink: 0;
|
|
font-size: 28rpx;
|
|
color: #777;
|
|
gap: 40rpx;
|
|
}
|
|
}
|
|
.steps {
|
|
background-color: #fff;
|
|
display: flex;
|
|
flex-direction: column;
|
|
border-radius: 20rpx;
|
|
padding: 0rpx 20rpx;
|
|
padding-bottom: 100rpx;
|
|
/deep/ .uv-text__value {
|
|
font-size: 28rpx !important;
|
|
line-height: 56rpx !important;
|
|
}
|
|
/deep/ .uv-text__value--main{
|
|
font-size: 28rpx !important;
|
|
line-height: 52rpx !important;
|
|
}
|
|
/deep/ .uv-text__value--tips{
|
|
font-size: 24rpx !important;
|
|
line-height: 56rpx !important;
|
|
|
|
}
|
|
}
|
|
}
|
|
</style>
|