林旭祥 8 ماه پیش
والد
کامیت
b1f7ae85f2
2فایلهای تغییر یافته به همراه6 افزوده شده و 3 حذف شده
  1. 4 1
      src/views/train/multiple.vue
  2. 2 2
      src/views/train/test.vue

+ 4 - 1
src/views/train/multiple.vue

@@ -473,6 +473,9 @@ watch(() => time.value.countdownNum, (newData) => {
   if (newData <= 5) {
     speckText(newData);
   }
+  if (newData == 0) {
+    speckText("哨声");
+  }
 }, { immediate: true });
 
 onBeforeMount(() => {
@@ -570,7 +573,7 @@ $waiPadding: 6.51rem;
   width: 26vh;
   height: 26vh;
   line-height: 26vh;
-  font-size: 10vh;
+  font-size: 10.3vh;
   right: auto;
   left: 50%;
   top: 0vh;

+ 2 - 2
src/views/train/test.vue

@@ -21,7 +21,7 @@
               :leave-active-class="proxy?.animate.dialog.leave">
               <div class="time" v-show="needStart && [42].includes(examState)">{{
                 time.countdownNum
-              }}</div>
+                }}</div>
             </transition>
             <div class="tips" v-if="examState == 41">
               <img v-if="parameter.gesture" src="@/assets/images/test/ready1.png" />
@@ -321,13 +321,13 @@ const getStartOneTest = () => {
     speckCancel();
     //计时项目才开
     if (needStart.value == true) {
+      speckText("哨声");
       //时间为0的为正计时,大于0的为倒计时
       if (time.value.testTime == 0) {
         getCounting("+");
       } else {
         getCounting("-");
       }
-      speckText("哨声");
     } else {
       speckText(faceCheckStu.value.name + ",请开始测试");
     }