收藏
回答

怎么一升级 这个玩意就报错了 ? 每次升级都要出一堆问题 腾讯呀腾讯

<button class="weui-btn" open-type="getUserInfo" lang="zh_CN" bindgetuserinfo="onGotUserInfo">确认</button>

  //得到用户授权

  onGotUserInfo function

     //用户点击允许授权

    console.log(e.detail.userInfo);


    return;

    



提示这个错误

VM520:1 thirdScriptError

Cannot read property 'detail' of undefined;at api login success callback function

TypeError: Cannot read property 'detail' of undefined

    at be.onGotUserInfo (http://127.0.0.1:55084/appservice/__APP__/appservice.js:5354:19)

    at success (http://127.0.0.1:55084/appservice/__APP__/appservice.js:5337:17)

    at http://127.0.0.1:55084/appservice/appservice?t=1577241553357:9:21250

    at Function.o.<computed> (http://127.0.0.1:55084/appservice/__dev__/WAService.js:1:1300810)

    at Object.success (http://127.0.0.1:55084/appservice/__dev__/WAService.js:1:125836)

    at b (http://127.0.0.1:55084/appservice/__dev__/WAService.js:1:526517)

    at g (http://127.0.0.1:55084/appservice/__dev__/WAService.js:1:526760)

    at http://127.0.0.1:55084/appservice/__dev__/WAService.js:1:528150

    at Audit_setTimeout_pages/login/login (http://127.0.0.1:55084/appservice/__dev__/asdebug.js:1:11973)

    at http://127.0.0.1:55084/appservice/appservice?t=1577241553357:9:42005

回答关注问题邀请回答
收藏

2 个回答

登录 后发表内容
问题标签