通过button实现微信登录,获取用户信息没有了userInfo变量,求解?

发布于 7 年前作者 odong6992 次浏览最后编辑 7 年前来自 ask
WXOPEN Club 内容图片

开发者工具上可以 ,手机上真机调试没有了,返回参数如上图。页面如下:

<button class=‘start’ open-type=“getUserInfo” bindgetuserinfo=“getUserInfo” >微信登录</button>

调试基础库:2.7.0

1 回复
jun80
jun801 楼6 年前

微信版本是测试版本?具体是哪个版本?提供下能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)