授权页没有授权选项

发布于 8 年前作者 xia9711167 次浏览最后编辑 8 年前来自 ask

iPhone 6s Plus

iOS 12.1.2

7.0.2

2.5.0 [216]

292ms

Wi-Fi

第一种:

<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都一样)

3 回复
wantao
wantao1 楼6 年前

wx.authorize(Object object)

guiyingduan
guiyingduan2 楼6 年前

openSetting 授权还是存在问题,旧版本微信没有问题,7.0.2版本的微信会出现问题

smao
smao3 楼6 年前

openSetting页面只会显示请求过的权限我记得