Bladeren bron

合并master解决冲突

xuqiaoying 2 jaren geleden
bovenliggende
commit
826276a157
5 gewijzigde bestanden met toevoegingen van 50 en 31 verwijderingen
  1. 3 2
      common/request.js
  2. 1 1
      components/course/courseChapter.vue
  3. 2 2
      manifest.json
  4. 10 11
      pages/learn/index.vue
  5. 34 15
      pages3/polyv/detail.vue

+ 3 - 2
common/request.js

@@ -20,6 +20,7 @@ export const BASE_IMG_URL = 'https://file-dev.xyyxt.net/'  //test
 // web_view的
 // export const WEBVIEW_URL = 'https://m.xyyxt.net/'  //release-祥粤云学堂
 // export const WEBVIEW_URL = 'https://cm.xyyxt.net/'  //release-祥粤学堂
+// export const WEBVIEW_URL = 'https://zstcm.xyyxt.net/'  //release-中建云学堂
 // export const WEBVIEW_URL = 'https://testm.xyyxt.net/'  //预发布
 export const WEBVIEW_URL = 'http://120.79.166.78:18001/' // 测试环境-祥粤云学堂
 // export const WEBVIEW_URL = 'http://120.79.166.78:18011/' // 测试环境-祥粤学堂  
@@ -36,8 +37,8 @@ RVQplIVs5z3MxcUa9ptKPHUTgh8xMCBvl8sUJKwkmn4vYWeDfHT22EL7Hr1pTMwU
 hF6WiNlWfQTVoF1rhwIDAQAB
 -----END PUBLIC KEY-----`;
 
-export const version = '1.0.2' 
-export const tenantId = '867735392558919680'  // 祥粤云学堂:867735392558919680,祥粤学堂:667735392758919630
+export const version = '1.0.7' 
+export const tenantId = '867735392558919680'  // 祥粤云学堂:867735392558919680,祥粤学堂:667735392758919630, 中建云学堂-567735392758918520
 export const myRequest = (options) => {
 	if (store.state.allowLoading && !options.noLoading) {
 		uni.showLoading({

+ 1 - 1
components/course/courseChapter.vue

@@ -662,7 +662,7 @@ export default {
               }
             });
             self.list = res.data.data;
-            console.log('=======节列表==', this.list);
+            // console.log('=======节列表==', this.list);
           }
         });
     },

+ 2 - 2
manifest.json

@@ -73,9 +73,9 @@
     },
     /* 快应用特有相关 */
     "quickapp" : {},
-    /* 小程序特有相关 */
+    /* 小程序特有相关 祥粤云学堂:wxd3c8ae80cf43a305, 祥粤学堂-wx871153afc95f55f4,中建云学堂-wx47d33eb64f9f2a0d*/
     "mp-weixin" : {
-        "appid" : "wxd3c8ae80cf43a305", // 祥粤云学堂:wxd3c8ae80cf43a305, 祥粤学堂-wx871153afc95f55f4
+        "appid" : "wxd3c8ae80cf43a305",
         "setting" : {
             "urlCheck" : false,
             "postcss" : true,

+ 10 - 11
pages/learn/index.vue

@@ -443,11 +443,11 @@ export default {
 	onLoad() {
 		// 1668873600 ,2022.11.20的时间戳
 		this.leftDays = 1668873600 - parseInt(curTime/1000)
-		// this.sysTime = +this.$method.timest()
+		this.sysTime = +this.$method.timest()
 	},
 	async onShow() {
 		this.getCourseLiveQues()
-		await this.commonSystemTime()
+		// await this.commonSystemTime()
 	},
 	 onPullDownRefresh() {
 		this.getCourseLiveQues()
@@ -497,7 +497,6 @@ export default {
 		// 查询直播课
 		getCourseLiveQues() {
 			this.allLoading = true
-			// this.$api.listUserFreeUnionBuyGoodsList(this.paramQ), // 查询用户拥有免费+自购题库商品 /bank/question/listUserFreeUnionBuyGoodsList
 			let arrs = [
 				this.$api.listUserVideoLive(this.paramC), // 查询用户拥有视频+直播商品 /goods/listUserVideoLive
 				this.$api.getgoodsLiveList({
@@ -528,13 +527,13 @@ export default {
 				this.allLoading = false
 			})
 		},
-		commonSystemTime() {
-			return new Promise(resolve => {
-				this.$api.commonSystemTime().then(res => {
-					this.sysTime = res.data.data;
-				})
-			})
-		},
+		// commonSystemTime() {
+		// 	return new Promise(resolve => {
+		// 		this.$api.commonSystemTime().then(res => {
+		// 			this.sysTime = res.data.data;
+		// 		})
+		// 	})
+		// },
 		// 看直播
 		toLiveLook(item) {
 			let moduleId = item.moduleId || 0
@@ -620,7 +619,7 @@ export default {
 				})
 				return
 			}
-
+			// learningStatus: 1即刻,2待定,3不在日期内
 			if (item.learningStatus == 2) {
 				uni.showToast({
 					icon: 'none',

+ 34 - 15
pages3/polyv/detail.vue

@@ -782,6 +782,7 @@ export default {
       prendreAutoCarme: false, // 是否发起授权相机
       studyTimer: null, // 学习记录定时器
       CountTo: 30, // 倒计时
+      handoutTipLength: 0,
       menuAllList: [],
       popupPhotoShow: false,
       curPlayIndex: 0, // 正在播放的节的下标
@@ -1002,7 +1003,7 @@ 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
@@ -1371,12 +1372,18 @@ export default {
     noticeConfirm() {
       if (this.CountTo < 0) {
         this.noticeShow = false
+        if (this.handoutTipLength == 0 && this.goodsPlayConfig.autoPlay > 0) {
+          this.autoplay = true
+          var polyvPlayerContext = this.selectComponent("#playerVideo")
+          polyvPlayerContext.play()
+        }
       }
     },
 		baseHandoutTipList() {
 			this.$api.baseHandoutTipList({
 				orderGoodsId:this.orderGoodsId
 			}).then(res => {
+        this.handoutTipLength = res.data.rows.length
 				if(res.data.rows.length == 0) {
 					this.noticeShow = true;
           if (this.CountTo == 30) {
@@ -1389,6 +1396,11 @@ export default {
           }
 				} else {
           this.CountTo = -1
+          if (this.goodsPlayConfig.autoPlay > 0) {
+            this.autoplay = true
+            var polyvPlayerContext = this.selectComponent("#playerVideo")
+            polyvPlayerContext.play()
+          }
         }
 			})
 		},
@@ -1406,6 +1418,7 @@ export default {
 		studyRecordQueryLiveLast() {
       // /study/record/queryLiveLast
 			this.$api.studyRecordQueryLiveLast({
+        gradeId: this.gradeId,
 				orderGoodsId:this.orderGoodsId,
 				courseId:this.courseId
 			}).then(async res => {
@@ -1883,6 +1896,7 @@ export default {
               self.photoHistoryList.push(res.data.data[i].photoIndex);
             }
           }
+          // console.log('7777', this.photoHistoryList, this.photoList);
         }
       });
     },
@@ -2011,7 +2025,7 @@ export default {
           // console.log(this.photoList, "随机拍照时间数组11", photoNum);
           this.postCoursePhotoRecord(true); //提交随机拍照时间数组
         }
-        // console.log(this.photoList, "随机拍照时间数组");
+        
         //兼容已有观看历史
         for (let i = 0; i < this.photoList.length - 1; i++) {
           if (
@@ -2026,6 +2040,7 @@ export default {
             break;
           }
         }
+        // console.log(this.photoList, "随机拍照时间数组11", photoNum);
       }
     },
     getLiveUid(channelId) {
@@ -2596,9 +2611,9 @@ export default {
         this.playTime = polyvPlayerContext.getCurrentTime(); //播放时刻
         // #endif
         //  #ifdef H5
-        var polyvPlayerContext = polyvPlayerContext.j2s_getCurrentTime()
+        this.playTime = polyvPlayerContext.j2s_getCurrentTime()
         // #endif
-        // console.log('拍照啊', 789, this.photoHistoryList, 'this.photoList:', this.photoList)
+        // console.log(789, this.photoHistoryList, 'this.photoList:', this.photoList, 'photoNum:', this.photoNum, 'playTime:', this.playTime)
         //判断是否需要拍照
         if (this.photoNum > 0) {
           this.configPhoto();
@@ -2616,8 +2631,8 @@ export default {
                 //暂停
                 polyvPlayerContext.exitFullScreen();
                 polyvPlayerContext.pause();
-                if (uni.getStorageSync(`tabkePhotoShow${this.goodsId}`) == this.goodsId) {
                 this.photoIndex = i;
+                if (uni.getStorageSync(`tabkePhotoShow${this.goodsId}`) == this.goodsId) {
                 this.openPhoto();
                 } else {
                   this.popupPhotoShow = true
@@ -2743,6 +2758,9 @@ export default {
                 this.$store.commit("setPlaySectionId", { playSectionId: data.sectionId })
                 this.$store.commit("setPlayVID", { playVID: data.recordingUrl })
 
+                this.hasStart = false;
+                this.photoConfig = false;
+                this.photoIndex = 0;
                 this.sectionItem = data;
                 await this.getPhotoLastRecord() // 获取拍照历史
                 this.playVideo(data)
@@ -2795,11 +2813,11 @@ export default {
           position: 0,
           success: (res) => {
             let base64 = "data:image/jpg;base64," + res.data;
-						console.log('base64Data人脸识别参数:', {
-              imageA: base64,
-              orderGoodsId: this.orderGoodsId,
-              gradeId: this.gradeId,
-            })
+						// console.log('base64Data人脸识别参数:', {
+            //   imageA: base64,
+            //   orderGoodsId: this.orderGoodsId,
+            //   gradeId: this.gradeId,
+            // })
             
             let timer = setTimeout(() => {
               uni.showToast({
@@ -2854,13 +2872,14 @@ export default {
       this.uploadLock = true;
 
       let compareFaceData = await this.faceRecognition();
-			console.log(compareFaceData,'compareFaceData')
+			// console.log(compareFaceData,'compareFaceData')
       this.compareFaceData = compareFaceData
       if (compareFaceData >= 80) {
         const waitYS = await this.imageInfos();
         this.postCoursePhotoRecord()
           .then((res) => {
             this.photoHistoryList.push(this.photoIndex);
+            // console.log('拍照确定提交', this.photoHistoryList);
             this.postStudyRecord(); //提交记录
             //恢复播放
 
@@ -2968,9 +2987,9 @@ export default {
         this.getNoteList();
         if (self.goodsData.goodsPlayConfig) {
           self.goodsPlayConfig = JSON.parse(self.goodsData.goodsPlayConfig);
-          if (self.goodsPlayConfig.autoPlay > 0) {
-            self.autoplay = true;
-          }
+          // if (self.goodsPlayConfig.autoPlay > 0) {
+          //   self.autoplay = true;
+          // }
           if (self.goodsPlayConfig.drag > 0) {
             self.isAllowSeek = "yes";
           }
@@ -3112,7 +3131,7 @@ export default {
                 
               }
             }
-            console.log('menuList: ---', this.menuList, 'menuIndex:', this.menuIndex);
+            // console.log('menuList: ---', this.menuList, 'menuIndex:', this.menuIndex);
           }
         });
     },