登录失败 Error: 获取微信用户信息失败,请检查网络状态
学习本章节的时候出现获取用户信息失败;
查阅网络资料,好像是接口弃用了,要用button组件,想问一下怎么解决使用;
失败信息如下:
登录失败 Error: 获取微信用户信息失败,请检查网络状态
at fail (http://127.0.0.1:56073/appservice/common/vendor.js:6718:24)
at Function.function.o.(anonymous function) (http://127.0.0.1:56073/appservice/dev/WAService.js:1:775794)
at Object.fail (http://127.0.0.1:56073/appservice/dev/WAService.js:1:101961)
at http://127.0.0.1:56073/appservice/dev/WAService.js:1:223444
at g (http://127.0.0.1:56073/appservice/dev/WAService.js:1:223613)
at Function. (http://127.0.0.1:56073/appservice/dev/WAService.js:1:224477)
at t.function.setTimeout (http://127.0.0.1:56073/appservice/appservice?t=1555392782105:1382:10471)
at http://127.0.0.1:56073/appservice/dev/WAService.js:1:101961
at http://127.0.0.1:56073/appservice/dev/WAService.js:1:90328