l***@163.com
l***@163.com
  • 发布:2025-02-25 11:10
  • 更新:2025-02-25 11:31
  • 阅读:28

微信小程序getPhoneNumber超过3秒再点击不回调,console报错undefined(reading 'errno')

分类:uni-app

手机型号:小米14
微信版本:8.0.56
uniapp版本:最新

代码:
<button class="u-button login-btn" open-type="getPhoneNumber" @getphonenumber="decryptPhoneNumber">立即登录</button>

场景:
1、打开授权面板迅速点击手机号或不允许,能正常收到回调
2、打开授权面板后超过3秒再点击手机号或不允许,授权面板关闭,没有收到回调,console面板有报错信息

报错信息如下:
MiniProgramError
Cannot read properties of undefined (reading 'errno')
TypeError: Cannot read properties of undefined (reading 'errno')
at Function.success (https://lib/WAServiceMainContext.js:1:1597373)
at <api openBusinessView success callback function>
at https://lib/WAServiceMainContext.js:1:154335
at $c (https://lib/WAServiceMainContext.js:1:718912)
at t.call.then.t._complete_hook.jc.name (https://lib/WAServiceMainContext.js:1:720503)

2025-02-25 11:10 负责人:无 分享
已邀请:
狂人小风

狂人小风

10多分钟前我也遇到这个问题了 微信开发工具上没问题,发布后就用不了,报这个错

要回复问题请先登录注册