diff --git a/.env.development b/.env.development index b092e389..ad663b78 100644 --- a/.env.development +++ b/.env.development @@ -15,7 +15,7 @@ VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001' # h5专用地址 -# VITE_APP_BASE_H5_API_Url = 'https://aitstest.jlbank.com.cn:7001' +VITE_APP_BASE_H5_API_Url = 'https://aitstest.jlbank.com.cn:7001' # VITE_APP_BASE_H5_API_Url = 'https://aitstest.jlbank.com.cn:7002' # dev diff --git a/src/pages/courseRecord/components/practiceRecordItem.vue b/src/pages/courseRecord/components/practiceRecordItem.vue index 9cbb1ffa..ef84054e 100644 --- a/src/pages/courseRecord/components/practiceRecordItem.vue +++ b/src/pages/courseRecord/components/practiceRecordItem.vue @@ -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); diff --git a/src/pages/courseRecord/components/studyRecordItem.vue b/src/pages/courseRecord/components/studyRecordItem.vue index 81a78169..170810dc 100644 --- a/src/pages/courseRecord/components/studyRecordItem.vue +++ b/src/pages/courseRecord/components/studyRecordItem.vue @@ -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(); diff --git a/src/pages/examination/index.vue b/src/pages/examination/index.vue index e656bfc2..4672b003 100644 --- a/src/pages/examination/index.vue +++ b/src/pages/examination/index.vue @@ -12,7 +12,7 @@ - 答题进度 + 当前题目/总题数 {{ questionNumber + 1 }} /{{ topicList.length }} @@ -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; }); // 答题卡判断每道题的状态 diff --git a/src/pages/practice/index.vue b/src/pages/practice/index.vue index 05f751bd..68b89ef0 100644 --- a/src/pages/practice/index.vue +++ b/src/pages/practice/index.vue @@ -12,7 +12,7 @@ - 答题进度 + 当前题目/总题数 {{ questionNumber + 1 }} /{{ storageTopicList.length }} @@ -121,7 +121,7 @@ }); const showTouchBtn = computed(() => { - return topic.value?.qnsTyp === 'ES'; + return topic.value?.qnsTyp === 'ES' && !topic.value?.my_answer.anserResult; }); // 下面语音组件的禁用状态判断 diff --git a/src/pages/wrongQuestionRecord/correct.vue b/src/pages/wrongQuestionRecord/correct.vue index 14267c43..a5acfa6e 100644 --- a/src/pages/wrongQuestionRecord/correct.vue +++ b/src/pages/wrongQuestionRecord/correct.vue @@ -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);