lsc 1 mesiac pred
rodič
commit
243f224774
1 zmenil súbory, kde vykonal 17 pridanie a 17 odobranie
  1. 17 17
      src/views/Student/index.vue

+ 17 - 17
src/views/Student/index.vue

@@ -125,9 +125,9 @@
         <div v-if="currentSlideHasIframe && isFullscreen" class="homework-submit-btn" :class="{ 'submitting': isSubmitting }"
           :style="{ right: getHomeworkButtonRight() + 'px' }" @click="handleHomeworkSubmit"
           v-tooltip="isSubmitting ? '作业提交中...' : '作业提交'">
-          <IconEdit v-if="!isSubmitting" class="tool-btn" />
-          <div v-else class="loading-spinner"></div>
-          <span class="btn-text">{{ isSubmitting ? '提交中...' : '作业提交' }}</span>
+          <!-- <IconEdit v-if="!isSubmitting" class="tool-btn" />
+            <div v-else class="loading-spinner"></div> -->
+          <span class="btn-text">{{ isSubmitting ? '提交中...' : '提交' }}</span>
         </div>
 
         <!-- 刷新iframe按钮 -->
@@ -176,6 +176,7 @@
           <!-- 标签页切换按钮 -->
           <div v-show="!workPanelCollapsed" class="tab-switcher">
             <button 
+              v-show="currentSlideHasIframe"
               class="tab-btn" 
               :class="{ active: rightPanelMode === 'homework' }"
               @click="switchToHomework"
@@ -1621,11 +1622,11 @@ const handleRefreshPage = () => {
 // 获取作业提交按钮的右侧位置
 const getHomeworkButtonRight = () => {
   if (isFullscreen.value) {
-    return 30 // 全屏时按钮在右侧30px
+    return 70 // 全屏时按钮在右侧30px
   }
   if (props.type === '1') {
     // 展开回答结果:按钮更靠左;收起时:按钮更靠右侧
-    return workPanelCollapsed.value ? 60 : 430
+    return workPanelCollapsed.value ? 100 : 430
   }
   return 30 // type=2时按钮在右侧30px
 }
@@ -2972,17 +2973,17 @@ const handleDisconnection = () => {
   position: fixed;
   bottom: 60px;
   z-index: 100;
-  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
+  background: #191a19;
   color: white;
-  padding: 12px 20px;
-  border-radius: 25px;
+  padding: 5px 20px;
+  border-radius: 5px;
   cursor: pointer;
   display: flex;
   align-items: center;
   gap: 8px;
-  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
+  border: 2px solid #191a19;
   transition: all 0.3s ease;
-  font-size: 14px;
+  font-size: 16px;
   font-weight: 500;
 
   &:hover:not(.submitting) {
@@ -3032,17 +3033,16 @@ const handleDisconnection = () => {
   position: fixed;
   bottom: 60px;
   z-index: 100;
-  background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
-  color: white;
-  padding: 12px 20px;
-  border-radius: 25px;
+  color: #000;
+  padding: 5px 20px;
+  border-radius: 5px;
   cursor: pointer;
   display: flex;
   align-items: center;
   gap: 8px;
-  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
+  border: 2px solid #e9e9e9;
   transition: all 0.3s ease;
-  font-size: 14px;
+  font-size: 16px;
   font-weight: 500;
 
   &:hover {
@@ -3060,7 +3060,7 @@ const handleDisconnection = () => {
 
   .tool-btn {
     background: transparent;
-    color: white;
+    color: #000;
     width: 20px;
     height: 20px;
     font-size: 16px;