<movable-area >
<movable-view >
<view bindtap="audioPlay">
111
</view>
</movable-area >
</movable-view >
这样写是不过用的,尝试了很多种方法,z-index,catchtap,等等方法,后来经过仔细分析,这个盒子现在是拖拽盒子,里面的任何事物都是在拖拽盒子里面的,拖拽盒子里面有三个拖拽事件
开始
catchtouchstart=“touchStart”
拖拽中
catchtouchmove=“touchMove”
结束
catchtouchend=“touchEnd”
最后经过尝试,自己的分析是对的
<movable-area >
<movable-view >
<view catchtouchend="audioPlay">
111
</view>
</movable-area >
</movable-view >
所有事件基本是在开始和拖拽中执行,判断都在最后,所以直接使用拖拽最后的那个拖拽事件就好了
我会把我遇到的所有bug进行分析和解决,努力帮助跟我一样的前端小伙伴们成长!!!