From 4da058386242d4af5b4cb7c73ee3230ac50fee7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=B2=A9?= Date: Fri, 16 Jan 2026 09:30:36 +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=5F=E4=BF=AE=E6=94=B9=E7=BB=83=E4=B9=A0=E5=92=8C?= =?UTF-8?q?=E8=80=83=E8=AF=95=E7=9A=84=E4=BB=85=E8=AF=AD=E9=9F=B3=E6=8C=89?= =?UTF-8?q?=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +- .../courseDetail/components/introduce.vue | 3 +- src/pages/examination/index.vue | 15 ++++++- src/pages/practice/index.vue | 39 ++++++++++++------- 4 files changed, 43 insertions(+), 18 deletions(-) diff --git a/.env.development b/.env.development index 94f0d442..f354029a 100644 --- a/.env.development +++ b/.env.development @@ -7,7 +7,7 @@ ENV = 'development' #VITE_APP_BASE_API_Url = 'https://aits.jlbank.com.cn:7002' -VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002' +#VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002' # VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002' # VITE_APP_BASE_API_Url = 'http://192.168.247.200' @@ -21,7 +21,7 @@ VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002' # sit -#VITE_APP_BASE_API_Url = 'http://25.18.122.91:9786' +VITE_APP_BASE_API_Url = 'http://25.18.122.91:9786' # UAT diff --git a/src/pages/courseDetail/components/introduce.vue b/src/pages/courseDetail/components/introduce.vue index 116bef91..97a6f729 100644 --- a/src/pages/courseDetail/components/introduce.vue +++ b/src/pages/courseDetail/components/introduce.vue @@ -66,8 +66,7 @@ modelValue: Object }); import {ANSWER_METHOD_MAP} from '@/enum.js' - - const answerMethod = computed(() => ANSWER_METHOD_MAP[props.item?.answerMethod || ''] || ANSWER_METHOD_MAP['01']); + const answerMethod = computed(() => ANSWER_METHOD_MAP[props.modelValue?.answerMethod || ''] || ANSWER_METHOD_MAP['01']); const previewFile = info => { previewFileFnc({ fileId: info.fileId, diff --git a/src/pages/examination/index.vue b/src/pages/examination/index.vue index 4f2443f2..c04e63d1 100644 --- a/src/pages/examination/index.vue +++ b/src/pages/examination/index.vue @@ -96,7 +96,20 @@ + - + - + + @@ -97,6 +111,7 @@ import CharactersSubject from '@/components/examination/characters-subject.vue'; // import TouchBtn from '@/components/examination/touchBtn.vue'; import TouchBtn from '@/pages/course/components/touchBtn.vue'; + import TouchBtnOnlyVoice from '@/pages/course/components/touchBtnOnlyVoice.vue'; import common from '@/common/common'; import { setPageCache, formatSeconds, getPageCache, setupKeyboardHeightListener } from '@/common/common'; import { commonUploadVoiceFile } from '@/api/common.js'; @@ -104,7 +119,6 @@ import { practiceAnswer, practiceCommit, queryCrsPracticeAnswerResult } from '@/api/practice.js'; import { startExamByCrs } from '@/api/examination.js'; import { startPracticeByCrs } from '@/api/practice.js'; - const swiperRef = ref(null); const feedbackRef = ref(null); const dialogRef = ref(null); @@ -117,7 +131,7 @@ let leaveStartTime = 0; // 离开开始时间 const mode = ref('practice'); // 考试 examination 练习practice const systemInfo = uni.getSystemInfoSync(); - + const paperData = reactive({ exrId: '', crsId: '', @@ -365,16 +379,15 @@ paperData.crsId = practice.crsId; paperData.name = practice.name; paperData.exrId = practice.exrId; + answerMethod.value = practice.answerMethod ?? '01'; storageTopicList.value = practice.qnsInfoVos.map((res) => ({ ...res, isPreview: false, clearResult: true, es_status: '', // 预设一下问答题的状态,'' 空为没有 00 转圈 01 播放,其他暂定 my_answer: [], - answerMethod:answerMethod.value + answerMethod: answerMethod.value })); - answerMethod.value = practice.answerMethod ?? '01' - console.log('answerMethod', answerMethod.value); addProblem(); // 记录练习起始时间 practiceStartTime = new Date().getTime(); @@ -477,12 +490,12 @@ onUnload(() => { stopTimer(); }); - + onBackPress((res) => { - if(res.from === 'backbutton') { - exit_practice() + if (res.from === 'backbutton') { + exit_practice(); return true; - } + } });