<button class='fs32 fw_b text-white' bindtap="userInfoHandler" hover-class='none'>授权登录</button>
一直报下面这样的错误 任何提示也没有,编译时基础库也调到2.14.0了 搞不懂是啥用的
wx.getUserProfile is not a function; [Component] Event Handler Error @ pages/authorizeLogin/authorizeLogin#bound userInfoHandler
果然还是有问题,现在正式环境时不时提示
昵称: 细莫商城
时间: 2021-03-09 11:46:25
次数: 5分钟 11次
类型:脚本错误
错误样例: wx.getUserProfile is not a function
登录公众平台小程序运维中心可查看更多错误信息
新版登录代码实现:https://viencoding.com/article/300
@社区技术运营专员-Jahozheng
getUserProfile返回的加密信息,解密出来为什么不包含openId、unionId了!!!
我想问下,你们更改完成后,电脑端微信打开小程序,能获取授权吗?
我的手机没问题,开发工具也没问题,pc点击无反应
登录逻辑的简单封装,根据后台接口再做调整即可https://blog.csdn.net/qq_40026668/article/details/114838609
文档地址:https://developers.weixin.qq.com/miniprogram/dev/api/open-api/user-info/wx.getUserProfile.html
希望对你有帮助 https://developers.weixin.qq.com/community/develop/article/doc/00040885c386f81e96cbf93cf51013
开发者工具调试目前只支持这几个基础库版本