408249787@qq.com 1 nedēļu atpakaļ
vecāks
revīzija
c32a69a3a7
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 4 1
      pages/catalog/detail.uvue

+ 4 - 1
pages/catalog/detail.uvue

@@ -140,6 +140,7 @@ watch(() => progress2.value, (newVal, oldVal) => {
           progress: progress2.value,
         }
       });
+      data.value.videoSrc = course.value?.detailItem?.observeVideoPath
       break
     case 3:
       setTimeout(() => {
@@ -168,6 +169,7 @@ watch(() => progress2.value, (newVal, oldVal) => {
           progress: progress2.value,
         }
       });
+      data.value.videoSrc = course.value?.detailItem?.testVideoPath
       break
   }
 
@@ -214,7 +216,8 @@ onUnmounted(() => {
         :show-casting-button="false" autoplay @controlstoggle="handleControlsToggle" @ended="handleEnded">
       </video>
       <view v-else class="w-full h-full ">
-        <image mode="aspectFill" src="https://oss.xiaoxiongcode.com/static/home/assert_1.gif" alt="" class="w-full h-full object-cover" />
+        <image mode="aspectFill" src="https://oss.xiaoxiongcode.com/static/home/assert_1.gif" alt=""
+          class="w-full h-full object-cover" />
         <!-- 顶部提示文字 -->
         <view class="absolute text-[20px] top-[20vh] w-full flex flex-row items-center justify-center">
           <!-- <cl-icon name="notification-3-fill" color="#FCE762" :size="40"></cl-icon> -->