丸子 há 9 meses atrás
pai
commit
f4364bb651
3 ficheiros alterados com 13 adições e 11 exclusões
  1. 4 5
      src/components/HomePage.vue
  2. 5 3
      src/views/AIDevelop.vue
  3. 4 3
      src/views/AIGeneralCourse.vue

+ 4 - 5
src/components/HomePage.vue

@@ -373,8 +373,8 @@ onMounted(() => {
 }
 .dropdown-menu {
   width: rpx(100);
-  height: rpx(50);
-  border-radius: rpx(6);
+  height: rpx(60);
+  border-radius: rpx(5);
   border: 1px white solid;
   background-color: rgba(161, 161, 161, 0.5);
   box-shadow: 0 4px 8px rgba(202, 52, 52, 0.1);
@@ -384,9 +384,9 @@ onMounted(() => {
 .dropdown-menu ::v-deep(.el-dropdown-menu__item) {
   font-size: rpx(8);
   color: black;
-  border-radius: rpx(6);
+  border-radius: rpx(5);
   width: rpx(78);
-  height: rpx(15);
+  height: rpx(20);
   margin-left: rpx(4);
   margin-bottom: rpx(8);
 }
@@ -399,6 +399,5 @@ onMounted(() => {
     #fee78a,
     #ffce1b
   ); /* 设置悬停、聚焦、点击状态下的背景色 */
-  color: white;
 }
 </style>

+ 5 - 3
src/views/AIDevelop.vue

@@ -39,7 +39,7 @@
               @open="handleOpen"
               @close="handleClose"
               @select="handleSelect"
-              :default-openeds="['1']"
+              :default-openeds="['3']"
             >
               <template v-for="item in menuItems" :key="item.key">
                 <el-menu-item v-if="!item.children" :index="item.key">{{
@@ -342,6 +342,7 @@ onMounted(async () => {
           course.value = courseTemp;
         }
       })
+
     } catch (error) {
       console.error('获取课程数据失败:', error)
     }
@@ -383,11 +384,13 @@ const handleSelect = index => {
   // 根据索引切换视频,使用新的 videoPathMap
   if (videoPathMap.value[index]) {
     course.value = videoPathMap.value[index]
+    // 切换标题后,关闭抽屉
+    drawerVisible.value = false
   }else {
     //视频不存在
     Message().notifyWarning('视频不存在!', true);
   }
-
+  
   //测试账号禁用视频
   if (disableVideo()) return
 }
@@ -471,7 +474,6 @@ const checkVideoPermission = () => {
       videoRef.value.pause()
     }
   }
-
   //记录已暂停的内容
   setVideoStop();
 };

+ 4 - 3
src/views/AIGeneralCourse.vue

@@ -153,7 +153,7 @@ const classOutlineData = ref([])
 
 const fetchCtTypes = async () => {
   try {
-    const response = await ClassList()
+    const response = await ClassList()  
     if (response.code === 0) {
       classData.value = response.data
       // 获取到数据,将第一个选项的值作为默认选中值
@@ -249,6 +249,7 @@ const goToAIExperience = outlineData => {
     }
   }
 }
+
 </script>
 
 <style scoped lang="scss">
@@ -485,14 +486,14 @@ const goToAIExperience = outlineData => {
 .dropdown-menu {
   width: rpx(100);
   height: rpx(50);
-  border-radius: rpx(8);
+  border-radius: rpx(5);
   background-color: rgba(161, 161, 161, 0.5);
   box-shadow: 0 4px 8px rgba(202, 52, 52, 0.1);
 }
 .dropdown-menu ::v-deep(.el-dropdown-menu__item) {
   font-size: rpx(8);
   color: black;
-  border-radius: rpx(8);
+  border-radius: rpx(5);
   width: rpx(78);
   height: rpx(15);
   margin-left: rpx(4);