From c8dbbecd554e880874e567fb7233a034061e4d1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=88=AA?= Date: Wed, 3 Sep 2025 10:20:38 +0800 Subject: [PATCH 1/9] =?UTF-8?q?fix=EF=BC=9A=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 14 +++++++------- src/pages/course/study.vue | 2 +- src/pages/search/result.vue | 9 +++++---- 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.env.development b/.env.development index 781bd773..1efdd9d4 100644 --- a/.env.development +++ b/.env.development @@ -16,14 +16,14 @@ 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:7002' -# sit -#VITE_APP_BASE_H5_API_Url = 'http://25.18.122.91:9786' - +# 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' + # 任东 # VITE_APP_BASE_H5_API_Url_TRAAPP = 'http://25.64.16.130:9601' @@ -34,7 +34,7 @@ VITE_APP_BASE_H5_API_Url = 'https://aitstest.jlbank.com.cn:7001' # VITE_APP_BASE_H5_API_Url_TRAASK = 'http://25.64.16.144:9605' # VITE_APP_BASE_H5_API_Url_TRASTUDY = 'http://25.64.16.144:9602' # 王洋洋 -# VITE_APP_BASE_H5_API_Url_TRAEXAM = 'http://25.64.16.140:9604' +VITE_APP_BASE_H5_API_Url_TRAEXAM = 'http://25.64.16.140:9604' # 于嘉文 # VITE_APP_BASE_H5_API_Url_TRAEXAM = 'http://25.64.16.143:9604' # 孙宇 diff --git a/src/pages/course/study.vue b/src/pages/course/study.vue index 77821c3c..7428d64b 100644 --- a/src/pages/course/study.vue +++ b/src/pages/course/study.vue @@ -377,6 +377,7 @@ const getGraphInfoUnStudy = (flag = 0) => { return } if (Number(_body.bodyTyp) === 7) { + uni.$emit('refresh_course_list', crsId.value) if (isPreview.value) { common .show('提示', '您已学完全部知识点', false, '取消', '确定') @@ -398,7 +399,6 @@ const getGraphInfoUnStudy = (flag = 0) => { }) .finally(() => {}) } - uni.$emit('refresh_course_list') return } lastTalkingInfo.value = { diff --git a/src/pages/search/result.vue b/src/pages/search/result.vue index 5e3bf419..f9c38a64 100644 --- a/src/pages/search/result.vue +++ b/src/pages/search/result.vue @@ -18,7 +18,7 @@ - {{ hasMore ? '滚动加载更多' : '加载完成' }} + {{ hasMore ? '滚动加载更多' : '全部加载完成' }} @@ -60,7 +60,7 @@ - {{ hasMore ? '滚动加载更多' : '加载完成' }} + {{ hasMore ? '滚动加载更多' : '全部加载完成' }} 暂无数据 @@ -73,7 +73,7 @@ - {{ hasMore ? '滚动加载更多' : '加载完成' }} + {{ hasMore ? '滚动加载更多' : '全部加载完成' }} 暂无数据 @@ -94,7 +94,7 @@ - {{ hasMore ? '滚动加载更多' : '加载完成' }} + {{ hasMore ? '滚动加载更多' : '全部加载完成' }} 暂无数据 @@ -371,6 +371,7 @@ const toCourseDetail = item => { font-size: 26rpx; } .view-tips { + padding-top: 20rpx; width: 100%; text-align: center; color: #999; From 2ce7c72a3d5fef9dd6da668807577037ec80fe22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=B2=A9?= Date: Wed, 3 Sep 2025 13:45:58 +0800 Subject: [PATCH 2/9] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=80=83=E8=AF=95?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=A0=8F=E4=B8=8D=E6=B8=85=E6=A5=9Abug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/pages/examination/index.vue | 5 +-- src/pages/practice/index.vue | 37 ++++++++++++----------- src/pages/wrongQuestionRecord/correct.vue | 35 +++++++++++---------- 4 files changed, 40 insertions(+), 39 deletions(-) diff --git a/.env.development b/.env.development index 781bd773..02c73bad 100644 --- a/.env.development +++ b/.env.development @@ -16,7 +16,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:7002' #VITE_APP_BASE_H5_API_Url = 'https://aitstest.jlbank.com.cn:7002' # sit #VITE_APP_BASE_H5_API_Url = 'http://25.18.122.91:9786' diff --git a/src/pages/examination/index.vue b/src/pages/examination/index.vue index 3f1c8108..c704e509 100644 --- a/src/pages/examination/index.vue +++ b/src/pages/examination/index.vue @@ -268,7 +268,7 @@ // 录音按钮提交 const touchBtnSubmit = (type, submitObj) => { - // const old_text = touchBtnRef.value?.clearinputText(); // 清除发送框数据 + touchBtnRef.value?.clearinputText(); // 清除发送框数据 if (type === 'voice') { topic.value.es_status = '00'; // 00转圈 const voicePath = submitObj; @@ -277,7 +277,6 @@ let _res = JSON.parse(res.data); if (_res.rtnCode === '0000') { const _content = _res.body.transContent.trim(); - console.log('_content', _content); if (_content === '') { topic.value.es_status = ''; // 取消转圈 return common.msg('未识别到文字'); @@ -294,8 +293,6 @@ }) .catch((err) => { topic.value.es_status = ''; // 取消转圈 - // 失败了再把发送框数据还原回去 - // touchBtnRef.value?.clearinputText(old_text); // 清除发送框数据 common.msg('系统异常,请联系管理员'); }); } else if (type === 'text') { diff --git a/src/pages/practice/index.vue b/src/pages/practice/index.vue index 7bee6a94..675d7473 100644 --- a/src/pages/practice/index.vue +++ b/src/pages/practice/index.vue @@ -4,7 +4,6 @@ {{ paperData.name }} - @@ -24,7 +23,7 @@ - + { - const old_text = touchBtnRef.value?.clearinputText(); // 清除发送框数据 - + const touchBtnSubmit = (type, submitObj) => {1 + touchBtnRef.value?.clearinputText(); // 清除发送框数据 if (type === 'voice') { topic.value.es_status = '00'; // 00转圈 const voicePath = submitObj; @@ -308,19 +306,23 @@ .then((res) => { let _res = JSON.parse(res.data); if (_res.rtnCode === '0000') { - topic.value.es_status = '02'; - topic.value.my_answer = { - anserResult: _res.body.transContent, - ossKey: _res.body.fileId, - ossAddr: _res.body.ossFileAddr, - voicePath: voicePath - }; + const _content = _res.body.transContent.trim(); + if (_content === '') { + topic.value.es_status = ''; // 取消转圈 + return common.msg('未识别到文字'); + } else { + topic.value.es_status = '02'; + topic.value.my_answer = { + anserResult: _res.body.transContent, + ossKey: _res.body.fileId, + ossAddr: _res.body.ossFileAddr, + voicePath: voicePath + }; + } } }) .catch((err) => { topic.value.es_status = ''; // 取消转圈 - // 失败了再把发送框数据还原回去 - touchBtnRef.value?.clearinputText(old_text); // 清除发送框数据 common.msg('系统异常,请联系管理员'); }); } else if (type === 'text') { @@ -370,11 +372,10 @@ // 中途退出 dialogRef.value.close(); common.loading(); - try{ + try { await practiceCommit({ exrId: paperData.exrId, examLenTm: practiceTime.value, stat: 'U' }); common.navigateBack(); - }catch(e){ - } + } catch (e) {} common.hideLoading(); } else if (key === 'revert') { // 返回 @@ -710,7 +711,7 @@ .grey { margin-right: 8rpx; } - .countdown_time{ + .countdown_time { white-space: nowrap; } color: #ffffff; diff --git a/src/pages/wrongQuestionRecord/correct.vue b/src/pages/wrongQuestionRecord/correct.vue index c75580cf..c617e422 100644 --- a/src/pages/wrongQuestionRecord/correct.vue +++ b/src/pages/wrongQuestionRecord/correct.vue @@ -79,17 +79,17 @@