|
@@ -11,7 +11,7 @@
|
|
|
<div class="testBox"
|
|
|
:class="{ 'testBox1': styleType == 1, 'testBox2': styleType == 2, 'testBox3': styleType == 3 }">
|
|
|
<div class="ul"
|
|
|
- :class="{ 'overlap': (examState == 43 && time.ready) || [42].includes(examState) || (showTestAgain && ![41].includes(examState)), 'ready': [41].includes(examState) }"
|
|
|
+ :class="{ 'overlap': (examState == 43 && time.ready) || [42].includes(examState) || (showTestAgain && ![41].includes(examState)), 'ready': [41].includes(examState), 'hands': parameter.gesture }"
|
|
|
v-for="(items, indexs) in testListArr " :key="indexs">
|
|
|
<MultipleItem :ref="(el: any) => { multipleItemRef(el, item.itemNumber, item.area) }"
|
|
|
v-for="(item, index) in items" :query="parameter" :area="item.area" :key="index" @returnData="returnData"
|
|
@@ -65,7 +65,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup name="Multiple" lang="ts">
|
|
|
-import { initSpeech, speckText, speckCancel, chineseNumber } from '@/utils/speech'
|
|
|
+import { initSpeech, speckText, playMusic, controlMusic, speckCancel, chineseNumber } from '@/utils/speech'
|
|
|
import { initWs, examEnds, openOneTest, startFace, stopFace, faceConfirmOnly, startOneTest, finishOneTest, closeOneTest, suspendFaceRecognitionChannels, resumeFaceRecognitionChannels } from '@/utils/ws'
|
|
|
import { handWs } from '@/utils/handController'
|
|
|
const { proxy } = getCurrentInstance() as any;
|
|
@@ -160,6 +160,9 @@ const getStartOneTest = () => {
|
|
|
}
|
|
|
}
|
|
|
speckText("哨声");
|
|
|
+ if (parameter.value.music) {
|
|
|
+ playMusic(parameter.value.music);
|
|
|
+ }
|
|
|
//显示再测一次按钮
|
|
|
showTestAgain.value = true;
|
|
|
//时间为0的为正计时,大于0的为倒计时
|
|
@@ -916,6 +919,14 @@ $waiPadding: 6.51rem;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ .disable {
|
|
|
+
|
|
|
+ .userInfo,
|
|
|
+ .score {
|
|
|
+ opacity: 0.5;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
&:nth-child(1) {
|
|
|
justify-content: space-between;
|
|
|
}
|
|
@@ -966,6 +977,25 @@ $waiPadding: 6.51rem;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ .hands.ul {
|
|
|
+
|
|
|
+ &:nth-child(1) {
|
|
|
+ .li:nth-child(2) {
|
|
|
+ &::after {
|
|
|
+ background-image: url("@/assets/images/test/ready4.png");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ &:nth-child(2) {
|
|
|
+ .li {
|
|
|
+ &::after {
|
|
|
+ background-image: url("@/assets/images/test/ready4.png");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
.overlap.ul {
|
|
|
transition: all 0.5s;
|
|
|
|
|
@@ -1116,6 +1146,10 @@ $waiPadding: 6.51rem;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ .disable {
|
|
|
+ opacity: 0.5;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.overlap {
|
|
@@ -1272,6 +1306,10 @@ $waiPadding: 6.51rem;
|
|
|
line-height: 1;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ .disable {
|
|
|
+ opacity: 0.5;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</style>
|