| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159 |
- <template>
- <view>
- <view class="content">
- <view class="log_top">
- <!-- <image :src="log.good_thumb" mode="aspectFill"></image> -->
- <view class="right">
- <view>物流公司:{{wlData.order.delivery_name}}</view>
- <view>物流单号:{{wlData.order.delivery_id}}</view>
- </view>
- </view>
- <view class="log_list">
- <view class='logisit' v-if="wlData.express.result.list !=0" v-for="(item,index) in wlData.express.result.list" >
- <view class='list' :style="{'border-left':index == wlData.express.result.list.length-1 ? '':'1px solid #E5E5E5'}">
- <view class="left">
- <image class='list_fin_img' v-if="index == 0&&wlData.express.result.list.length>1" src="../../static/icon/circle.png"></image>
- <image class='list_start_img' v-if="index != 0" src="../../static/icon/gantan_icon3.png"></image>
- </view>
- <view class="right">
- <view :class="index == 0 ? 'list_name_last' : 'list_name' " >{{item.status}}</view>
- <view :class="index == 0 ? 'list_dates_last' : 'list_dates' ">{{item.time}}</view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
-
- </template>
- <script>
- import { orderDetail, getWl } from '@/api/order.js';
- export default {
- data() {
- return {
- orderId: '',
- wlData: {},
- log:{
- good_thumb:'../../static/logo.png',
- company:'大C子',
- LogisticCode:'12345678910',
- logList:[
- {id:0,AcceptStation:'广州市',AcceptTime:'2021.03.10'},
- {id:1,AcceptStation:'广州市',AcceptTime:'2021.03.09'},
- {id:2,AcceptStation:'广州市',AcceptTime:'2021.03.08'},
- {id:3,AcceptStation:'广州市',AcceptTime:'2021.03.07'},
- {id:4,AcceptStation:'广州市',AcceptTime:'2021.03.06'},
- ]
- }
- }
- },
- onLoad(opt){
- this.orderId = opt.id
- this.getWl()
- },
- onShow() {
- },
- methods: {
- getWl() {
- let obj = this
- getWl({},obj.orderId).then(res => {
- console.log(res.data.order)
- obj.wlData = res.data
- })
- }
-
- },
- }
- </script>
- <style lang="scss">
- .content{
- .log_top{
- height: 140rpx;
- width: 100%;
- border: 1px solid #F5F5F5;
- display: flex;
- justify-content: flex-start;
- z-index: 1;
- background-color: #FFFFFF;
- image{
- width: 68rpx;
- height: 68rpx;
- margin: 36rpx;
- }
- .right{
- padding-left: 20rpx;
- font-size: 24rpx;
- color: #333333;
- view{
- margin-top: 20rpx;
- }
-
- }
- }
- // 物流追踪
- .log_list{
- width: 100%;
- height: 100%;
- margin-top: 130rpx;
- .logisit{
- width: 100%;
- font-size: 22rpx;
- }
- .list{
- width: 90%;
- margin: auto;
- display: flex;
- justify-content: flex-start;
- position: relative;
- .left{
- margin-left: 10rpx;
- position: absolute;
- left: -26rpx;
- width: 30rpx;
- text-align: center;
- .list_fin_img{
- width: 30rpx;
- height: 30rpx;
- }
- .list_start_img{
- width: 24rpx;
- height: 24rpx;
- }
- }
- .right{
- font-size: 22rpx;
- width: 90%;
- margin-left: 50rpx;
- margin-bottom: 50rpx;
- .list_name_last, .list_name{
- width: 100%;
- margin-top: -20rpx;
- text-align: left;
- font-size: 22rpx;
- }
- .list_name_last{
- color: #892C2B;
- }
- .list_name{
- color: #999999;
- }
- .list_dates_last{
- color: #892C2B;
- font-size: 22rpx;
- margin-top: 10rpx;
- }
- .list_dates{
- font-size: 20rpx;
- margin-top: 10rpx;
- color: #999999;
- }
- }
- }
-
- }
-
-
- }
- </style>
|