丸子 8 месяцев назад
Родитель
Сommit
840508c76f
1 измененных файлов с 5 добавлено и 5 удалено
  1. 5 5
      src/views/AIGeneralCourse.vue

+ 5 - 5
src/views/AIGeneralCourse.vue

@@ -83,7 +83,7 @@
             <el-button 
               type="primary" 
               @click="handleNewButtonClick"
-              :style="{ backgroundColor: showPracticalCourse ? '#ffcc00' : '#fee78a' }"
+              :style="{ background: showPracticalCourse ? 'linear-gradient(to bottom, #ffefb0, #ffcc00)' : '#fee78a' }"
             >
               {{ showPracticalCourse ? '返回通识课' : '实操课' }}
             </el-button>
@@ -177,6 +177,7 @@ const showPracticalCourse = ref(false)
 // 统一函数来获取课程大纲数据 通识课/实操课
 const fetchClassOutline = async (classId) => {
   try {
+    // 保存通识课数据
     const res = await ClassOutline(classId)
     console.log(res);
     if (res.code === 0) {
@@ -186,9 +187,9 @@ const fetchClassOutline = async (classId) => {
         item.ctTypeSort = item.ctTypeSort > 9 ? item.ctTypeSort : "0" + item.ctTypeSort
       })
     }
+    // 保存实操课数据
     const Scres = await ClassOutlineSc(classId)
     console.log(Scres);
-    // 保存实操课数据
     if (Scres.code === 0) {
       ClassOutlineScData.value = Scres.data
       ClassOutlineScData.value.map((item, index) => {
@@ -308,7 +309,7 @@ const querySearch = (queryString, cb) => {
 // 搜索选择处理方法
 const handleSearchSelect = item => {
   goToAIExperience(item)
-    // 添加以下代码清空输入框
+    // 清空输入框
   SearchInput.value = '';
 }
 // 修改过滤逻辑,直接使用classOutlineData
@@ -336,7 +337,6 @@ const goToAIExperience = outlineData => {
       return
     }
   }
-
   router.push({
     path: '/ai-develop', // 跳转视频页面
     query: { typeId: outlineData.id, typeName: outlineData.ctType }
@@ -709,7 +709,7 @@ const goToAIExperience = outlineData => {
 
 .box-2 {
   width: 100%;
-  flex: 1;
+  // flex: 1;
   box-sizing: border-box;
   display: flex; // 确保子元素水平排列
   flex-wrap: wrap; // 允许子元素换行;