// bindtap 事件
getCurrentLocation(){
wx.getSetting({
success:(res)=>{
if (!res.authSetting['scope.userLocation']) {
wx.authorize({
scope:'scope.userLocation',
success:()=>{
this.getLocation()
},
fail:(e)=>{
console.log("authorize e",e)
wx.openSetting() //如果拒绝了权限申请,这里无法唤起设置面板
}
})
}else{
this.getLocation()
}
}
})
},

getCurrentLocation(){wx.getSetting({success:(res)=>{if (!res.authSetting['scope.userLocation']) {wx.openSetting() //如果拒绝了权限申请,无需请求权限,可以直接唤起面板}else{this.getLocation()}}})},