Browse Source

no message

xiaoxin 2 years ago
parent
commit
94523a97e5
3 changed files with 25 additions and 11 deletions
  1. 5 0
      src/components/school/schoolRight.vue
  2. 2 0
      src/components/student/studentCenter.vue
  3. 18 11
      src/views/more.vue

+ 5 - 0
src/components/school/schoolRight.vue

@@ -872,6 +872,11 @@ const getCountUpNum = () => {
           display: none !important;
         }
 
+        // 隐藏剩余时间
+        video::-webkit-media-controls-time-remaining-display {
+          display: none !important;
+        }
+
         .box_name {
           position: absolute;
           top: 0;

+ 2 - 0
src/components/student/studentCenter.vue

@@ -204,6 +204,7 @@ const getScoreInfo = async () => {
 const getTeacherMsg = async () => {
   const res = await reqGetTeacherMsg({
     cardNo: userInfo.value.cardNo,
+    termId: examName.value,
   });
   // console.log(res);
   if ((res as any).code == 200) {
@@ -284,6 +285,7 @@ const handleChange = () => {
   typeList.value = [];
   valueList.value = [];
   getScoreInfo();
+  getTeacherMsg();
 };
 </script>
 

+ 18 - 11
src/views/more.vue

@@ -17,10 +17,6 @@
         >
           <template #default="{ node, data }">
             <div class="left_tree">
-              <!-- <component
-                :is="node.level === 1 ? 'FolderOpened' : ''"
-                style="width: 20px; height: 20px; color: #70b7fa"
-              /> -->
               <div class="tree_text">
                 {{ data.spotName || data.installationSite || "未知" }}
               </div>
@@ -36,6 +32,8 @@
           controls
           autoplay
           muted
+          disablePictureInPicture
+          controlsList="nodownload  noplaybackrate"
           :src="currentUrl"
         ></video>
       </div>
@@ -192,13 +190,6 @@ const handleClose = () => {
         background-color: rgba($color: #000000, $alpha: 1);
       }
 
-      .monitor_box {
-        position: absolute;
-        top: 0;
-        width: 100%;
-        height: 100%;
-      }
-
       video {
         position: absolute;
         top: 0;
@@ -206,9 +197,25 @@ const handleClose = () => {
         height: 100%;
       }
 
+      // 隐藏进度条
       video::-webkit-media-controls-timeline {
         display: none !important;
       }
+
+      // 隐藏播放按钮
+      video::-webkit-media-controls-play-button {
+        display: none !important;
+      }
+
+      // 隐藏当前播放的时间点
+      video::-webkit-media-controls-current-time-display {
+        display: none !important;
+      }
+
+      // 隐藏剩余时间
+      video::-webkit-media-controls-time-remaining-display {
+        display: none !important;
+      }
     }
   }