wangxy 1 month ago
parent
commit
227ac8bec1
3 changed files with 14 additions and 4 deletions
  1. 12 1
      api/chanpinShuxue.js
  2. 2 1
      pages/xinshuxue/components/tishiDl.vue
  3. 0 2
      pages/xinshuxue/lookShipin.vue

+ 12 - 1
api/chanpinShuxue.js

@@ -60,7 +60,7 @@ export function getShuxueChanpinShitiSave(data = {}) {
 
 export function getShuxueChanpinDanyuanInfo(data = {}) {
     return request({
-        'url': '/app/shuxue/chanpin/danyuan/info',
+        'url': '/app/shuxue/chanpin/danyuan/dagang/info',
         headers: {
             isToken: true
         },
@@ -106,3 +106,14 @@ export function getShuxueChanpinWancheng(data = {}) {
     })
 }
 
+export function getShuxueChanpinDanyuanMulu(data = {}) {
+    return request({
+        'url': '/app/shuxue/chanpin/danyuanmulu',
+        headers: {
+            isToken: true
+        },
+        method: 'post',
+        data,
+        timeout: 20000
+    })
+}

+ 2 - 1
pages/xinshuxue/components/tishiDl.vue

@@ -24,12 +24,13 @@
 
 
 	function initTime() {
-		setTimeout(() => {
+		times.value = setTimeout(() => {
 			if (count.value == 0) {
 				handleClose();
 				return;
 			}
 			count.value--;
+			initTime()
 		}, 1000)
 	}
 

+ 0 - 2
pages/xinshuxue/lookShipin.vue

@@ -153,8 +153,6 @@
 					res.data.jiedianList2.forEach(item => item.offset = convertTimeToSeconds(item.time1))
 					// 重新赋值
 					Object.assign(this.jieInfo, res.data)
-					// 触发当前节学习进度
-					this.saveJinduStart();
 					// 	针对视频进行赋值
 					this.videoId = this.jieInfo.video1;
 					this.videoId2 = this.jieInfo.video2;