微信小程序button设置了open-type=“share“的按钮如何禁止向上冒泡【微信小程序】

47 阅读1分钟

定义一个空事件即可 catchtap="share"

<button style="margin-bottom: 10rpx;width: 40px;height: 40px;padding: 0;" open-type="share" catchtap="share"  :data-yq_order_id="tabItem.order_id" :data-goods_id="tabItem.goods_team_info.goods_id" :data-team_result="tabItem.team_result">