Fix:2903 【商城小程序】农民店铺、村屋租售,寻趣味店铺,视频资讯播放中再点击视频封面播放,两者会出现同时播放情况

This commit is contained in:
modendeveloper
2024-12-19 23:59:15 +08:00
parent b133d0132c
commit 78c83ecaa3
5 changed files with 34 additions and 0 deletions
+6
View File
@@ -102,6 +102,12 @@ export default {
}
},
methods: {
coverPlay(){
this.videoPlayers.forEach(player => {
const playerCtx = uni.createVideoContext(player, this)
playerCtx.pause()
})
},
infoItemViewClick(item, index) {
if(item.contentType === 2) {
// const coverCtx = uni.createVideoContext('coverVideo', this)