|
@@ -46,7 +46,7 @@
|
|
<text :class="['sample-text', show_sample_text ? 'sample-show' : 'sample-hide']"
|
|
<text :class="['sample-text', show_sample_text ? 'sample-show' : 'sample-hide']"
|
|
@click="show_sample_text = !show_sample_text">{{ show_sample_text ? '隐藏范文' : '查看范文' }}</text>
|
|
@click="show_sample_text = !show_sample_text">{{ show_sample_text ? '隐藏范文' : '查看范文' }}</text>
|
|
</view>
|
|
</view>
|
|
- <view class="sample-text" v-if="show_sample_text" v-html="sanitizeHTML(questionData.sample_text)"
|
|
|
|
|
|
+ <view class="sample-text article-content" v-if="show_sample_text" v-html="sanitizeHTML(show_sample_break)"
|
|
:ref="'richText-3-3'+questionData.question_id"
|
|
:ref="'richText-3-3'+questionData.question_id"
|
|
@longpress="previewByRichTextImg(-3,-3,questionData.question_id)"></view>
|
|
@longpress="previewByRichTextImg(-3,-3,questionData.question_id)"></view>
|
|
</view>
|
|
</view>
|
|
@@ -100,6 +100,7 @@
|
|
fontNum: 0,
|
|
fontNum: 0,
|
|
messageText: '',
|
|
messageText: '',
|
|
question_id: '',
|
|
question_id: '',
|
|
|
|
+ show_sample_break: '',
|
|
};
|
|
};
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
@@ -113,6 +114,7 @@
|
|
this.question_id = this.questionData.question_id;
|
|
this.question_id = this.questionData.question_id;
|
|
this.setUserAnswer();
|
|
this.setUserAnswer();
|
|
this.commonComputedAnswerControl(val);
|
|
this.commonComputedAnswerControl(val);
|
|
|
|
+ this.show_sample_break = this.questionData.sample_text ? this.questionData.sample_text.replace(/#/g, '</p><p>') : '';
|
|
},
|
|
},
|
|
immediate: true,
|
|
immediate: true,
|
|
deep: true
|
|
deep: true
|
|
@@ -266,6 +268,9 @@
|
|
color: #306eff;
|
|
color: #306eff;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ .article-content {
|
|
|
|
+ text-indent: 2em;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
.reference {
|
|
.reference {
|