Pārlūkot izejas kodu

Merge remote-tracking branch 'origin/wanzi'

liyanbo 1 mēnesi atpakaļ
vecāks
revīzija
76b114bc43

+ 6 - 1
src/components/HomePage.vue

@@ -2,7 +2,7 @@
   <div class="home-container">
     <div class="box-1">
       <div class="inner-box left-box">
-        <span>{{ platformTitle }}</span>
+        <span @click="goToManagementInterface">{{ platformTitle }}</span>
         <div class="dropdown-box">
           <!-- 下拉菜单 -->
           <el-dropdown v-model="selectedGrade" @command="handleGradeSelect" @visible-change="handleVisibleChange" popper-class="no-arrow-dropdown">
@@ -132,6 +132,11 @@ const goToAIGeneralCourse = title => {
   router.push({ path: '/ai-general-course', state: { title } })
 }
 
+// 管理界面
+const goToManagementInterface = () => {
+  router.push('/management-interface')
+}
+
 //AI实验室
 const goToAILab = () => {
   router.push({

+ 2 - 1
src/views/AIPage/aiGenerate/DialogContent.vue

@@ -440,8 +440,9 @@ const playPrevious = () => {
     // 显示诗词并替换内容为最新的诗词
     showPoem.value = true
     currentPoemContent.value = currentDialogue.value.content
+    playPrevious()
+    return
   }
-  // 如果不是诗词类型,保持诗词显示(不做任何操作)
 
   // 播放背景音
   playBackgroundAudio()

+ 13 - 4
src/views/laboratory/ExperimentalTheme.vue

@@ -7,8 +7,8 @@
           <div class="top-left-inner-box" >
             <!-- 左侧返回图标 -->
             <div class="left-content-wrapper" @click="goToHomePage">
-              <el-icon class="left-icon"><ArrowLeftBold /></el-icon>
-              <span class="left-text">首页</span>
+              <!-- <el-icon class="left-icon"><ArrowLeftBold /></el-icon> -->
+              <span class="left-text">人工智能通识课平台</span>
             </div>
           </div>
         </div>
@@ -338,6 +338,8 @@ onUnmounted(() => {
   .left-content-wrapper{
     display: flex;
     align-items: center; /* 保持内部元素垂直居中 */
+    padding-left: rpx(30);
+    padding-top: rpx(15);
   }
   .left-icon{
     font-size: rpx(14);
@@ -346,10 +348,17 @@ onUnmounted(() => {
     cursor: pointer;
   }
   .left-text{
-    font-size: rpx(14);
+    font-size: rpx(11);
     color: white;
-    padding-left: rpx(10);
     cursor: pointer;
+    position: static;
+    margin-top: 0;
+    margin-left: 0;
+    margin-right: rpx(10);
+    max-width: rpx(200);
+    white-space: normal;
+    line-height: rpx(16);
+    text-align: left;
   }
 }
 

+ 13 - 4
src/views/programming/ProgrammingGame.vue

@@ -7,8 +7,8 @@
           <div class="top-left-inner-box" >
             <!-- 左侧返回图标 -->
             <div class="left-content-wrapper" @click="goToHomePage">
-              <el-icon class="left-icon"><ArrowLeftBold /></el-icon>
-              <span class="left-text">首页</span>
+              <!-- <el-icon class="left-icon"><ArrowLeftBold /></el-icon> -->
+              <span class="left-text">人工智能通识课平台</span>
             </div>
           </div>
         </div>
@@ -305,6 +305,8 @@ onMounted(() => {
   display: flex;
   align-items: center; /* 垂直居中对齐 */
   .left-content-wrapper{
+    padding-left: rpx(30);
+    padding-top: rpx(15);
     display: flex;
     align-items: center; /* 保持内部元素垂直居中 */
   }
@@ -315,9 +317,16 @@ onMounted(() => {
     cursor: pointer;
   }
   .left-text{
-    font-size: rpx(14);
+    position: static;
+    margin-top: 0;
+    margin-left: 0;
+    margin-right: rpx(10);
+    font-size: rpx(11);
     color: white;
-    padding-left: rpx(10);
+    max-width: rpx(200);
+    white-space: normal;
+    line-height: rpx(16);
+    text-align: left;
     cursor: pointer;
   }
 }