|
@@ -86,19 +86,21 @@ export default {
|
|
|
this.topADList = res.data;
|
|
|
},
|
|
|
play(item, ele, index, idx) {
|
|
|
- this.showVideo = true
|
|
|
- this.videoList[index].videoCourseList[idx].isShow = true
|
|
|
- this.index = index
|
|
|
- this.idx = idx
|
|
|
- const elVideo = document.getElementById('el-video-' + ele.id)
|
|
|
- elVideo.addEventListener("ended", () => {
|
|
|
- elVideo.pause();
|
|
|
- this.showVideo = false
|
|
|
- this.videoList[index].videoCourseList[idx].isShow = false
|
|
|
- });
|
|
|
- elVideo.addEventListener("play", () => {
|
|
|
- this.submit(item, ele, 1)
|
|
|
- });
|
|
|
+ window.open(this.videoURL(ele.videoKey), '_blank')
|
|
|
+ // this.showVideo = true
|
|
|
+ // this.videoList[index].videoCourseList[idx].isShow = true
|
|
|
+ // this.index = index
|
|
|
+ // this.idx = idx
|
|
|
+ // const elVideo = document.getElementById('el-video-' + ele.id)
|
|
|
+ // elVideo.addEventListener("ended", () => {
|
|
|
+ // elVideo.pause();
|
|
|
+ // this.showVideo = false
|
|
|
+ // this.videoList[index].videoCourseList[idx].isShow = false
|
|
|
+ // });
|
|
|
+ // elVideo.addEventListener("play", () => {
|
|
|
+ // });
|
|
|
+ // window.open(item.clickUrl, '_blank')
|
|
|
+ this.submit(item, ele, 1)
|
|
|
},
|
|
|
playAd(item) {
|
|
|
this.submit(item, '', 2)
|