wx.authorize 授权唤起失败,不能用了吗?
发布于 7 年前 作者 juanren 11609 次浏览 来自 官方Issues
2 回复

wx.authorize 可以用,scope文档了解下:wx.authorize({scope: “scope.userInfo”}),不会弹出授权窗口,请使用 <button open-type=“getUserInfo”/>:地址:https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/authorize.html#scope-%E5%88%97%E8%A1%A8

userInfo 早不能这样拉授权了,用button组件

回到顶部