Fix:3363 【商城小程序】农民店铺的视频资讯,视频播放后每次点击视频播放按钮外的区域都会增加浏览量

This commit is contained in:
linxi
2025-04-21 14:15:15 +08:00
parent e4428f3366
commit 19632a69ad
+2 -1
View File
@@ -470,10 +470,10 @@ export default {
})
},
infoItemViewClick(item, index) {
const playerId = 'video-item' + index
if(item.type === 2) {
const coverCtx = uni.createVideoContext('coverVideo', this)
coverCtx.pause()
const playerId = 'video-item' + index
this.activeVideo = 'video-item' + index
if(this.videoPlayers.includes(playerId)) {
this.videoPlayers.forEach(player => {
@@ -490,6 +490,7 @@ export default {
})
}
}
if(this.videoPlayers.filter(id => id === playerId).length > 1) return
const params = {
countyFamousNewsId: item.id
}