You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
120 lines
2.6 KiB
120 lines
2.6 KiB
<template>
|
|
<view>
|
|
<view v-for="(item,index) in list.goods" :key="item.goods_img">
|
|
<view class="logistics_info">
|
|
<view class="logistics_info_image">
|
|
<image :src="item.goods_img" mode=""></image>
|
|
</view>
|
|
<view class="logistics_info_right">
|
|
<view class="info_right_title">{{list.isreceived==1?'Signed for':'In Transit'}}</view>
|
|
<text>{{list.expname}}</text>
|
|
<view class="info_right_num">
|
|
<text>Tracking number : {{item.invoice_no}}</text>
|
|
<view class="copy" @click ="Copy(item.invoice_no)">Copy</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="logistics_details">
|
|
<view class="logistics_step " v-for="(item,index) in list.records" :key="index" :class="index==0?'step_active':''">
|
|
<text>{{item.context}}</text>
|
|
<view class="logistics_step_time">{{item.time}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import {defaultRequest2} from '../../api/index.js'
|
|
export default {
|
|
data() {
|
|
return {
|
|
active: 0,
|
|
query:{
|
|
_action:'getlogisticsinfo',
|
|
order_id:'',
|
|
order_sn:''
|
|
},
|
|
list:[]
|
|
}
|
|
},
|
|
methods:{
|
|
getList(){
|
|
defaultRequest2(this.query).then(res=>{
|
|
console.info(res)
|
|
if(res.error==0){
|
|
this.list=res.data[0]
|
|
console.info(this.list)
|
|
}
|
|
})
|
|
},
|
|
Copy(no){
|
|
uni.setClipboardData({
|
|
data:no,//要被复制的内容
|
|
success:()=>{//复制成功的回调函数
|
|
uni.showToast({//提示
|
|
title:'succeeded',
|
|
icon:'none'
|
|
})
|
|
}
|
|
});
|
|
}
|
|
},
|
|
onLoad(e) {
|
|
this.query.order_id=e.order_id
|
|
this.getList()
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
@import "@/common/scss/order.scss";
|
|
.logistics_info{
|
|
border-top: 14.67rpx #F6F5FA solid;
|
|
padding: 32rpx 0;
|
|
padding-left: 29.33rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
.logistics_info_image{
|
|
width: 133.33rpx;
|
|
height: 133.33rpx;
|
|
background-color: #999999;
|
|
image{
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
|
|
}
|
|
.logistics_info_right{
|
|
margin-left: 33.33rpx;
|
|
font-size: 28rpx;
|
|
font-weight: 400;
|
|
color: #333333;
|
|
|
|
.info_right_title{
|
|
color: #DE3139;
|
|
font-size: 29.33rpx;
|
|
font-weight: bold;
|
|
margin-bottom: 10.33rpx;
|
|
}
|
|
.info_right_num{
|
|
display: flex;
|
|
align-items: center;
|
|
margin-top: 9.67rpx;
|
|
.copy{
|
|
height: 41.33rpx;
|
|
line-height: 41.33rpx;
|
|
text-align: center;
|
|
background-color: #F6F5FA;
|
|
font-size: 24rpx;
|
|
border-radius: 20.67rpx;
|
|
margin-left: 26.67rpx;
|
|
padding: 0 18.67rpx ;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
</style>
|