Преглед на файлове

开放实操课5-9节课权限

liyanbo преди 5 месеца
родител
ревизия
db44ea1e34
променени са 1 файла, в които са добавени 9 реда и са изтрити 9 реда
  1. 9 9
      src/views/AIPage/AIGeneralCourse.vue

+ 9 - 9
src/views/AIPage/AIGeneralCourse.vue

@@ -362,15 +362,15 @@ const goToAIExperience = outlineData => {
   // }
 
   // 检查是否是实操课的最后四节课
-  if (showPracticalCourse.value && ClassOutlineScData.value.length > 0) {
-    const totalLessons = ClassOutlineScData.value.length;
-    const currentIndex = parseInt(outlineData.ctTypeSort);
-    // 禁用最后四节课
-    if (currentIndex > totalLessons - 4) {
-      Message().notifyWarning('此课程暂未开放,敬请期待!', true)
-      return
-    }
-  }
+  // if (showPracticalCourse.value && ClassOutlineScData.value.length > 0) {
+  //   const totalLessons = ClassOutlineScData.value.length;
+  //   const currentIndex = parseInt(outlineData.ctTypeSort);
+  //   // 禁用最后四节课
+  //   if (currentIndex > totalLessons - 4) {
+  //     Message().notifyWarning('此课程暂未开放,敬请期待!', true)
+  //     return
+  //   }
+  // }
   router.push({
     path: '/ai-develop', // 跳转视频页面
     query: { typeId: outlineData.id, typeName: outlineData.ctType, typeSort:outlineData.ctTypeSort }