WQQ 1 сар өмнө
parent
commit
7121f03b8a

BIN
src/assets/video/TSQRoam.mp4


+ 5 - 2
src/views/science/index.vue

@@ -2,7 +2,7 @@
   <div class="science-content">
     <div class="video-overlay" v-if="showVideo" @click.self="closeVideo">
       <div class="video-container">
-        <video ref="videoRef" class="overlay-video" loop autoplay muted>
+        <video ref="videoRef" class="overlay-video" loop autoplay>
           <source :src="videoSrc" type="video/mp4">
         </video>
         <div class="video-close" @click="closeVideo">×</div>
@@ -50,6 +50,8 @@ const selectedCardIndex = ref(-1)
 const videoSrc = computed(() => {
   if (selectedCardIndex.value === 0) {
     return new URL("@/assets/video/水文化.mp4", import.meta.url).href
+  } else if (selectedCardIndex.value === 2) {
+    return new URL("@/assets/video/TSQRoam.mp4", import.meta.url).href
   }
   return ""
 })
@@ -79,7 +81,8 @@ function handleCardClick(index) {
   } else if (index === 1) {
     showQuiz.value = true
   } else if (index === 2) {
-    showGuide.value = true
+    selectedCardIndex.value = index
+    showVideo.value = true
   } else {
     emit("navigate", index)
   }