当前位置:   article > 正文

uniapp开放小程序获取手机号失败 getPhoneNumber:fail no permission 没有权限_uniapp getphonenumber:fail no permission

uniapp getphonenumber:fail no permission

uniapp开放小程序获取手机号失败 getPhoneNumber:fail no permission

控制台打印返回信息、

"errMsg": "getPhoneNumber:fail no permission"
  • 1
{"type":"getphonenumber","timeStamp":39720,"target":{"id":"","offsetLeft":25,"offsetTop":242,"dataset":{"eventOpts":[["getphonenumber",[["phoneLogin",["$event"]]]]]},"errMsg":"getPhoneNumber:fail no permission"},"currentTarget":{"id":"","offsetLeft":25,"offsetTop":242,"dataset":{"eventOpts":[["getphonenumber",[["phoneLogin",["$event"]]]]]}},"mark":{},"detail":{"errMsg":"getPhoneNumber:fail no permission"},"mut":false,"_userTap":true,"mp":{"type":"getphonenumber","timeStamp":39720,"target":{"id":"","offsetLeft":25,"offsetTop":242,"dataset":{"eventOpts":[["getphonenumber",[["phoneLogin",["$event"]]]]]}},"currentTarget":{"id":"","offsetLeft":25,"offsetTop":242,"dataset":{"eventOpts":[["getphonenumber",[["phoneLogin",["$event"]]]]]}},"mark":{},"detail":{"errMsg":"getPhoneNumber:fail no permission"},"mut":false,"_userTap":true}}
  • 1

查了官方资料,必须要公司注册,且微信认证过的小程序,才能获取到手机号的接口权限,

登录小程序后台、

设置菜单、查看自己是否认证 、
重点!!!
可以复用 公众号的资质,无需再花费 300 认证费了哦!!
在这里插入图片描述

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/人工智能uu/article/detail/950240
推荐阅读
相关标签
  

闽ICP备14008679号