丸子 před 9 měsíci
rodič
revize
f21d766189
1 změnil soubory, kde provedl 11 přidání a 11 odebrání
  1. 11 11
      src/views/AIGeneralCourse.vue

+ 11 - 11
src/views/AIGeneralCourse.vue

@@ -53,7 +53,7 @@
         <div class="inner-box left-box">
           <div class="box-icon" @click="goBack">
             <el-icon class="left-icon"><ArrowLeftBold /></el-icon>
-            {{ pageTitle}}
+            {{ pageTitle }}
           </div>
           <div class="dropdown-box">
             <!-- 下拉菜单 -->
@@ -201,7 +201,7 @@ const courseTitles = computed(() => {
   return Array.from({ length: 8 }, (_, i) => getCourseTitle(i + 1))
 })
 
-  // 首页点击渲染后的页面title
+// 首页点击渲染后的页面title
 const pageTitle = ref('')
 onMounted(() => {
   fetchCtTypes()
@@ -211,7 +211,6 @@ onMounted(() => {
   }
 })
 
-
 import { Message } from '@/utils/message/Message.js'
 
 // 搜索框
@@ -224,7 +223,6 @@ const filteredTitles = computed(() => {
   return courseTitles.filter(title => title.includes(SearchInput.value))
 })
 
-
 // 添加按钮显示状态
 const buttonVisible = ref(false)
 
@@ -233,7 +231,6 @@ const goBack = () => {
 }
 
 const goToAIExperience = outlineData => {
-
   if (outlineData.ctTypeSort === 2) {
     router.push({
       path: '/ai-develop', // 跳转视频页面
@@ -241,14 +238,17 @@ const goToAIExperience = outlineData => {
     })
   } else {
     if (localStorage.getItem('userName') === 'aiTest') {
-  }else {
+    } else {
       //提示禁用
-      Message().notifyWarning(localStorage.getItem('userName') === "aiTest" ? '您的账号并未开放此课程!' : '演示版未开放此课程!', true)
+      Message().notifyWarning(
+        localStorage.getItem('userName') === 'aiTest'
+          ? '您的账号并未开放此课程!'
+          : '演示版未开放此课程!',
+        true
+      )
+    }
   }
 }
-}
-
-
 </script>
 
 <style scoped lang="scss">
@@ -331,7 +331,7 @@ const goToAIExperience = outlineData => {
   margin-top: rpx(10);
 }
 
-.mb-2  {
+.mb-2 {
   color: white;
   font-size: rpx(8);
   margin-left: rpx(13);