|
|
|
@ -1,8 +1,8 @@ |
|
|
|
|
<template> |
|
|
|
|
<wybPopup ref="popup" type="bottom" width="500" height="500" :scrollY="true" radius="0" :showCloseIcon="true"> |
|
|
|
|
<wybPopup ref="popup" zIndex="999" type="bottom" width="500" height="500" :scrollY="true" radius="0" :showCloseIcon="true"> |
|
|
|
|
<view class="pd-main wuliupop backcor9"> |
|
|
|
|
<view class="pop-title fontwig6 backcor9"><text>物流信息</text></view> |
|
|
|
|
<view class="pd-main backcolorfff border-8r font14" @touchmove.stop> |
|
|
|
|
<view class="pop-title fontwig6"><text>物流信息</text></view> |
|
|
|
|
<view class="pd-main backcolorfff border-8r font14"> |
|
|
|
|
<view class="dis-flex flex-sp mart10 marb10 paddbotm10 border-b"> |
|
|
|
|
<view class="dis-flex"> |
|
|
|
|
<!-- <image class="wuliu-img" src="https://pic.616pic.com/ys_bnew_img/00/07/04/1ZtrvD1AMY.jpg" mode="aspectFill"></image> --> |
|
|
|
@ -135,7 +135,18 @@ |
|
|
|
|
trackNode |
|
|
|
|
}, |
|
|
|
|
created(){ |
|
|
|
|
|
|
|
|
|
// this.tracesData=dataList.data; |
|
|
|
|
// this.tracesData.logisticsTraceDetails=this.tracesData.logisticsTraceDetails.sort((item,item2)=>{ |
|
|
|
|
|
|
|
|
|
// if(item.logisticsStatus == 'TRANSPORT'){ |
|
|
|
|
// item.isMainNode=false; |
|
|
|
|
// }else{ |
|
|
|
|
// item.isMainNode=true; |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
// return item2.time - item.time; |
|
|
|
|
|
|
|
|
|
// }) |
|
|
|
|
}, |
|
|
|
|
methods:{ |
|
|
|
|
show(logisticsNo){ |
|
|
|
@ -156,10 +167,10 @@ |
|
|
|
|
getLogisticsMsg(params).then(res=>{ |
|
|
|
|
uni.hideLoading(); |
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.tracesData=res.return_data; |
|
|
|
|
this.tracesData.logisticsTraceDetails =JSON.parse(this.tracesData.logisticsTraceDetails) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.tracesData.logisticsTraceDetails=this.tracesData.logisticsTraceDetails.sort((item,item2)=>{ |
|
|
|
|
|
|
|
|
|
if(item.logisticsStatus == 'TRANSPORT'){ |
|
|
|
@ -167,11 +178,9 @@ |
|
|
|
|
}else{ |
|
|
|
|
item.isMainNode=true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return item2.time - item.time; |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* */ |
|
|
|
|
let mobile = /(1[0-9]{10})|([0-9]{3,4})?[0-9]{7,8}/g; //匹配手机号或固话 |
|
|
|
|
let phone = []; |
|
|
|
|
this.tracesData.logisticsTraceDetails.map(item=>{ |
|
|
|
@ -185,10 +194,9 @@ |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
this.phoneNumber =phone.flat(Infinity); |
|
|
|
|
// console.log(this.phoneNumber, phone) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
// console.log(this.phoneNumber, phone) |
|
|
|
|
/* */ |
|
|
|
|
}else{ |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: res.return_msg, |
|
|
|
|
icon: 'none', |
|
|
|
@ -223,7 +231,24 @@ |
|
|
|
|
}, |
|
|
|
|
// 打电话 |
|
|
|
|
callPhone(){ |
|
|
|
|
// uni.showModal({ |
|
|
|
|
// title: '', |
|
|
|
|
// content: '4006780738', |
|
|
|
|
// success: function(res) { |
|
|
|
|
// if (res.confirm) { |
|
|
|
|
// uni.makePhoneCall({ |
|
|
|
|
// phoneNumber: '4006780738', //电话号码 |
|
|
|
|
// success: function(e) { |
|
|
|
|
// console.log(e); |
|
|
|
|
// }, |
|
|
|
|
// fail: function(e) { |
|
|
|
|
// console.log(e); |
|
|
|
|
|
|
|
|
|
// } |
|
|
|
|
// }) |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
// }) |
|
|
|
|
if(this.phoneNumber.length==0){ |
|
|
|
|
uni.showToast({ |
|
|
|
|
title:"暂无可拨打电话号码", |
|
|
|
@ -234,7 +259,7 @@ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 数组去重 |
|
|
|
|
this.phoneNumber = [...new Set(this.phoneNumber)]; |
|
|
|
|
this.phoneNumber = [...new Set(this.phoneNumber)]; |
|
|
|
|
let that = this; |
|
|
|
|
uni.showActionSheet({ |
|
|
|
|
itemList: that.phoneNumber, |
|
|
|
@ -258,8 +283,6 @@ |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -290,7 +313,7 @@ |
|
|
|
|
top:0; |
|
|
|
|
left: 0; |
|
|
|
|
right: 0; |
|
|
|
|
z-index: 10; |
|
|
|
|
z-index: 999; |
|
|
|
|
background-color: #f6f6f6; |
|
|
|
|
} |
|
|
|
|
</style> |