修改答题自动收起问答题答题框

This commit is contained in:
田岩
2025-09-04 19:20:33 +08:00
parent f012447d15
commit 63e68bf18b
6 changed files with 10 additions and 8 deletions
@@ -104,13 +104,13 @@
// 计算两个标准时间的时间差值
const formatDuration = (startTm, endTm) => {
if(endTm === null || startTm === null) return "00:00:00";
// 解析时间字符串为时间戳(毫秒)
const startTime = new Date(startTm).getTime();
const endTime = new Date(endTm).getTime();
// 计算时间差(秒),确保为正数
const seconds = Math.abs(Math.floor((endTime - startTime) / 1000));
// 计算时、分、秒
const hours = Math.floor(seconds / 3600);
const minutes = Math.floor((seconds % 3600) / 60);
@@ -110,6 +110,7 @@
// 计算两个标准时间的时间差值
const formatDuration = (startTm, endTm) => {
if(endTm === null || startTm === null) return "00:00:00";
// 解析时间字符串为时间戳(毫秒)
const startTime = new Date(startTm).getTime();
const endTime = new Date(endTm).getTime();
+2 -1
View File
@@ -199,8 +199,9 @@
get: () => topicList[questionNumber.value],
set: (val) => (topicList[questionNumber.value] = val)
});
const showTouchBtn = computed(() => {
return topicList[questionNumber.value]['qnsTyp'] === 'ES';
return topic.value?.qnsTyp === 'ES' && !topic.value?.my_answer.anserResult;
});
// 答题卡判断每道题的状态
+1 -1
View File
@@ -121,7 +121,7 @@
});
const showTouchBtn = computed(() => {
return topic.value?.qnsTyp === 'ES';
return topic.value?.qnsTyp === 'ES' && !topic.value?.my_answer.anserResult;
});
// 下面语音组件的禁用状态判断
+3 -3
View File
@@ -110,11 +110,11 @@
get: () => topicList[questionNumber.value],
set: (val) => (topicList[questionNumber.value] = val)
});
const showTouchBtn = computed(() => {
return topic.value?.qnsTyp === 'ES';
return topic.value?.qnsTyp === 'ES' && !topic.value?.my_answer.anserResult;
});
// 下面语音组件的禁用状态判断
const touchIsDisabled = computed(() => topic.value?.es_status !== '' && topic.value?.es_status !== undefined);