Fix:3363 【商城小程序】农民店铺的视频资讯,视频播放后每次点击视频播放按钮外的区域都会增加浏览量
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user