From f5521bb36af8f215a299fcd63e49cbbc8bbca7db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=B2=A9?= Date: Thu, 4 Sep 2025 16:47:35 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/examination/index.vue | 2 +- src/pages/practice/index.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/examination/index.vue b/src/pages/examination/index.vue index 2d0dfaf2..7a2065eb 100644 --- a/src/pages/examination/index.vue +++ b/src/pages/examination/index.vue @@ -12,7 +12,7 @@ - 答题进度 + 当前题目/总题数 {{ questionNumber + 1 }} /{{ topicList.length }} diff --git a/src/pages/practice/index.vue b/src/pages/practice/index.vue index 05f751bd..0f5f2724 100644 --- a/src/pages/practice/index.vue +++ b/src/pages/practice/index.vue @@ -12,7 +12,7 @@ - 答题进度 + 当前题目/总题数 {{ questionNumber + 1 }} /{{ storageTopicList.length }} From 63e68bf18b4443d3b3c125a3a9e31c4148f330ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=B2=A9?= Date: Thu, 4 Sep 2025 19:20:33 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=AD=94=E9=A2=98?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=94=B6=E8=B5=B7=E9=97=AE=E7=AD=94=E9=A2=98?= =?UTF-8?q?=E7=AD=94=E9=A2=98=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 ++-- src/pages/courseRecord/components/practiceRecordItem.vue | 2 +- src/pages/courseRecord/components/studyRecordItem.vue | 1 + src/pages/examination/index.vue | 3 ++- src/pages/practice/index.vue | 2 +- src/pages/wrongQuestionRecord/correct.vue | 6 +++--- 6 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.env.development b/.env.development index 6ee69cc3..7146d671 100644 --- a/.env.development +++ b/.env.development @@ -15,13 +15,13 @@ 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 # VITE_APP_BASE_H5_API_Url = 'http://25.18.122.65:7001' # sit -VITE_APP_BASE_H5_API_Url = 'http://25.18.122.91:9786' +# VITE_APP_BASE_H5_API_Url = 'http://25.18.122.91:9786' # UAT # VITE_APP_BASE_H5_API_Url = 'http://25.18.122.78:9786' 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 257c7cdd..4672b003 100644 --- a/src/pages/examination/index.vue +++ b/src/pages/examination/index.vue @@ -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 0f5f2724..68b89ef0 100644 --- a/src/pages/practice/index.vue +++ b/src/pages/practice/index.vue @@ -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);