小程序video标签 ios bind事件失效
发布于 4 年前 作者 xiayin 5607 次浏览 来自 问答
  • 当前 Bug 的表现(可附上截图)
  • 预期表现
  • 复现路径
  • 提供一个最简复现 Demo

小程序video标签 ios bind事件失效,点击video标签事件不生效

3 回复

具体是什么事件失效?是微信版本7.0.4的问题?系统版本是什么?

bind事件都失效,不确定是微信版本的问题,苹果iOS12.2

<video class='detailVideo' wx:for="{{ detail.videos }}" wx:for-index="idx" wx:for-item="item" wx:key="{{item}}" src='{{item}}' bindtap='previewVideo' bindlongpress='rmVideo' bindfullscreenchange="changeVideoScreen" data-idx="{{item}}" id="video{{item}}" autoplay></video>
rmVideo: function(e) {
   var that = this;
   wx.showActionSheet({
     itemList: ['删除'],
     success(res) {
       console.log(res);
       that.setData({
         ["detail.videos"]: Util.RmArrayByItem(that.data.detail.videos, e.currentTarget.dataset.idx)
       })
     },
     fail(res) {
       console.log(res.errMsg)
     }
   })
 },

问题:我想要做的 bindlongpress 长按事件,触发删除弹窗,然后就发现所有的bind事件都没有进来

第一次提问的都是这样“这个不好使了,就不提供代码片段、不提供截图、不提供有用信息,就是不好使了,其它我不管”

回到顶部