谢杰标 il y a 2 ans
Parent
commit
fff91430b2
1 fichiers modifiés avec 2 ajouts et 3 suppressions
  1. 2 3
      pages3/polyv/detail.vue

+ 2 - 3
pages3/polyv/detail.vue

@@ -2403,12 +2403,11 @@ export default {
     },
     },
     // 随机前后五分钟
     // 随机前后五分钟
     commonConfig(totalVideoTime, fixS) {
     commonConfig(totalVideoTime, fixS) {
-      console.log("🚀 ~ file: detail.vue:2407 ~ commonConfig ~ fixS:", fixS);
       let photoList = [0];
       let photoList = [0];
       // 固定间隔时间取
       // 固定间隔时间取
       if (fixS) {
       if (fixS) {
-        let num = Math.ceil(totalVideoTime / fixS);
-        for (let i = 1; i < num; i++) {
+        this.photoNum = Math.ceil(totalVideoTime / fixS);
+        for (let i = 1; i < this.photoNum; i++) {
           photoList.push(i * fixS);
           photoList.push(i * fixS);
         }
         }
       } else {
       } else {