catchtouchstart 导致 open-type="share" 失效?
发布于 6 年前 作者 jiekong 8697 次浏览 来自 官方Issues
    <view wx:if="{{showShareWindow}}" class="share_float_window" bindtap="hideMineHelp" catchtouchstart="hideMineHelp">
        <button class="share_btn_text" open-type="share" hover-class="btn_hover">发送到群聊 / 好友</button>
    </view>

    hideMineHelp() {
             this.setData({
                showShareWindow: false
            });
    },

基础库:2.10.1 ,终端:开发工具,Android,
问题:使用以上代码,会出现button 点击无效,open-type="share" 属性无效,将catchtouchstart 改成 catchtouchend 正常运行。
难道我用的姿势错了?
回到顶部