Browse Source

fix:新课程首次拍照时会连续拍俩张

xuqiaoying 2 years ago
parent
commit
5ab5bd8ccc
1 changed files with 3 additions and 1 deletions
  1. 3 1
      pages3/polyv/detail.vue

+ 3 - 1
pages3/polyv/detail.vue

@@ -2027,6 +2027,7 @@ export default {
             break;
           }
         }
+        // console.log(this.photoList, "随机拍照时间数组11", photoNum);
       }
     },
     getLiveUid(channelId) {
@@ -2607,8 +2608,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
@@ -2855,6 +2856,7 @@ export default {
         this.postCoursePhotoRecord()
           .then((res) => {
             this.photoHistoryList.push(this.photoIndex);
+            // console.log('拍照确定提交', this.photoHistoryList);
             this.postStudyRecord(); //提交记录
             //恢复播放