Pre-order steps: 1. Apply for the appkey on the Gaode console; 2. Check the map module in the configuration file for configuration.
<!-- 手动添加页面 -->
<template>
<view>
</view>
</template>
<script>
export default {
data() {
return {
}
},
onLoad() {
},
methods: {
/**
* 点击地图 调用选址功能
* @param {Object} e
*/
getMap(e) {
let that = this
uni.chooseLocation({
success: function(res) {
console.log("获取地址",res)
}
});
},
},
}
</script>
<style>
</style>