diff --git a/pagesInn/inn/farmerStore.vue b/pagesInn/inn/farmerStore.vue index 46dc48a..81d0236 100644 --- a/pagesInn/inn/farmerStore.vue +++ b/pagesInn/inn/farmerStore.vue @@ -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 }