提交 db637030 编写于 作者: guangjun.yang's avatar guangjun.yang

共题干图片支持

样式
上级 0a945684
......@@ -15,7 +15,7 @@
<commonSpliteLine></commonSpliteLine>
</article>
<article class="title-wrapper">
<span class="type" :class="{'multi': currentQuestion.typeId == 2, 'top-0': isAndroid}">
<span class="type" :class="{'multi': currentQuestion.typeId == 2, 'top-1': isAndroid}">
<span>{{currentQuestion.typeId == 1 ? "单选题" : currentQuestion.typeId == 2 ? "多选题" : "判断题"}}</span>
</span>
<span class="content" v-html="currentQuestion.question"></span>
......@@ -225,8 +225,8 @@ export default {
&.multi {
background: #e6a23c;
}
&.top-0 {
top: 0;
&.top-1 {
top: 0.5px;
}
}
.content {
......
......@@ -107,6 +107,7 @@ const question = {
myAnswer = item.myAnswer;
answer = item.answer;
question = JSON.parse(JSON.stringify(item));
question.unionQuestion = question.unionQuestion.replace(/<img/, '<img style="max-width:98%;"');
question.question = question.question.replace(/<img/, '<img style="max-width:98%;"');
question.intro = question.intro.replace(/<img/, '<img style="max-width:98%;"');
let isAnalyzed = question.commitFlag && myAnswer != answer;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册