<button class='bottom' type='primary' open-type="getUserInfo" lang="zh_CN" bindgetuserinfo="bindGetUserInfo">
授权登录
</button>
Component "pages/login/login" does not have a method "bindGetUserInfo" to handle event "getuserinfo".
<button class='bottom' type='primary' open-type="getUserInfo" lang="zh_CN" bindgetuserinfo="bindGetUserInfo">
授权登录
</button>
Component "pages/login/login" does not have a method "bindGetUserInfo" to handle event "getuserinfo".
1 个回复
7***@qq.com - 90后IT
将bindgetuserinfo改成@getuserinfo=“getuserinfo” ,再添加withCredentials=“true”,就可以调用了
例如:<button open-type="getUserInfo" @getuserinfo="getuserinfo" withCredentials="true">