谢杰标 пре 2 година
родитељ
комит
a97413a341
1 измењених фајлова са 27 додато и 13 уклоњено
  1. 27 13
      src/pages/course-detail/index.vue

+ 27 - 13
src/pages/course-detail/index.vue

@@ -496,7 +496,15 @@
                                                   }}</span>
                                                 </div>
                                               </div>
-
+                                              <div
+                                                class="lear-state"
+                                                v-if="isActive(section)"
+                                              >
+                                                <img
+                                                  src="../../assets/learing.gif"
+                                                  alt=""
+                                                />
+                                              </div>
                                               <template
                                                 v-if="section.durationTime > 0"
                                               >
@@ -702,7 +710,15 @@
                                             </div>
                                           </div>
                                         </template>
-
+                                        <div
+                                          class="lear-state"
+                                          v-if="isActive(menu)"
+                                        >
+                                          <img
+                                            src="../../assets/learing.gif"
+                                            alt=""
+                                          />
+                                        </div>
                                         <template v-if="menu.durationTime > 0">
                                           <div class="during">
                                             {{
@@ -3228,7 +3244,7 @@ export default {
     isLastVideo() {
       try {
         let { sectionId, chapterId } = this.sectionItem;
-        let lastVideo =this.allVideoList.slice(-1)[0];
+        let lastVideo = this.allVideoList.slice(-1)[0];
         return (
           sectionId == lastVideo.sectionId && chapterId == lastVideo.chapterId
         );
@@ -3379,13 +3395,13 @@ export default {
     ...mapMutations(["getCartCount"]),
     ...mapActions(["getUserInfo"]),
     pauseVideo() {
-      let _p = this.player
+      let _p = this.player;
       if (document.visibilityState === "hidden") {
-        _p  && _p .j2s_pauseVideo();
+        _p && _p.j2s_pauseVideo();
       } else {
         if (_p) {
-          if(parseInt(_p .j2s_getCurrentTime())<_p .j2s_getDuration()){
-             this.player.j2s_resumeVideo();
+          if (parseInt(_p.j2s_getCurrentTime()) < _p.j2s_getDuration()) {
+            this.player.j2s_resumeVideo();
           }
         }
       }
@@ -5379,9 +5395,7 @@ export default {
           goodsType: 1, // 商品类型 1视频2题库 3补考 4前培 5虚拟赠送题库 6直播
           orderGoodsId: this.orderGoodsId,
         },
-      }).then((res) => {
-        
-      });
+      }).then((res) => {});
     },
     // 节卷不需要控制
     handelPracticeOrRxam(section, type) {
@@ -6112,7 +6126,7 @@ export default {
           chapterId: parseInt(self.chapterId),
           moduleId: parseInt(self.moduleId),
         };
-        this.$request.getPhotoLastRecord(data).then((res) => {;
+        this.$request.getPhotoLastRecord(data).then((res) => {
           //清空历史数据
           self.photoHistoryList = [];
           this.photoIndex = 0;
@@ -6204,8 +6218,8 @@ export default {
 
     //配置随机拍照时间
     configPhoto() {
-      if(this.photoList.length){
-        return
+      if (this.photoList.length) {
+        return;
       }
       var polyvPlayerContext = this.player;
       let totalVideoTime = polyvPlayerContext.j2s_getDuration();