Explorar el Código

这个手机端答完题后可以看答题卡,但是显示的是正确和错误,应该是显示已经做过的和未做的

xiaoshushu hace 4 años
padre
commit
121b8f36ff
Se han modificado 2 ficheros con 2 adiciones y 3 borrados
  1. 1 0
      .gitignore
  2. 1 3
      pages/aiCt/exam.vue

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+/unpackage/

+ 1 - 3
pages/aiCt/exam.vue

@@ -26,8 +26,7 @@
 						v-for="(item, index) in paperQuestionList" :key="index">
 							<button class="cu-btn round" 
 							:class="{
-								'line-green': item.userInfoAnswer === item.answer,
-							    'bg-red': item.userInfoAnswer && (item.userInfoAnswer !== item.answer) 
+								'line-green': item.userInfoAnswer,
 							}"
 							 @click="appointedQuestion(index)" >{{index + 1}}</button>
 						</view>
@@ -444,7 +443,6 @@
 						if (this.paperQuestionList.length > 0) {
 							// 添加字段是否显示答案
 							this.paperQuestionList.forEach(item => {
-								console.log("zx:"+item.content);
 								item.content= item.content.replace(/\<img/g,'<img style="max-width: 100%;height:auto;"');
 								this.$set(item, "showAnswerFlag", false);
 								// 区分 传递到后台的试题答案和显示在前端的试题答案 item.answer