bindopensetting='bindopensetting' 授权回调问题
<button type=‘primary’ open-type=‘openSetting’ bindopensetting=‘bindopensetting’>获取地理位置信息</button>
bindopensetting: function(res) {
if (res.detail.authSetting[‘scope.userLocation’] == true) {
////////在ios上,这里无法调用wx.getLocation(我只试了这个),但在安卓和模拟器上可以调用;最后我只能用wx.redirectTo再次跳转到当前页面勉强才可以。。。/////////
wx.redirectTo({
url: ‘/pages/index/index’,
})
}
},