From 5c336feaab461f5d8dd34c6bf8ee822fbe710eba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=88=AA?= Date: Mon, 1 Sep 2025 17:38:40 +0800 Subject: [PATCH 1/3] fix: bug --- .env.development | 4 +++- src/pages/course/components/touchBtn.vue | 3 +++ src/pages/course/study.vue | 7 ++++++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.env.development b/.env.development index fa823236..df80a9f9 100644 --- a/.env.development +++ b/.env.development @@ -23,15 +23,17 @@ VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001' # VITE_APP_BASE_H5_API_Url = 'http://25.64.16.130:9602' # 线上 -VITE_APP_BASE_H5_API_Url = 'https://aitstest.jlbank.com.cn:7002' +# VITE_APP_BASE_H5_API_Url = 'https://aitstest.jlbank.com.cn:7002' VITE_APP_BASE_H5_API_Url = 'http://25.18.122.65:7001' #VITE_APP_BASE_H5_API_Url = 'http://25.18.122.116:7001' # 任东 # VITE_APP_BASE_H5_API_Url_TRAAPP = 'http://25.64.16.130:9601' # VITE_APP_BASE_H5_API_Url_TRASTUDY = 'http://25.64.16.130:9602' +# VITE_APP_BASE_H5_API_Url_TRAEXAM = 'http://25.64.16.130:9604' # 张建成 # 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' # 于嘉文 diff --git a/src/pages/course/components/touchBtn.vue b/src/pages/course/components/touchBtn.vue index 0e295099..64a6608e 100644 --- a/src/pages/course/components/touchBtn.vue +++ b/src/pages/course/components/touchBtn.vue @@ -276,6 +276,9 @@ const getRecordPermission = (obj) => { if (isTalking.value) { common.msg('操作频繁,请稍后重试!') + setTimeout(() => { + isTalking.value = false + }, 500) return } showOverlayTalking(obj) diff --git a/src/pages/course/study.vue b/src/pages/course/study.vue index 550f73b4..7f4f777c 100644 --- a/src/pages/course/study.vue +++ b/src/pages/course/study.vue @@ -768,6 +768,7 @@ const uploadRecordNow = voicePath => { }) .then(res => { let _res = JSON.parse(res.data) + console.log(_res) if (_res.rtnCode === '0000') { talkingList.value = talkingList.value.map(t => { if (t.id === _id) { @@ -778,7 +779,9 @@ const uploadRecordNow = voicePath => { qnsId: _data.qnsId, talkingContent: '', talkingVoice: voicePath, - intrctId: _res.body.chatBody, + recordId: _res.body.chatBody.recordId, + asrStartTm: unref(lastTalkingInfo).asrStartTm, + stdyPgrphId: _res.body.chatBody.stdyPgrphId, type: 1, userInfo: { ...choiceTeacherInfo.value @@ -789,12 +792,14 @@ const uploadRecordNow = voicePath => { return t } }) + console.log(11111,_res.body.chatBody) scrollToBottomNow() } else { } setIsUploadingVoice() }) .catch(err => { + console.log('err',err) setIsUploadingVoice() talkingList.value = talkingList.value.filter(t => t.id !== _id) uni.showToast({ From 24b7134b17b7c275ce54415fcea28209d9970651 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=88=AA?= Date: Mon, 1 Sep 2025 18:14:11 +0800 Subject: [PATCH 2/3] fix: bug --- .env.development | 12 ++---------- src/pages/course/components/talkingItem.vue | 1 + src/pages/course/index.vue | 3 +++ 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/.env.development b/.env.development index 17dc4783..224e7ca9 100644 --- a/.env.development +++ b/.env.development @@ -6,7 +6,7 @@ ENV = 'development' # VITE_APP_BASE_API_Url = 'http://25.18.122.78:9786' # DEV -VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001' +# VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001' # app入口 #VITE_APP_BASE_API_Url = 'http://25.16.122.65:7001' @@ -15,15 +15,7 @@ VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001' # h5专用地址 -# 王洋洋 -# VITE_APP_BASE_H5_API_Url = 'http://25.64.16.140:9604' -# 岳世凯 -# VITE_APP_BASE_H5_API_Url = 'http://25.64.16.141:9701' -# 任东 -# VITE_APP_BASE_H5_API_Url = 'http://25.64.16.130:9602' -# 线上 - -VITE_APP_BASE_H5_API_Url = 'https://aitstest.jlbank.com.cn:7002' +# VITE_APP_BASE_H5_API_Url = 'https://aitstest.jlbank.com.cn:7002' # VITE_APP_BASE_H5_API_Url = 'https://aitstest.jlbank.com.cn:7002' VITE_APP_BASE_H5_API_Url = 'http://25.18.122.65:7001' #VITE_APP_BASE_H5_API_Url = 'http://25.18.122.116:7001' diff --git a/src/pages/course/components/talkingItem.vue b/src/pages/course/components/talkingItem.vue index eb4a6429..f93874d6 100644 --- a/src/pages/course/components/talkingItem.vue +++ b/src/pages/course/components/talkingItem.vue @@ -414,6 +414,7 @@ const audioCacheObj = computed(() => storageStore.audioObj) } const playVoice = (readType = 'pgth') =>{ let _content = showContent.value + console.log(_content) if(!_content){ common.msg('没有可以播放的文字信息!') return diff --git a/src/pages/course/index.vue b/src/pages/course/index.vue index 52af9596..bf86c119 100644 --- a/src/pages/course/index.vue +++ b/src/pages/course/index.vue @@ -345,6 +345,9 @@ import { onShow } from "@dcloudio/uni-app" }) changeTab({name:activeTab.value || '全部'}) }); + onShow(()=>{ + changeTab({name:activeTab.value || '全部'}) + }) From ec1c33f02eff70a12ac3ae48e93aafba77649b44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=B2=A9?= Date: Mon, 1 Sep 2025 19:28:36 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9sit=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/examination/components/dialog.vue | 47 ++- src/pages/examination/index.vue | 11 +- src/pages/index/index.vue | 4 +- src/pages/mascot/mascot_select_list.vue | 41 ++- src/pages/search/result.vue | 339 +++++++++++--------- src/pages/search/search.vue | 17 +- src/pages/setting/index.vue | 3 +- src/pages/testingHall/index.vue | 2 +- 8 files changed, 271 insertions(+), 193 deletions(-) diff --git a/src/pages/examination/components/dialog.vue b/src/pages/examination/components/dialog.vue index 7c3ee26f..a93a99c0 100644 --- a/src/pages/examination/components/dialog.vue +++ b/src/pages/examination/components/dialog.vue @@ -5,13 +5,13 @@ - + - {{item?.name || ''}} + {{ item?.name || '' }} @@ -19,35 +19,32 @@ \ No newline at end of file + diff --git a/src/pages/examination/index.vue b/src/pages/examination/index.vue index c070b7c7..1c3fb12d 100644 --- a/src/pages/examination/index.vue +++ b/src/pages/examination/index.vue @@ -318,6 +318,7 @@ }); const result_click = ({ key }) => { + console.log('杀杀杀', key); if (key === 'hand_in_paper') { // 现在交卷 hand_in_paper('弹窗确认交卷'); @@ -332,13 +333,13 @@ console.log('点击交卷', paperData); // 判断是否完成所有题目 const completeList = topicList - .filter((res) => !!(Array.isArray(res.my_answer) ? res.my_answer.length : res.my_answer)) + .filter((res) => !!(Array.isArray(res.my_answer) ? res.my_answer.length>0 : res.my_answer?.anserResult !=='')) .map((res) => ({ a: res.qnsId, b: res.my_answer, c: !!res.my_answer })); - dialogConfiguration.title = '确认现在交卷吗?'; + const style_button_1 = { color: '#FFFFFF', fontSize: '30rpx', @@ -352,10 +353,12 @@ borderRadius: '8rpx' }; const incompleteNumber = topicList.length - completeList.length; + console.log('completeList', completeList); + console.log('incompleteNumber', incompleteNumber); if (incompleteNumber === 0) { // 完成 - dialogConfiguration.type = 'complete'; dialogConfiguration.title = '确认现在交卷吗?'; + dialogConfiguration.html = ''; dialogConfiguration.buttonList = [ { key: 'hand_in_paper', @@ -369,7 +372,7 @@ } ]; } else { - dialogConfiguration.type = 'incomplete'; // 未完成 + dialogConfiguration.title = ''; dialogConfiguration.html = `当前考试进度:${completeList.length}/${topicList.length} 题 还有${incompleteNumber}道题未作答,确认交卷吗?`; dialogConfiguration.buttonList = [ { diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 533c7783..7e60aa5c 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -406,10 +406,10 @@ } }); }; - + // 进入搜索页 const goto_search_page = () => { - common.navigateTo('/pages/search/search'); + common.navigateTo('/pages/search/search?from=index'); }; // 进入课程详情页 const goto_course_detail = (crsId) => { diff --git a/src/pages/mascot/mascot_select_list.vue b/src/pages/mascot/mascot_select_list.vue index b9c5a757..f9170c86 100644 --- a/src/pages/mascot/mascot_select_list.vue +++ b/src/pages/mascot/mascot_select_list.vue @@ -1,6 +1,9 @@