瀏覽代碼

活体检测的bug。优化摄像头大小。

Michael Wang 6 年之前
父節點
當前提交
91485fb518

+ 1 - 0
.env.staging

@@ -1,3 +1,4 @@
 VUE_APP_TK_SERVER_URL=http://192.168.10.39:8868
 VUE_APP_FACEPP_KEY=kEz_MSSjkNuHL3fHhCvv62fXkAo-vobE
 VUE_APP_FACEPP_SECRET=aQMioMGUDShMnQmfM1_H_kPTP2pJva6J
+VUE_APP_WK_SERVER_SOCKET=wss://ecs.qmth.com.cn:8878/oewebsocket/

+ 9 - 1
src/features/OnlineExam/Examing/ExamingHome.vue

@@ -11,7 +11,7 @@
       <ArrowNavView :previousQuestionOrder="previousQuestionOrder" :nextQuestionOrder="nextQuestionOrder"></ArrowNavView>
     </div>
     <div :class="['side', 'side-row-size']">
-      <div class="question-nav">
+      <div :class="['question-nav', !faceEnable && 'question-nav-long']">
         <QuestionNavView :paperStruct="paperStruct" />
       </div>
       <div v-if="faceEnable" class="camera">
@@ -396,6 +396,14 @@ export default {
   grid-template-rows: 1fr;
 }
 
+.question-nav {
+  max-height: calc(100vh - 350px);
+}
+
+.question-nav-long {
+  max-height: calc(100vh - 100px);
+}
+
 .camera {
   align-self: flex-end;
   justify-self: flex-end;

+ 1 - 2
src/features/OnlineExam/Examing/QuestionNavView.vue

@@ -106,8 +106,7 @@ export default {
 <style scoped>
 .container {
   display: grid;
-  max-height: calc(100vh - 300px - 50px);
-  overflow: scroll;
+  overflow-y: scroll;
 }
 .section {
   display: grid;