Quellcode durchsuchen

修正单选题样式

Michael Wang vor 6 Jahren
Ursprung
Commit
38faf43e8f

+ 2 - 2
src/features/OnlineExam/Examing/BooleanQuestionView.vue

@@ -6,11 +6,11 @@
       <div class="score">({{examQuestion.questionScore}}分)</div>
     </div>
     <div @click="() => answerQuestion('true')" :class="[studentAnswer === 'true' && 'row-selected', 'option']">
-      <input type="radio" name="question" value="true" :checked="studentAnswer === 'true'" />
+      <input type="radio" name="question" value="true" :checked="studentAnswer === 'true'" style="margin-top:3px;display:block" />
       <span class="question-options">正确</span>
     </div>
     <div @click="() => answerQuestion('false')" :class="[studentAnswer === 'false' && 'row-selected', 'option']">
-      <input type="radio" name="question" value="false" :checked="studentAnswer === 'false'" />
+      <input type="radio" name="question" value="false" :checked="studentAnswer === 'false'" style="margin-top:3px;display:block" />
       <span class="question-options">错误</span>
     </div>
     <div class="reset">

+ 3 - 1
src/features/OnlineExam/Examing/SingleQuestionView.vue

@@ -7,7 +7,9 @@
     </div>
     <div v-for="(option, index) in newQuestionOptions" :key="index" class="option" @click="() => {answerQuestion(option.oldIndex);}">
       <div :class="studentAnswer === option.oldIndex && 'row-selected'" style="display: flex;">
-        <input type="radio" name="question" :value="option.oldIndex" :checked="studentAnswer === option.oldIndex" style="margin-top: 4px" />
+        <div>
+          <input type="radio" name="question" :value="option.oldIndex" :checked="studentAnswer === option.oldIndex" style="margin-top:3px;display:block" />
+        </div>
         <span style="padding: 0 10px;">{{optionName[index]}}: </span>
         <div class="question-options" v-if="option.value">
           <question-body :questionBody="option.value.body" :examQuestion="examQuestion"></question-body>

+ 1 - 5
src/features/OnlineExam/PhoneVerifyForDD.vue

@@ -31,11 +31,7 @@ export default {
     };
   },
   async mounted() {
-    if (
-      ["cugr.ecs.qmth.com.cn", "ecs-dev.qmth.com.cn"].includes(
-        localStorage.getItem("domain")
-      )
-    ) {
+    if (["cugr.ecs.qmth.com.cn"].includes(localStorage.getItem("domain"))) {
       this.phoneModal = true;
     }
   },