|
|
|
@ -59,7 +59,7 @@ const getLocationInfo = () => {
|
|
|
|
|
})
|
|
|
|
|
uni.setStorageSync('location', location)
|
|
|
|
|
tMap.direction({
|
|
|
|
|
mode: 'walking',
|
|
|
|
|
mode: 'driving',
|
|
|
|
|
from: {
|
|
|
|
|
longitude: res.longitude,
|
|
|
|
|
latitude: res.latitude,
|
|
|
|
@ -91,8 +91,12 @@ const getLocationInfo = () => {
|
|
|
|
|
width: 4,
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
// 自动打开弹框
|
|
|
|
|
orderDetailPopup?.value?.open()
|
|
|
|
|
},
|
|
|
|
|
fail(error) {
|
|
|
|
|
console.log('error', error)
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
fail(err) {
|
|
|
|
@ -140,6 +144,7 @@ const getOrderByIdData = async (orderId) => {
|
|
|
|
|
data.categoryStr = categoryArr.join('、')
|
|
|
|
|
|
|
|
|
|
order.value = data
|
|
|
|
|
// 驾车路线
|
|
|
|
|
getLocationInfo()
|
|
|
|
|
isLoading.value = false
|
|
|
|
|
}
|
|
|
|
@ -302,7 +307,7 @@ const handleDetailPopupClose = () => {
|
|
|
|
|
<view class="icon">
|
|
|
|
|
<uni-icons type="location" color="#3775F6" size="20"></uni-icons>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="val ellipsis"> {{ order.recycleAddress }} </view>
|
|
|
|
|
<view class="val ellipsis"> {{ order.addressInfo?.receiveStreet }} {{ order.addressInfo?.receiveHouseNumber }} </view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="item">
|
|
|
|
|
<view class="icon">
|
|
|
|
@ -336,7 +341,7 @@ const handleDetailPopupClose = () => {
|
|
|
|
|
</view> -->
|
|
|
|
|
<view class="remark">
|
|
|
|
|
<view class="label">距离:</view>
|
|
|
|
|
<view class="val">{{ order.distance }}千米</view>
|
|
|
|
|
<view class="val">{{ order.distance2 }}千米</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="remark">
|
|
|
|
|
<view class="label">回收内容:</view>
|
|
|
|
|