修复视频不显示支付次数问题

This commit is contained in:
2025-01-21 15:20:05 +08:00
parent fffcdf483b
commit 1be09bf67a
3 changed files with 29 additions and 13 deletions

View File

@@ -5,7 +5,7 @@
play-btn-position="center"
:show-center-play-btn="false"
:show-play-btn="false"
:controls="true"
:controls="!isPlying"
@click.stop="videoClick()"
@loadedmetadata="loadedmetadata"
@timeupdate="timeupdate" @waiting="waiting()" object-fit="cover" @pause="onpause"
@@ -161,7 +161,7 @@
let autoplay = ref(props.item.videoUrl ? true : false)
const emits = defineEmits(['controlstoggles', 'disappear', 'appear', 'waiting', 'videoPlay', 'ended', 'dianzanClick',
'share', 'zhuijuClick', 'popupShow', 'itemMounted', 'toDetail', 'showInfo', 'playStatusChange'
'share', 'zhuijuClick', 'popupShow', 'itemMounted', 'toDetail', 'playStatusChange'
])
function posterClick(){
if(!props.item.videoUrl){
@@ -169,7 +169,9 @@
}
}
function controlstoggles(e) {
emits('controlstoggles', e)
console.log('controlstoggles');
console.log(e);
// emits('controlstoggles', e)
}
function toDetail() {
@@ -190,10 +192,6 @@
let isPlying = ref(false)
watch(() => isPlying.value, (newval) => {
console.log(newval);
emits('showInfo', newval)
})
//是否是第一次加载时的播放,不是暂停再播放
@@ -242,6 +240,7 @@
}
})
// #endif
}
@@ -254,6 +253,7 @@
}
})
// #endif
}