xuqiaoying %!s(int64=3) %!d(string=hai) anos
pai
achega
927d874167
Modificáronse 2 ficheiros con 15 adicións e 77 borrados
  1. 5 40
      pages3/live/detail.vue
  2. 10 37
      pages3/polyv/detail.vue

+ 5 - 40
pages3/live/detail.vue

@@ -785,7 +785,6 @@ export default {
     this.originUnload()
   },
   onHide() {
-    console.log('index:--onHide')
     this.originUnload()
   },
   mounted() {
@@ -897,7 +896,6 @@ export default {
         this.$store.commit("setPlaySectionId", { playSectionId: item.sectionId || item.menuId });
         this.$store.commit("setPlayVID", { playVID: item.recordingUrl });
         this.$store.commit("updatePlayNextId", playNextId);
-        // console.log("this.playNoteVideo");
         
         this.playNoteVideo(item)
       } else {
@@ -907,7 +905,6 @@ export default {
     // 原来的mouted内容
     originOnMount() {
       uni.$on("changeSection", (oldSectionId) => {
-        // console.log(this.playVID);
 				this.hasStart = false;
         this.photoConfig = false;
         this.photoIndex = 0;
@@ -922,7 +919,6 @@ export default {
         this.postStudyRecord(0, oldSectionId);
       });
       uni.$on("getSection", (item) => {
-        // console.log('触发事件-=====')
         //清除直播
           this.hasStart = false;
         this.isPlayRebuild = item.rebuild;
@@ -958,7 +954,6 @@ export default {
         this.channelItem = item;
       });
       uni.$on("isRebuild", (item) => {
-        // console.log(item);
         this.isRebuild = item;
       });
       this.updateChapterOpen(true);
@@ -1017,7 +1012,6 @@ export default {
 				orderGoodsId:this.orderGoodsId,
 				courseId:this.courseId
 			}).then(res => {
-				// console.log(res,'liveres')
 				this.updateLiveLast(res.data.data)
 			})
 		},
@@ -1030,7 +1024,6 @@ export default {
 				orderGoodsId:this.orderGoodsId,
 				courseId:this.courseId
 			}).then(async res => {
-				console.log(res,'couse')
 				if(res.data.data) {
           this.moduleId = res.data.data.moduleId
           this.chapterId = res.data.data.chapterId
@@ -1411,7 +1404,6 @@ export default {
         clearInterval(this.timer);
       }
       this.startStatus = true;
-      console.log('11111111111')
       this.initLive();
     },
     setLiveOption(status) {
@@ -1505,7 +1497,6 @@ export default {
     },
     //播放笔记视频
     async playNoteVideo(item) {
-      console.log(item, "noteItem");
       if (this.timer) {
         clearInterval(this.timer);
       }
@@ -1538,13 +1529,12 @@ export default {
         var polyvPlayerContext = this.selectComponent("#playerVideo");
         polyvPlayerContext.changeVid(item.recordingUrl);
       } else {
-				console.log(2)
         this.vid = item.recordingUrl;
 				
       }
       this.recordObj = null;
       this.recordObj = await this.getRecordLast();
-      console.log('this.recordObj:', this.recordObj)
+      // console.log('this.recordObj:', this.recordObj)
       this.needSeek = true; //跳转到播放记录
       this.startStatus = true;
       // 提交学习记录
@@ -1575,7 +1565,6 @@ export default {
       this.noteId = item.noteId;
       //没视频播放
       if (this.playSectionId == 0) {
-        console.log("即将跳到笔记位置1");
         this.$u.toast("即将跳到笔记位置");
         this.$store.commit("setPlaySectionId", {
           playSectionId: item.sectionId || item.menuId,
@@ -1584,7 +1573,6 @@ export default {
         this.playNoteVideo(item);
       } else {
         //正在看当前笔记视频
-        console.log("即将跳到笔记位置2");
         this.$u.toast("即将跳到笔记位置");
         //跳到笔记时刻
         var polyvPlayerContext = this.selectComponent("#playerVideo");
@@ -1609,12 +1597,10 @@ export default {
       var polyvPlayerContext = this.selectComponent("#playerVideo");
       let noteDate = this.$method.getZeroTime();
       let noteSecond = polyvPlayerContext.getCurrentTime();
-      console.log(noteSecond, 698);
       if (!noteSecond) {
         if (noteSecond == 0) {
           //播放结束
           noteSecond = polyvPlayerContext.getDuration();
-          console.log(noteSecond, 63398);
         }
         if (!noteSecond) {
           this.$u.toast("视频暂未开始");
@@ -1669,13 +1655,11 @@ export default {
       });
     },
     clearCtx() {
-      console.log(4234);
       this.placeholder = "您可以在这里输入答疑内容";
       this.ctxValue = "";
       this.assignUserId = 0;
     },
     focusNote(event) {
-      console.log('event', event.detail.height)
       this.bottomHeight = event.detail.height
     },
     blurNote() {
@@ -1728,7 +1712,6 @@ export default {
       this.postAnswer();
     },
     postStudyRecord(status = 0, sectionId = this.playSectionId) {
-      console.log("status", status);
       let currentTime = 0;
       let PlayDuration = 0;
       var polyvPlayerContext = this.selectComponent("#playerVideo");
@@ -1763,7 +1746,7 @@ export default {
       if (status > 0) {
         data.status = status;
       }
-      console.log("提交接口", data);
+      // console.log("提交接口", data);
       this.$api.studyRecord(data).then((res) => {
         if (res.data.code == 200) {
           if (status > 0) {
@@ -1771,8 +1754,6 @@ export default {
             let chapterId = this.chapterId || 0;
             let playNextIdisRebuild = `moduleId${moduleId}chapterId${chapterId}sectionId${sectionId}isRebuild`;
             let playNextId = `moduleId${moduleId}chapterId${chapterId}sectionId${sectionId}`; //拼接对应章节唯一id
-            console.log(playNextId, "playNextId");
-            console.log(playNextIdisRebuild, "playNextIdisRebuild");
 
             uni.$emit("playNext" + playNextIdisRebuild, {
               fromRebuild: this.isRebuild,
@@ -1788,11 +1769,9 @@ export default {
             title: res.data.msg,
           });
         }
-        console.log(res, "res");
       });
     },
     uploadFile(options, int) {
-			console.log(options)
       var self = this;
       return new Promise((resolve, reject) => {
         var data = {
@@ -1889,7 +1868,7 @@ export default {
                 },
               });
             } else {
-              console.log("无需压缩");
+              // console.log("无需压缩");
               const waitUpload = await self.uploadFile(self.avatarUrl, 0);
               resolve(waitUpload);
             }
@@ -1938,7 +1917,6 @@ export default {
     restart() {
       var polyvPlayerContext = this.selectComponent("#playerVideo");
       polyvPlayerContext.seek(0);
-      console.log("seek1");
       clearTimeout(this.toastTimer);
       this.videoToastShow = false;
     },
@@ -1958,16 +1936,14 @@ export default {
           orderGoodsId: this.orderGoodsId,
         }
       }).then((res) => {
-        console.log('直播的用户学习日志:', res)
+        // console.log('直播的用户学习日志:', res)
       })
     },
     onStateChange(newstate, oldstate) {
-      console.log('直播视频的开始播放事件', newstate.detail.newstate,this.needSeek)
       if (newstate.detail.newstate == "playing") {
         if (this.needSeek) {
           var polyvPlayerContext = this.selectComponent("#playerVideo");
           if (this.recordObj.videoCurrentTime) {
-            console.log("seek2");
             polyvPlayerContext.seek(this.recordObj.videoCurrentTime);
             this.seekTime = this.$method.secondToDate(
               this.recordObj.videoCurrentTime
@@ -1978,7 +1954,6 @@ export default {
             }, 3000);
           } else {
             polyvPlayerContext.seek(1); //避免相同节继续播放
-            console.log("seek3");
           }
 
           polyvPlayerContext.play();
@@ -2150,7 +2125,6 @@ export default {
       ctx.takePhoto({
         quality: "high",
         success: (res) => {
-          console.log(res.tempImagePath);
           self.avatarUrl = res.tempImagePath;
           this.isTaking = false;
           // self.submit();
@@ -2179,7 +2153,6 @@ export default {
      * 进入全屏
      */
     fullscreenchange(event) {
-      console.log('进入全屏',event);
       if (event.detail.direction == "vertical") {
         this.navShow = true;
       } else if (event.detail.direction == "horizontal") {
@@ -2187,16 +2160,13 @@ export default {
       }
     },
     getGoodsDetail() {
-      console.log('goodsDetail(------')
       let self = this;
       // goods/'+ data
       this.$api.goodsDetail(this.goodsId).then((res) => {
         self.goodsData = res.data.data;
-        console.log(self.gradeId, "班级ID");
         // this.courseBusiness();
         // this.courseHandouts();
         self.getMenuList();
-				console.log(self.goodsData,'self.goodsData')
         //获取节笔记
         this.getNoteList();
         if (self.goodsData.goodsPlayConfig) {
@@ -2217,7 +2187,6 @@ export default {
           );
           if (self.goodsPhotographConfig.photoNum > 0) {
             self.photoNum = self.goodsPhotographConfig.photoNum;
-            console.log(self.photoNum, 777777);
           }
         }
       });
@@ -2261,7 +2230,6 @@ export default {
               }
             }
 
-            console.log('--this.menuList:-', this.menuList)
           }
         });
     },
@@ -2300,20 +2268,17 @@ export default {
     openDocument() {
       let self = this;
       let url = this.$method.splitImgHost(this.courseHandoutsData.handoutsUrl);
-      console.log(url);
       uni.downloadFile({
         url: url,
         success: function (res) {
-          console.log(999);
           var filePath = res.tempFilePath;
           uni.openDocument({
             filePath: filePath,
             showMenu: self.courseHandoutsData.canDownload == 1 ? true : false,
             success: function (res) {
-              console.log(res, "打开文档成功");
+              // console.log(res, "打开文档成功");
             },
             fail: function (err) {
-              console.log(err);
               uni.showToast({
                 icon: "none",
                 title: "文档地址错误",

+ 10 - 37
pages3/polyv/detail.vue

@@ -808,7 +808,6 @@ export default {
     this.originUnload()
   },
   mounted() {
-    console.log('index:--mounted')
   },
   methods: {
     ...mapMutations(["updateChapterOpen","updateLiveLast"]),
@@ -829,7 +828,6 @@ export default {
     },
     // 点击课程目录
     cMenu(item, index) {
-      console.log('item', item)
       this.subIndex = index
       this.newActiveSubjectId = item.subjectId
       // if (item.subjectId != 0) {
@@ -977,13 +975,12 @@ export default {
             this.goodsTeacher.push(data)
           }) 
         }
-        console.log(this.goodsTeacher,'this.goodsTeacher', this.courseId);
+        // console.log(this.goodsTeacher,'this.goodsTeacher', this.courseId);
         this.goodsTeacher.forEach((item) => {
           if(item.courseList.some(x => x.courseId == this.courseId)){
             this.teacherList = item.teaList
           }
         })
-        console.log(this.teacherList,'this.teacherList');
       }) 
     },
     
@@ -1003,7 +1000,7 @@ export default {
         //   this.getAnswerList();
         // }, 5000);
         let noteSecond = Number(this.option.noteSecond);
-        console.log('noteSecondnoteSecond:', noteSecond, this.option)
+        // console.log('noteSecondnoteSecond:', noteSecond, this.option)
         if (noteSecond > 0) {
           //我的消息跳过来,播放节
           let item = {
@@ -1029,7 +1026,7 @@ export default {
     // 原来的mouted内容
     originMounted() {
       uni.$on("changeSection", (oldSectionId) => {
-        console.log('originMounted->playVID:', this.playVID, oldSectionId);
+        // console.log('originMounted->playVID:', this.playVID, oldSectionId);
           this.hasStart = false;
         this.photoConfig = false;
         this.photoIndex = 0;
@@ -1097,7 +1094,7 @@ export default {
       this.closePlv();
       //移除所有的事件监听器
       uni.$off();
-      console.log('timer', this.timer, 'lockTimer:', this.lockTimer, 'studyTimer:', this.studyTimer);
+      // console.log('timer', this.timer, 'lockTimer:', this.lockTimer, 'studyTimer:', this.studyTimer);
       this.clearTimer && clearTimeout(this.clearTimer)
       this.toastTimer && clearTimeout(this.toastTimer)
       this.studyTimer && clearInterval(this.studyTimer)
@@ -1130,7 +1127,6 @@ export default {
         })
       })
       
-      console.log('findResult:', findResult)
       this.jump(findResult, 1)
     },
     // 进入学习
@@ -1361,7 +1357,7 @@ export default {
 					this.$store.commit("setPlaySectionId", { playSectionId: res.data.data.sectionId });
 					this.$store.commit("setPlayVID", { playVID: res.data.data.recordingUrl });
 
-          console.log('playVID:', this.playVID, 'playSectionId-', this.playSectionId, 'moduleId:', this.moduleId,'chapterId:', this.chapterId, 'courseId:', this.courseId)
+          // console.log('playVID:', this.playVID, 'playSectionId-', this.playSectionId, 'moduleId:', this.moduleId,'chapterId:', this.chapterId, 'courseId:', this.courseId)
 					this.sectionItem = res.data.data;
           await this.getPhotoLastRecord() // 获取拍照历史
 						this.playVideo(res.data.data)
@@ -1420,7 +1416,7 @@ export default {
                   this.reMenuList = []
                   this.$nextTick(() => {
                   	this.reMenuList = res.data.rows;
-                  	console.log(this.reMenuList,'this.reMenuList1')
+                  	// console.log(this.reMenuList,'this.reMenuList1')
                   })
                 } else {
                   this.reMenuList = [];
@@ -1469,7 +1465,6 @@ export default {
           this.$api
             .reMenuList({ courseId: this.courseId, gradeId: this.gradeId,orderGoodsId: this.orderGoodsId, })
             .then((res) => {
-              console.log("noRebuild1");
               if (res.data.code == 200) {
                 for (let i = 0; i < res.data.rows.length; i++) {
                   let item = res.data.rows[i];
@@ -1489,7 +1484,6 @@ export default {
           this.$api
             .reMenuList({ courseId: this.courseId, gradeId: this.gradeId,orderGoodsId: this.orderGoodsId, })
             .then((res) => {
-              console.log("noRebuild2");
               if (res.data.code == 200) {
                 res.data.rows[index].name = res.data.rows[index].menuName;
                 res.data.rows[index].id = res.data.rows[index].menuId;
@@ -1505,7 +1499,6 @@ export default {
               gradeId: this.gradeId,
             })
             .then((res) => {
-              console.log("Rebuild2");
               if (res.data.code == 200) {
                 if (res.data.rows.length) {
                   // for (let i = 0; i < res.data.rows.length; i++) {
@@ -1564,8 +1557,6 @@ export default {
         this.$api
           .reMenuList({ courseId: this.courseId, gradeId: this.gradeId ,orderGoodsId: this.orderGoodsId,})
           .then((res) => {
-            console.log("noRebuild3-->this.courseId:", this.courseId);
-            console.log("noRebuild3index", index);
             if (res.data.code == 200) {
               res.data.rows[index].name = res.data.rows[index].menuName;
               res.data.rows[index].id = res.data.rows[index].menuId;
@@ -1595,7 +1586,6 @@ export default {
 			}).then(res => {
 				let nowTime = Number(new  Date().getTime()/1000).toFixed(0)
 				// this.livingItem = res.data.data[0]
-        console.log('res.data.data---', res.data.data)
         if (res.data.data) {
 				this.livingItem = res.data.data.find(item => item.liveStartTime<=nowTime&&item.liveEndTime>nowTime);
         }
@@ -1606,7 +1596,6 @@ export default {
 				let self = this;
 				this.getCameraSetting();
 				this.$api.getbaseprofiletplists({ goodsId: self.goodsId,orderGoodsId: this.orderGoodsId, }).then((res) => {
-				  // console.log(res, "res1");
 				  if (res.data.code === 200 && res.data.rows.length) {
 				    if (res.data.rows[0].keyValue) {
 				      self.$api.getbaseprofiletpId(self.goodsId).then((baseRes) => {
@@ -1619,7 +1608,6 @@ export default {
 				                orderGoodsId: self.orderGoodsId,
 				              })
 				              .then((result) => {
-				                console.log(result, "result");
 				                if (result.data.code === 200) {
 				                  if (
 				                    !result.data.data ||
@@ -1863,7 +1851,6 @@ export default {
         this.$api
           .coursePhotoRecord(data)
           .then((res) => {
-						console.log(res,'postCoursePhotoRecord')
             if (res.data.code == 200) {
               resolve();
             } else {
@@ -1892,9 +1879,7 @@ export default {
     configPhoto() {
       var polyvPlayerContext = this.selectComponent("#playerVideo");
       let totalVideoTime = polyvPlayerContext.getDuration();
-      // console.log('totalVideoTime总时长:', totalVideoTime, 'this.photoList:', this.photoList)
       let duration = polyvPlayerContext.getCurrentTime();
-      // console.log('取当前播放的时间点:', duration)
       let photoNum = this.photoNum;
       if (!this.photoConfig) {
         this.photoConfig = true;
@@ -1960,10 +1945,10 @@ export default {
           // 	this.photoList.push(s)
           // 	initSpace+=spaceTime
           // }
-          console.log(this.photoList, "随机拍照时间数组11", photoNum);
+          // console.log(this.photoList, "随机拍照时间数组11", photoNum);
           this.postCoursePhotoRecord(true); //提交随机拍照时间数组
         }
-        console.log(this.photoList, "随机拍照时间数组");
+        // console.log(this.photoList, "随机拍照时间数组");
         //兼容已有观看历史
         for (let i = 0; i < this.photoList.length - 1; i++) {
           if (
@@ -1971,12 +1956,10 @@ export default {
             this.photoList[i + 1] > duration
           ) {
             this.photoIndex = i + 1;
-            //				console.log("我的修改了photoIndex")
             break;
           }
           if (duration > this.photoList[this.photoList.length - 1]) {
             this.photoIndex = this.photoList.length - 1; //取最后一个下标
-            //				console.log("我的修改了photoIndex")
             break;
           }
         }
@@ -2029,7 +2012,6 @@ export default {
           //只有播放过的结束才提交,避免未开播触发结束
           this.postStudyRecord(1);
         }
-        // console.log("结束直播");
         this.livePlay = false;
         // 未开始
       }
@@ -2150,7 +2132,6 @@ export default {
       if (this.vid) {
         //切换视频
         var polyvPlayerContext = this.selectComponent("#playerVideo");
-        console.log('polyvPlayerContext', polyvPlayerContext)
         polyvPlayerContext && polyvPlayerContext.changeVid(item.recordingUrl);
       } else {
         this.vid = item.recordingUrl;
@@ -2218,12 +2199,10 @@ export default {
       var polyvPlayerContext = this.selectComponent("#playerVideo");
       let noteDate = this.$method.getZeroTime();
       let noteSecond = polyvPlayerContext.getCurrentTime();
-      console.log(noteSecond, 698);
       if (!noteSecond) {
         if (noteSecond == 0) {
           //播放结束
           noteSecond = polyvPlayerContext.getDuration();
-          console.log(noteSecond, 63398);
         }
         if (!noteSecond) {
           this.$u.toast("视频暂未开始");
@@ -2372,7 +2351,7 @@ export default {
       this.postAnswer();
     },
     postStudyRecord(status = 0, sectionId = this.playSectionId) {
-      console.log('学习记录接口的playSectionId', sectionId);
+      // console.log('学习记录接口的playSectionId', sectionId);
       let currentTime = 0;
       let PlayDuration = 0;
       var polyvPlayerContext = this.selectComponent("#playerVideo");
@@ -2433,7 +2412,6 @@ export default {
       });
     },
     uploadFile(options, int) {
-			console.log(options)
       var self = this;
       return new Promise((resolve, reject) => {
         var data = {
@@ -2810,7 +2788,6 @@ export default {
      * 进入全屏
      */
     fullscreenchange(event) {
-      console.log('进入全屏',event);
       if (event.detail.direction == "vertical") {
         this.navShow = true;
       } else if (event.detail.direction == "horizontal") {
@@ -2825,7 +2802,6 @@ export default {
 						this.baseHandoutTipList()
 				}
         self.gradeId = self.goodsData.gradeId;
-        // console.log(self.gradeId, "班级ID");
         this.courseBusiness(this.goodsData.businessId);
         this.courseHandouts();
         self.getMenuList();
@@ -2856,7 +2832,7 @@ export default {
           );
           if (self.goodsPhotographConfig.photoNum > 0) {
             self.photoNum = self.goodsPhotographConfig.photoNum;
-            console.log(self.photoNum, 777777);
+            // console.log(self.photoNum, 777777);
           }
         }
       });
@@ -2945,7 +2921,6 @@ export default {
               item.menuType = item.type;
             }
             self.menuList = res.data.rows;
-            // console.log('======menuList', this.menuList)
             this.reStart = true
             for (let i = 0; i < res.data.rows.length; i++) {
               if (res.data.rows[i].type == 1) {
@@ -3004,11 +2979,9 @@ export default {
             success: (res) => {
               this.downLoading = false
               uni.setStorageSync('current', this.current)
-              console.log(res, "打开文档成功");
             },
             fail: (err) => {
               this.downLoading = false
-              console.log(err);
               uni.showToast({
                 icon: "none",
                 title: "文档地址错误",