|
|
@ -1,7 +1,7 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<wybPopup ref="popup" zIndex="999" type="bottom" width="500" height="500" :scrollY="true" radius="0" :showCloseIcon="true"> |
|
|
|
<wybPopup @touchmove.stop ref="popup" zIndex="999" type="bottom" width="500" height="500" :scrollY="true" radius="0" :showCloseIcon="true"> |
|
|
|
<view class="pd-main wuliupop backcor9"> |
|
|
|
<view class="pd-main wuliupop backcor9"> |
|
|
|
<view class="pop-title fontwig6"><text>物流信息</text></view> |
|
|
|
<view class="pop-title fontwig6 backcor9"><text>物流信息</text></view> |
|
|
|
<view class="pd-main backcolorfff border-8r font14" > |
|
|
|
<view class="pd-main backcolorfff border-8r font14" > |
|
|
|
<view class="dis-flex flex-sp mart10 marb10 paddbotm10 border-b"> |
|
|
|
<view class="dis-flex flex-sp mart10 marb10 paddbotm10 border-b"> |
|
|
|
<view class="dis-flex"> |
|
|
|
<view class="dis-flex"> |
|
|
@ -135,18 +135,7 @@ |
|
|
|
trackNode |
|
|
|
trackNode |
|
|
|
}, |
|
|
|
}, |
|
|
|
created(){ |
|
|
|
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:{ |
|
|
|
methods:{ |
|
|
|
show(logisticsNo){ |
|
|
|
show(logisticsNo){ |
|
|
@ -178,9 +167,11 @@ |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
item.isMainNode=true; |
|
|
|
item.isMainNode=true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return item2.time - item.time; |
|
|
|
return item2.time - item.time; |
|
|
|
}) |
|
|
|
}) |
|
|
|
/* */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let mobile = /(1[0-9]{10})|([0-9]{3,4})?[0-9]{7,8}/g; //匹配手机号或固话 |
|
|
|
let mobile = /(1[0-9]{10})|([0-9]{3,4})?[0-9]{7,8}/g; //匹配手机号或固话 |
|
|
|
let phone = []; |
|
|
|
let phone = []; |
|
|
|
this.tracesData.logisticsTraceDetails.map(item=>{ |
|
|
|
this.tracesData.logisticsTraceDetails.map(item=>{ |
|
|
@ -191,11 +182,13 @@ |
|
|
|
phone.push((num.match(mobile))) |
|
|
|
phone.push((num.match(mobile))) |
|
|
|
} |
|
|
|
} |
|
|
|
// } |
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
this.phoneNumber =phone.flat(Infinity); |
|
|
|
this.phoneNumber =phone.flat(Infinity); |
|
|
|
// console.log(this.phoneNumber, phone) |
|
|
|
// console.log(this.phoneNumber, phone) |
|
|
|
/* */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
uni.showToast({ |
|
|
|
uni.showToast({ |
|
|
|
title: res.return_msg, |
|
|
|
title: res.return_msg, |
|
|
@ -231,24 +224,7 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 打电话 |
|
|
|
// 打电话 |
|
|
|
callPhone(){ |
|
|
|
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){ |
|
|
|
if(this.phoneNumber.length==0){ |
|
|
|
uni.showToast({ |
|
|
|
uni.showToast({ |
|
|
|
title:"暂无可拨打电话号码", |
|
|
|
title:"暂无可拨打电话号码", |
|
|
@ -283,6 +259,8 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|