v2.16.0新增API,尝试了下,开发版中的真机调试,不授权也能调用?我懵了。
<view class="btn" catchtap="toShowAddress">打开地图</view>
toShowAddress() {
wx.choosePoi({
success(res: any) {
console.log(res, '成功回调')
},
fail(res: any) {
console.log(res, '失败回调')
},
complete(res: any) {
console.log(res, '结束回调')
}
})
},