button组件嵌套open-data导致事件失效?
发布于 5 年前 作者 lei66 1924 次浏览 来自 官方Issues

https://developers.weixin.qq.com/s/EwMOzYmI71kf

button中嵌套open-dataopen-data显示的用户头像,期望的是点击用户头像,获取用户信息。结果__bindgetuserinfo__根本不会触发,结果__bindtap__事件都不触发。

<view class="demo" bindtap="viewtap">
    <button open-type="getUserInfo" bindtap="buttontap" bindgetuserinfo="userinfo">
        <open-data type="userAvatarUrl"></open-data>
    </button>
</view>
1 回复

就没人能回答???官方人员呢?

回到顶部