1.導航按鈕
<button? @click="navigation()">導航到倉庫</button>
2.導航功能
const navigation = (item) => {
let address = item.province + item.city + item.district + item.address //地址
let latitude = Number(item.latitude)? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?//經度
let longitude = Number(item.longitude)? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?//緯度
uni.openLocation({
latitude: 22.643, ?
longitude: 114.021,?
name: '奧華花園',
address: '廣東省深圳市龍華區大浪街道奧華花園',
scale: 15,
navigate: true?
})
}