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