| | |
| | | // 跳转 |
| | | this.gotoPage(data.catalog, data.page, () => {}); |
| | | }, |
| | | // 点击视频关闭其他 |
| | | closeVideo() { |
| | | let allVideo = ( |
| | | this.container ? this.container : document |
| | |
| | | item.addEventListener('playing',(item) => { |
| | | const path = item.srcElement.src |
| | | const videoList = Array.from(allVideo); |
| | | console.log('播放',item); |
| | | for (let cindex = 0; cindex < videoList.length; cindex++) { |
| | | const citem = videoList[cindex]; |
| | | if(citem.currentSrc != path && path) { |
| | |
| | | }) |
| | | } |
| | | } |
| | | // allVideo = Array.from(allVideo); |
| | | // if(allVideo.length) { |
| | | // for (let index = 0; index < allVideo.length; index++) { |
| | | // const item = allVideo[index]; |
| | | // if(item.currentSrc != path) { |
| | | // item.pause() |
| | | // } |
| | | // } |
| | | // } |
| | | }, |
| | | components: { |
| | | pageHeader, |