|
@@ -74,7 +74,7 @@ export default defineComponent({
|
|
const activeItem = data.itemList[popupData.activeIndex]
|
|
const activeItem = data.itemList[popupData.activeIndex]
|
|
if (activeItem.type != 'VIDEO') return
|
|
if (activeItem.type != 'VIDEO') return
|
|
if (value == 'hidden') {
|
|
if (value == 'hidden') {
|
|
- isPlay.value = !activeItem.videoEle.paused
|
|
|
|
|
|
+ isPlay.value = !activeItem.videoEle?.paused
|
|
togglePlay(activeItem, false)
|
|
togglePlay(activeItem, false)
|
|
} else {
|
|
} else {
|
|
// 页面显示,并且
|
|
// 页面显示,并且
|
|
@@ -557,10 +557,11 @@ export default defineComponent({
|
|
activeData.isAnimation = true
|
|
activeData.isAnimation = true
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (
|
|
|
|
- (item?.adviseStudyTimeSecond < 8 && index < nextIndex!) ||
|
|
|
|
- (nextItem?.adviseStudyTimeSecond < 8 && index > nextIndex!)
|
|
|
|
- ) {
|
|
|
|
|
|
+ const videoEle = item.videoEle
|
|
|
|
+ const nextVideo = nextItem.videoEle
|
|
|
|
+ if (videoEle && videoEle.duration < 8 && index < nextIndex!) {
|
|
|
|
+ activeData.isAnimation = false
|
|
|
|
+ } else if (nextVideo && nextVideo.duration < 8 && index > nextIndex!) {
|
|
activeData.isAnimation = false
|
|
activeData.isAnimation = false
|
|
} else {
|
|
} else {
|
|
activeData.isAnimation = true
|
|
activeData.isAnimation = true
|