Browse Source

Merge branch 'develop' of Software/android-cloud-H5 into release/v5.4.1

huangxiaojing 2 years ago
parent
commit
b85d0b53da
1 changed files with 15 additions and 13 deletions
  1. 15 13
      pages/activity/invite-user/guide-pc.vue

+ 15 - 13
pages/activity/invite-user/guide-pc.vue

@@ -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)