bindtap与bindgetuserinfo在ios上冲突的问题?
发布于 7 年前 作者 jing24 11507 次浏览 来自 官方Issues

刚才发了一个关于wx.login的问题,最后发现不是这个api的问题。无法登录的原因是因为bindtapbindgetuserinfo在IOS系统中冲突所造成的。在开发者工具中两者都会执行,在安卓真机中两者也会执行,但在ios中只会执行bindtap,而不会执行bindgetuserinfo

代码片段:https://developers.weixin.qq.com/s/iVtz7bmK7fcp

图一为IOS中的console,图二为安卓中的console.

1 回复
<view bindtap="fn_cancel">
  <button bindgetuserinfo='fn_getUser' open-type='getUserInfo'>立即登录</button>
</view>

之前遇到过这种问题,我套多个view组件解决的。

回到顶部