修复地图展示问题
This commit is contained in:
parent
8cb24c17e7
commit
39ecdedb2c
|
@ -94,7 +94,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="section address">
|
<view class="section address">
|
||||||
<view class="section-title">服务信息</view>
|
<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>
|
<text class="iconfont icon-dingwei"></text>
|
||||||
<view>
|
<view>
|
||||||
<view class="contact limit-line clamp-1">
|
<view class="contact limit-line clamp-1">
|
||||||
|
@ -128,7 +128,7 @@
|
||||||
<block v-if="listType == 't3'">
|
<block v-if="listType == 't3'">
|
||||||
<view class="section address">
|
<view class="section address">
|
||||||
<view class="section-title">取货地址</view>
|
<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>
|
<text class="iconfont icon-dingwei"></text>
|
||||||
<view>
|
<view>
|
||||||
<view class="contact limit-line clamp-1">
|
<view class="contact limit-line clamp-1">
|
||||||
|
@ -147,7 +147,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="section address">
|
<view class="section address">
|
||||||
<view class="section-title">卸货地址</view>
|
<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>
|
<text class="iconfont icon-dingwei"></text>
|
||||||
<view>
|
<view>
|
||||||
<view class="contact limit-line clamp-1">
|
<view class="contact limit-line clamp-1">
|
||||||
|
@ -256,10 +256,11 @@ export default {
|
||||||
/**
|
/**
|
||||||
* 打开地图
|
* 打开地图
|
||||||
*/
|
*/
|
||||||
openLocation(lng, lat) {
|
openLocation(address) {
|
||||||
uni.openLocation({
|
uni.openLocation({
|
||||||
longitude: parseFloat(lng),
|
longitude: parseFloat(address.lng),
|
||||||
latitude: parseFloat(lat),
|
latitude: parseFloat(address.lat),
|
||||||
|
name: address.address + address.detail,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue