收藏
回答

button中open-type="contact",加入拓展逻辑后,不能拉起客户回话了?

微信小程序中button中open-type="contact",是不是不能加拖拽方法。为啥加入拖拽方法后不能点击弹出客服回话了。

<button class="floating-button" open-type="contact"

        style="right: {{position.right}}rpx; bottom: {{position.bottom}}rpx;"

        catchtouchstart="handleTouchStart"

        catchtouchmove="handleTouchMove"

        catchtouchend="handleTouchEnd"

>

                <image class="icon-32" src="/static/index/contact.png"></image>

</button>

这样写只能拖拽,但是不能弹出客服回话了,open-type="contact"也没没有js方法,在button 外包一层view也不行。这是什么原因。

回答关注问题邀请回答
收藏

1 个回答

  • 启年
    启年
    2025-03-16

    button外边用movable-view套一下看看效果呢

    2025-03-16
    有用
    回复
登录 后发表内容