授权页没有授权选项
发布于 6 年前 作者 xia97 11006 次浏览 来自 问答

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 回复

wx.authorize(Object object)

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

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

回到顶部