From 263e028bef40ab617afbd777c7cbda8c7a5bd649 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=88=AA?= Date: Sat, 20 Dec 2025 11:15:58 +0800 Subject: [PATCH] =?UTF-8?q?JLBA202505130001=5F=E5=85=B3=E4=BA=8E=E5=90=89?= =?UTF-8?q?=E6=9E=97=E9=93=B6=E8=A1=8C=E6=96=B0=E5=BB=BAAI=E6=99=BA?= =?UTF-8?q?=E8=83=BD=E5=9F=B9=E8=AE=AD=E7=B3=BB=E7=BB=9F=E7=9A=84=E9=9C=80?= =?UTF-8?q?=E6=B1=82:fix=EF=BC=9B=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development.yh | 6 +++--- src/api/study.js | 9 +++++++++ src/pages/course/study.vue | 14 ++++++++++++-- 3 files changed, 24 insertions(+), 5 deletions(-) diff --git a/.env.development.yh b/.env.development.yh index ba0927c8..be042c33 100644 --- a/.env.development.yh +++ b/.env.development.yh @@ -2,14 +2,14 @@ ENV = 'development.yh' # 'development.yh' - VITE_APP_BASE_H5_API_Url = 'http://25.18.122.65:7001' +# VITE_APP_BASE_H5_API_Url = 'http://25.18.122.65:7001' # VITE_APP_BASE_H5_API_Url = 'http://25.18.122.91:9786' -# VITE_APP_BASE_H5_API_Url = 'http://25.18.122.78:9786' +VITE_APP_BASE_H5_API_Url = 'http://25.18.122.78:9786' # VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002' # VITE_APP_BASE_H5_API_Url_TRAEXAM = 'http://25.64.32.154:9604' # VITE_APP_BASE_H5_API_Url_TRAPRACTICE = 'http://25.64.32.156:9603' # VITE_APP_BASE_H5_API_Url_TRAAPP = 'http://25.64.32.154:9601' # VITE_APP_BASE_H5_API_Url_TRAAPP = 'http://25.64.32.158:9601' -# VITE_APP_BASE_H5_API_Url_TRASTUDY = 'http://25.64.32.154:9602' +VITE_APP_BASE_H5_API_Url_TRASTUDY = 'http://25.64.32.154:9602' diff --git a/src/api/study.js b/src/api/study.js index eec4f21e..12a76423 100644 --- a/src/api/study.js +++ b/src/api/study.js @@ -203,4 +203,13 @@ export const setStudyTeacherApi = (data) => { toastErrors: true, data }); +}; +// 预览切换顾问 +export const setPreviewTeacherApi = (data) => { + return request({ + url: base_url + '/traStdyTeacher/setStudyTeacherPreview ', + method: 'post', + toastErrors: true, + data + }); }; \ No newline at end of file diff --git a/src/pages/course/study.vue b/src/pages/course/study.vue index 81dc8812..49253192 100644 --- a/src/pages/course/study.vue +++ b/src/pages/course/study.vue @@ -130,7 +130,16 @@ import { onLoad, onShow, onUnload, onHide } from '@dcloudio/uni-app' import { previewFile, downloadFile, commonUploadVoiceFile, downloadVoiceFile, uploadVoiceFile } from '@/api/common.js' import { getToken, getPhoneEnvBool } from '@/common/common.js' import { get_base_url, goto_login_fun } from '@/api/request' -import { getCourseStudyInfoApi, afreshStudyCourseApi, queryQuestionEvalateApi, textChartApi, setStudyTeacherApi, textChartPreviewApi, previewAfreshStudyCourse, studyEndApi, studyStartApi } from '@/api/study.js' +import { getCourseStudyInfoApi, +afreshStudyCourseApi, +queryQuestionEvalateApi, +textChartApi, +setStudyTeacherApi, +setPreviewTeacherApi, +textChartPreviewApi, +previewAfreshStudyCourse, +studyEndApi, +studyStartApi } from '@/api/study.js' import common from '@/common/common' import TalkingItem from '@/pages/course/components/talkingItem.vue' import ImagePreview from '@/components/image-preview/image-preview.vue' @@ -302,7 +311,8 @@ const choiceTeacherInfo = computed(() => { const changeTeacherVoiceNow = async item => { if (item.teacherNo === choiceTeacher.value) return try { - const res = await setStudyTeacherApi({ + let _ajax = isPreview.value ? setPreviewTeacherApi : setStudyTeacherApi + const res = await _ajax({ stdyId: stdyId.value, teacherNo: item.teacherNo })