Browse Source

优化视频

ZaiZai 2 years ago
parent
commit
18b0d0d5c1
1 changed files with 14 additions and 1 deletions
  1. 14 1
      src/views/using/query.vue

+ 14 - 1
src/views/using/query.vue

@@ -197,6 +197,11 @@
             </div>
         </HcCard>
 
+        <!-- 预加载视频 -->
+        <video class="hc-preloaded-video" muted autoplay>
+            <source src="/gui.mp4" type="video/mp4">
+        </video>
+
         <!-- 柜子侧面 -->
         <HcDrawer :show="isGuiInfoDrawer" direction="rtl" to-id="carry-spot-checks-layout-target" uis="hc-carry-spot-checks-target" @close="onCloseGuiInfoDrawer">
             <template #header>
@@ -1117,7 +1122,7 @@ const consultFileClick = async (row, type) => {
         const url = await viewPdf(row.id)
         pdfUrl.value = url
         checkId.value = ''
-      
+
 
     } else if (type == 2) {//查阅卷内文件
         checkId.value = row.id
@@ -1611,4 +1616,12 @@ const mediaMicChange = (data) => {
 }
 
 @import '~src/styles/theme/using/query.scss';
+
+.hc-preloaded-video {
+    position: absolute;
+    bottom: 10px;
+    z-index: -222;
+    width: 200px;
+    left: 10px;
+}
 </style>