ソースを参照

Merge branch 'master' of http://59.110.91.129:3000/zhangmengying/AIClass

丸子 9 ヶ月 前
コミット
738c38a12f
2 ファイル変更22 行追加56 行削除
  1. 19 18
      src/views/AIDevelop.vue
  2. 3 38
      src/views/AIGeneralCourse.vue

+ 19 - 18
src/views/AIDevelop.vue

@@ -20,16 +20,16 @@
       >
     </div>
 
-    <el-drawer
-      v-model="drawerVisible"
-      direction="ltr"
-      size="18%"
-      :with-header="false"
-    >
-      <!-- 添加抽屉 -->
-      <div class="drawer-box">
-        <el-row class="tac">
-          <el-col :span="12">
+      <el-drawer
+          v-model="drawerVisible"
+          direction="ltr"
+          size="18%"
+          :with-header="false"
+      >
+        <!-- 添加抽屉 -->
+        <div class="drawer-box">
+          <el-row class="tac">
+            <el-col :span="12">
             <span class="mb-2">
               <img :src="classImages" alt="课程小节图标" />
               课程小节
@@ -119,7 +119,7 @@
           <!-- 下一个视频 -->
           <div class="caret-right" @click="playNextVideo">
             <el-button type="warning" round
-              >下一节
+            >下一节
               <img :src="rightImg" alt="Right" />
             </el-button>
           </div>
@@ -174,9 +174,10 @@
             </div>
             <!-- 右侧小图标 -->
             <div
-              v-if="aiAnswer !== null"
-              class="ai-icon-container"
-              @click="handleAIClick"
+                v-if="courseConfig.ccAiAnswer !== null"
+                class="ai-icon-container"
+                @click="handleAIClick"
+
             >
               <img
                 src="@/assets/images/xiaozhi.png"
@@ -237,7 +238,6 @@
         </div>
       </div>
     </div>
-
   </div>
 </template>
 
@@ -991,9 +991,9 @@ video::-webkit-media-controls-panel {
     border: none;
     border-radius: rpx(20);
     background: linear-gradient(
-      135deg,
-      $light-color,
-      #d8bfd8
+            135deg,
+            $light-color,
+            #d8bfd8
     ); // 柔和的蓝紫色渐变
     overflow: hidden;
     display: flex; // 添加 flex 布局
@@ -1300,6 +1300,7 @@ video::-webkit-media-controls-panel {
   align-items: center;
   margin-bottom: rpx(15);
   margin-top: rpx(-10);
+
   img {
     width: rpx(15);
   }

+ 3 - 38
src/views/AIGeneralCourse.vue

@@ -223,35 +223,9 @@ const goBack = () => {
   router.go(-1) // 返回上一页
 }
 
-// 添加跳转课程页面的函数
-// const goToAIExperience = index => {
-//   const routes = [
-//     '/ai-initial-experience', // 跳转AI初体验
-//     '/ai-develop' // 跳转AI发展历程
-//     // '/ai-development-history',
-//   ]
-//   // 跳转页面渲染title
-//   const title = `0${index} ${getCourseTitle(index)}` // 定义 title 变量
-//   if (index >= 1 && index <= routes.length && classOutlineData.value.length >= index) {
-//     const selectedItem = classOutlineData.value[index - 1]
-//     router.push({
-//       path: routes[index - 1],
-//       query: { title: title, id: selectedItem.id }
+
 
 const goToAIExperience = outlineData => {
-  // const routes = [
-  //   '/ai-initial-experience', // 跳转AI初体验
-  //   '/ai-develop' // 跳转AI发展历程
-  //   // '/ai-development-history',
-  // ]
-  // // 跳转页面渲染title
-  // const title = `0${index} ${getCourseTitle(index)}` // 定义 title 变量
-  // if (index >= 1 && index <= routes.length) {
-  //   router.push({
-  //     path: routes[index - 1],
-  //     query: { typeId: title, title: title }
-  //   })
-  // }
 
   if (outlineData.ctTypeSort === 2) {
     router.push({
@@ -266,17 +240,6 @@ const goToAIExperience = outlineData => {
   }
 }
 
-// 添加图片路径数组
-// const courseImages = ref([
-//   './src/assets/images/one.png',
-//   './src/assets/images/two.png',
-//   './src/assets/images/three.png',
-//   './src/assets/images/four.png',
-//   './src/assets/images/five.png',
-//   './src/assets/images/six.png',
-//   './src/assets/images/seven.png',
-//   './src/assets/images/eight.png'
-// ])
 
 // 首页点击渲染后的页面title
 const pageTitle = ref('')
@@ -287,6 +250,8 @@ onMounted(() => {
   }
 })
 }
+
+
 </script>
 
 <style scoped lang="scss">