如何触发bindgetuserinfo
来源:6-2 个人中心-扫码功能开发
fengyunzhu
2018-05-19
<button v-if='!userinfo' open-type='getUserInfo' bindgetuserinfo='onGotUserInfo'>getUserInfo</button>
methods: {
onGotUserInfo (e) {
showSuccess('登录成功!')
}
}
如何触发bindgetuserinfo
总是报错
Do not have onGotUserInfo handler in current page: pages/me/main. Please make sure that onGotUserInfo handler has been defined in pages/me/main, or pages/me/main has been added into app.json
写回答
3回答
-
fengyunzhu
提问者
2018-05-20
<button
v-if='!userinfo'
open-type='getUserInfo'
@getuserinfo='onGotUserInfo'
>
getUserInfo
</button>
@getuserinfo已经解决
00 -
784510104
2018-05-20
怎么获取到userInfo呢
00 -
慕仙1985628
2018-05-20
你去看看你的dist文件夹下的src有me这个文件么
032018-05-20
相似问题