授权页没有授权选项
第一种:
<button open-type="openSetting" bindopensetting="getScopes">无法获取地理位置,点击授权获取</button> |
getScopes:function(res){ console.log(res)} |
第二种:
<button bindtap='openSetting'>无法获取地理位置,点击授权获取</button> |
openSetting:function(res){ wx.openSetting({ success(res) { console.log(res) } }) } |
两种的结果都如下图(安卓和IOS都一样)
