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.
 
 
 
 

44 lines
620 B

<template>
<view>
</view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
},
onLoad(options) {
console.log(options);
// #ifdef MP-WEIXIN
wx.getLocation({
type: 'gcj02', //返回可以用于wx.openLocation的经纬度
success(res) {
const latitude = Number(options.lot);
const longitude = Number(options.lng);
wx.openLocation({
latitude,
longitude,
scale: 18,
name: options.addressname,
address: options.addrs
})
}
})
uni.navigateBack({
})
// #endif
}
}
</script>
<style>
</style>