You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
643 B

1 year ago
<template>
<view></view>
</template>
<script>
export default {
data() {
return {
}
},
onShow() {
},
onLoad(option) {
let data = JSON.parse(option.data)
if(data && data.type == 'map') {
uni.openLocation({
longitude: Number(data.lon), // 经度
latitude: Number(data.lat), //纬度
name: data.address || data.title || data.name, // 位置名称
address: data.address, //详细地址
complete: res => {
if(res.errMsg.indexOf("openLocation:ok") != -1) {
uni.switchTab({
url: '/pages/map/map'
})
}
}
})
}
}
}
</script>
<style>
</style>