- swiper绑定changa或animationfinish事件与点击事件冲突?
使用两个swiperitem把current初始设置为1,并且绑定了changa或者animationfinish事件,会与其中一个点击事件自动执行,当current为0的时候就不会出现这种情况,这是什么原因
2023-08-02 - video的imeupdate事件?
使用uniapp编写微信小程序使用video的timeupdate事件真机调试下控制台会一直打印Invoke event e4_2 in component: components/videoPlayer/videoPlayer,components后的是我的video所在的目录,
2023-07-14 - 动态的增加swiperitem不生效?
<swiper @change="swiperChange" class="swiper" duration="400" :vertical="true" :current="swiperData.current" @touchend="touchEnd" @touchstart="touchStart" :circular="swiperData.circular" @animationfinish="animationfinish" > <swiper-item v-for="(item, index) in rawList" :key="index"> {{ rawList }} <view class="swiper-item"> <VideoPlay :src="item.src" :current="swiperData.current" :id="index"/> </view> </swiper-item> const animationfinish = (e: { detail: { current: number } }) => { const {current} = e.detail; if (current === rawList.length - 2) { rawList.push({ src: "https://xjc.demo.hongcd.com/uploads/20210327/1b72e1b6153cd29df07f5449991e8083.mp4", id: "6" }); console.log(rawList, "滑动到倒数第二个push数据"); }};
2023-07-07