|
@@ -64,7 +64,7 @@
|
|
{{ answerWordCount }}
|
|
{{ answerWordCount }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div v-else>
|
|
|
|
|
|
+ <div v-if="shouldFetchQrCode">
|
|
<div>
|
|
<div>
|
|
<div v-if="qrValue" style="display: flex">
|
|
<div v-if="qrValue" style="display: flex">
|
|
<qrcode
|
|
<qrcode
|
|
@@ -75,7 +75,7 @@
|
|
<div style="margin-top: 10px;">
|
|
<div style="margin-top: 10px;">
|
|
<div>
|
|
<div>
|
|
请使用<span style="font-weight: 900; color: #1E90FF;">微信</span
|
|
请使用<span style="font-weight: 900; color: #1E90FF;">微信</span
|
|
- >扫描二维码后,在微信小程序上录音,并上传录音。
|
|
|
|
|
|
+ >扫描二维码后,在微信小程序上录音/拍照,并上传文件。
|
|
</div>
|
|
</div>
|
|
<div v-if="qrScanned" style="margin-top: 30px; font-size: 30px;">
|
|
<div v-if="qrScanned" style="margin-top: 30px; font-size: 30px;">
|
|
{{ this.examQuestion.studentAnswer ? "已上传" : "已扫描" }}
|
|
{{ this.examQuestion.studentAnswer ? "已上传" : "已扫描" }}
|
|
@@ -90,7 +90,7 @@
|
|
class="audio-answer audio-answer-line-height"
|
|
class="audio-answer audio-answer-line-height"
|
|
style="margin-top: 20px ;"
|
|
style="margin-top: 20px ;"
|
|
>
|
|
>
|
|
- <span class="audio-answer-line-height">音频答案:</span>
|
|
|
|
|
|
+ <span class="audio-answer-line-height">答案:</span>
|
|
<audio
|
|
<audio
|
|
class="audio-answer-line-height"
|
|
class="audio-answer-line-height"
|
|
v-if="this.examQuestion.studentAnswer"
|
|
v-if="this.examQuestion.studentAnswer"
|
|
@@ -98,7 +98,7 @@
|
|
controlsList="nodownload"
|
|
controlsList="nodownload"
|
|
:src="this.examQuestion.studentAnswer"
|
|
:src="this.examQuestion.studentAnswer"
|
|
/>
|
|
/>
|
|
- <span v-else class="audio-answer-line-height">未上传音频</span>
|
|
|
|
|
|
+ <span v-else class="audio-answer-line-height">未上传文件</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -232,8 +232,14 @@ export default {
|
|
this.answerDivKey = Math.random();
|
|
this.answerDivKey = Math.random();
|
|
},
|
|
},
|
|
fetchQRCode() {
|
|
fetchQRCode() {
|
|
- if (this.examQuestion.answerType === "SINGLE_AUDIO") {
|
|
|
|
- if (!getQRCode(this.examQuestion.order)) {
|
|
|
|
|
|
+ const shouldFetch =
|
|
|
|
+ this.examQuestion.answerType === "SINGLE_AUDIO" ||
|
|
|
|
+ this.$store.state.user.schoolDomain === "ecs-dev.qmth.com.cn";
|
|
|
|
+ this.$store.state.user.schoolDomain === "iepcc-ps.ecs.qmth.com.cn";
|
|
|
|
+ if (shouldFetch) {
|
|
|
|
+ const transferFileType =
|
|
|
|
+ this.examQuestion.answerType === "SINGLE_AUDIO" ? "AUDIO" : "PIC";
|
|
|
|
+ if (!getQRCode(this.examQuestion.order, transferFileType)) {
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
this.fetchQRCode();
|
|
this.fetchQRCode();
|
|
}, 3000);
|
|
}, 3000);
|
|
@@ -316,6 +322,14 @@ export default {
|
|
isAudioAnswerType() {
|
|
isAudioAnswerType() {
|
|
return this.examQuestion.answerType === "SINGLE_AUDIO";
|
|
return this.examQuestion.answerType === "SINGLE_AUDIO";
|
|
},
|
|
},
|
|
|
|
+ shouldFetchQrCode() {
|
|
|
|
+ const shouldFetch =
|
|
|
|
+ this.examQuestion.answerType === "SINGLE_AUDIO" ||
|
|
|
|
+ this.$store.state.user.schoolDomain === "ecs-dev.qmth.com.cn";
|
|
|
|
+ this.$store.state.user.schoolDomain === "iepcc-ps.ecs.qmth.com.cn";
|
|
|
|
+
|
|
|
|
+ return shouldFetch;
|
|
|
|
+ },
|
|
canAttachPhotos() {
|
|
canAttachPhotos() {
|
|
return (
|
|
return (
|
|
this.$store.state.user.schoolDomain === "csu.ecs.qmth.com.cn" ||
|
|
this.$store.state.user.schoolDomain === "csu.ecs.qmth.com.cn" ||
|