微信小程序实例:move事件导致navigator组件和tap事件无效

在微信小程序中,遇到使用catch绑定move事件后,navigator组件的url及tap事件失效的问题。测试发现,bindmovestart事件能解决部分问题,但navigator组件在特定目录结构下无法正常跳转。经过排查,错误可能与图片加载失败导致的编译错误有关。此外,官方文档更新提示,navigator组件需指定open-type属性以正确跳转tabBar页面。
摘要由CSDN通过智能技术生成

        今天,微信小程序终于发布了,激动的同时也在加紧最后公司项目的测试,结果发现了一个问题,就是在使用catch绑定move事件的时候,无法触发navigator组件的url和tap事件。测试如下:

test.wxml::

<view class="flex-h" style="width: 750rpx; height: 200rpx; border: solid 1px green;" catchtouchstart="slideTouchStart" catchtouchmove="slideTouchMove" catchtouchend="slideTouchEnd">
    <view class="item" bindtap="testTap" style="width: 100rpx; height: 100rpx; border: solid 1px red;">
    1111
    </view>
    <view class="item" catchtap="testTap" style="width: 100rpx; height: 100rpx; border: solid 1px red;">
    222
    </view>
    <view class="item" catchtap="testTap" style="width: 100rpx; height: 100rpx; border: solid 1px red;">
    333
    </view>
 
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值