修复地图展示问题
This commit is contained in:
parent
6ba275d5b9
commit
9ac72304c7
|
|
@ -54,7 +54,7 @@
|
|||
</view>
|
||||
<view class="detail-section">
|
||||
<view class="section-title">上门地址</view>
|
||||
<view class="address-box" @click="openLocation(order.address.lng, order.address.lat)">
|
||||
<view class="address-box" @click="openLocation(order.address)">
|
||||
<text class="iconfont icon-dingwei"></text>
|
||||
<view>
|
||||
<view class="contact limit-line clamp-1">
|
||||
|
|
@ -86,7 +86,7 @@
|
|||
</view>
|
||||
<view class="detail-section">
|
||||
<view class="section-title">取货地址</view>
|
||||
<view class="address-box" @click="openLocation(order.pickupAddress.lng, order.pickupAddress.lat)">
|
||||
<view class="address-box" @click="openLocation(order.pickupAddress)">
|
||||
<text class="iconfont icon-dingwei"></text>
|
||||
<view>
|
||||
<view class="contact limit-line clamp-1">
|
||||
|
|
@ -103,7 +103,7 @@
|
|||
</view>
|
||||
<view class="detail-section">
|
||||
<view class="section-title">卸货地址</view>
|
||||
<view class="address-box" @click="openLocation(order.unloadAddress.lng, order.unloadAddress.lat)">
|
||||
<view class="address-box" @click="openLocation(order.unloadAddress)">
|
||||
<text class="iconfont icon-dingwei"></text>
|
||||
<view>
|
||||
<view class="contact limit-line clamp-1">
|
||||
|
|
@ -189,10 +189,11 @@ export default {
|
|||
onReachBottom() {},
|
||||
onPullDownRefresh() {},
|
||||
methods: {
|
||||
openLocation(lng, lat) {
|
||||
openLocation(address) {
|
||||
uni.openLocation({
|
||||
longitude: parseFloat(lng),
|
||||
latitude: parseFloat(lat),
|
||||
longitude: parseFloat(address.lng),
|
||||
latitude: parseFloat(address.lat),
|
||||
name: address.address + address.detail,
|
||||
});
|
||||
},
|
||||
copyOrderId(orderId) {
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@
|
|||
</view>
|
||||
<view class="detail-section">
|
||||
<view class="section-title">上门地址</view>
|
||||
<view class="address-box" @click="openLocation(order.address.lng, order.address.lat)">
|
||||
<view class="address-box" @click="openLocation(order.address)">
|
||||
<text class="iconfont icon-dingwei"></text>
|
||||
<view>
|
||||
<view class="contact limit-line clamp-1">
|
||||
|
|
@ -87,7 +87,7 @@
|
|||
</view>
|
||||
<view class="detail-section">
|
||||
<view class="section-title">取货地址</view>
|
||||
<view class="address-box" @click="openLocation(order.pickupAddress.lng, order.pickupAddress.lat)">
|
||||
<view class="address-box" @click="openLocation(order.pickupAddress)">
|
||||
<text class="iconfont icon-dingwei"></text>
|
||||
<view>
|
||||
<view class="contact limit-line clamp-1">
|
||||
|
|
@ -105,7 +105,7 @@
|
|||
</view>
|
||||
<view class="detail-section">
|
||||
<view class="section-title">卸货地址</view>
|
||||
<view class="address-box" @click="openLocation(order.unloadAddress.lng, order.unloadAddress.lat)">
|
||||
<view class="address-box" @click="openLocation(order.unloadAddress)">
|
||||
<text class="iconfont icon-dingwei"></text>
|
||||
<view>
|
||||
<view class="contact limit-line clamp-1">
|
||||
|
|
@ -189,10 +189,11 @@ export default {
|
|||
onReachBottom() {},
|
||||
onPullDownRefresh() {},
|
||||
methods: {
|
||||
openLocation(lng, lat) {
|
||||
openLocation(address) {
|
||||
uni.openLocation({
|
||||
longitude: parseFloat(lng),
|
||||
latitude: parseFloat(lat),
|
||||
longitude: parseFloat(address.lng),
|
||||
latitude: parseFloat(address.lat),
|
||||
name: address.address + address.detail,
|
||||
});
|
||||
},
|
||||
copyOrderId(orderId) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue