cover-view失效的问题
我用cover-view包住video 在工具没问题 我用手机一测 又是这样,这个东西写的我 有点绝望 用cover-view 还出现了catchtap失效的问题 仍然触发其他事件
<cover-view class= "item-video" wx: if = "{{item.video}}" > <video id= 'myvideo{{index}}' src= "{{item.isUrl}}" direction= "0" catchtap= "closeVideo" data-idx= "{{index}}" autoplay= "{{item.isUrl}}" show-play-btn= "{{false}}" show-progress= "{{false}}" loop= "{{true}}" show-fullscreen-btn= "{{false}}" > <cover-image hidden= "{{item.isUrl}}" src= "{{item.videoImg}}" mode= "aspectFill" class= "covimg" catchtap= "openVideo" data-url= "{{item.video}}" data-idx= "{{index}}" ></cover-image> <cover-image hidden= "{{item.isUrl}}" src= "../../img/video.png" class= "icon-video" catchtap= "openVideo" data-url= "{{item.video}}" data-idx= "{{index}}" ></cover-image> </video> </cover-view> |
2 回复
这个是需要实现什么效果?麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)