From c4841aaa782b5009363a45d406a0ece5e3894f3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=B2=A9?= Date: Sat, 30 Aug 2025 10:20:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E9=94=99=E9=A2=98=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 5 +- src/api/practice.js | 7 +- src/api/request.js | 11 +- src/api/wrongQuestionRecord.js | 21 + src/common/imgSvg.ts | 21 +- src/components/examination/es-analysis.vue | 70 +- src/components/examination/question.vue | 34 +- src/components/examination/subject.vue | 108 ++- src/pages.json | 27 + src/pages/courseDetail/components/comment.vue | 16 +- .../courseDetail/components/introduce.vue | 27 +- src/pages/courseDetail/index.vue | 57 +- .../coursePracticeRecordDetail.vue | 2 + src/pages/examination/components/dialog.vue | 6 +- src/pages/examination/components/feedback.vue | 2 +- src/pages/examination/index.vue | 11 +- src/pages/learningTasks/details.vue | 2 +- src/pages/me/index.vue | 159 +--- src/pages/messageNotification/index.vue | 59 +- src/pages/practice/index.vue | 186 +++-- src/pages/practice/result.vue | 175 +++++ .../preview/components/previewCourse.vue | 8 +- src/pages/setting/index.vue | 6 +- .../components/correct.vue | 187 ++--- .../components/favorites-course.vue | 16 +- src/pages/wrongQuestionRecord/correct.vue | 737 ++++++++++++++++++ src/pages/wrongQuestionRecord/index.vue | 65 +- src/pages/wrongQuestionRecord/result.vue | 11 + src/pagesA.json | 28 + src/static/images/common/wc.png | Bin 0 -> 16232 bytes 30 files changed, 1494 insertions(+), 570 deletions(-) create mode 100644 src/pages/practice/result.vue create mode 100644 src/pages/wrongQuestionRecord/correct.vue create mode 100644 src/pages/wrongQuestionRecord/result.vue create mode 100644 src/static/images/common/wc.png diff --git a/.env.development b/.env.development index 97d27da0..298c7817 100644 --- a/.env.development +++ b/.env.development @@ -25,11 +25,12 @@ VITE_APP_BASE_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 = '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_TRAASK = 'http://25.64.16.144:9605' +# VITE_APP_BASE_H5_API_Url_TRASTUDY = 'http://25.64.16.130:9602' +# VITE_APP_BASE_H5_API_Url_TRAASK = 'http://25.64.16.144:9605' # 王洋洋 diff --git a/src/api/practice.js b/src/api/practice.js index 81cc6c19..fb67031d 100644 --- a/src/api/practice.js +++ b/src/api/practice.js @@ -6,7 +6,6 @@ export const startPracticeByCrs = (data) => { return request({ url: base_url + '/traCrsPractice/startPracticeByCrs', method: 'post', - toastErrors: true, data }); }; @@ -16,17 +15,16 @@ export const practiceAnswer = (data) => { return request({ url: base_url + '/traCrsPractice/practiceAnswer', method: 'post', - toastErrors: true, data }); }; // 3.课程练习状态变更 -export const practiceCommit = (data) => { +export const practiceCommit = (data, suppressErrors=true) => { return request({ url: base_url + '/traCrsPractice/practiceCommit', method: 'post', - toastErrors: true, + suppressErrors: suppressErrors, data }); }; @@ -36,7 +34,6 @@ export const queryPracticeRecordByExrId = (data) => { return request({ url: base_url + '/traCrsPractice/queryPracticeRecordByExrId', method: 'post', - toastErrors: true, data }); }; diff --git a/src/api/request.js b/src/api/request.js index 4a45d1d3..34356a6e 100644 --- a/src/api/request.js +++ b/src/api/request.js @@ -61,8 +61,8 @@ export default function request({ data, meta, isStream, - suppressErrors, - toastErrors, + suppressErrors = false, + toastErrors = true, header = {}, timeout = 6000, baseUrl = '' @@ -97,10 +97,9 @@ export default function request({ const res = response.data if (res?.rtnCode === '0000') { return resolve(res) - } else { - if (toastErrors) { - common.msg(res?.message) - } + } else if (toastErrors) { + // common.msg(res?.message) + } //到这里下面全是异常的处理 if (suppressErrors) { // 静默的接口,报错也不处理,因为下面有公共处理 diff --git a/src/api/wrongQuestionRecord.js b/src/api/wrongQuestionRecord.js index 26e60fef..dd4e9348 100644 --- a/src/api/wrongQuestionRecord.js +++ b/src/api/wrongQuestionRecord.js @@ -20,3 +20,24 @@ export const mistakesCorrect = (data) => { data }); }; + + +// 错题本id集合 +export const queryTraMistakesCollection = (data) => { + return request({ + url: base_url + '/traMistakesCollection/queryTraMistakesCollection', + method: 'post', + toastErrors: true, + data + }); +}; + +// 根据ID查题 +export const queryMistakesAnswerByMisId = (data) => { + return request({ + url: base_url + '/traMistakesCollection/queryMistakesAnswerByMisId ', + method: 'post', + toastErrors: true, + data + }); +}; \ No newline at end of file diff --git a/src/common/imgSvg.ts b/src/common/imgSvg.ts index 9e61a5c2..4dbf34f4 100644 --- a/src/common/imgSvg.ts +++ b/src/common/imgSvg.ts @@ -58,26 +58,11 @@ export const lockIcon = (color: string) : string => { }; -// 学习时长 -export const studyDurationIcon = (color: string='#62A1FF') : string => { +// 练习退出图标 +export const practiceExitIcon = () : string => { const svgXml = ` - + `.trim(); return `data:image/svg+xml;charset=utf-8,${encodeURIComponent(svgXml)}`; }; -// 学习次数 -export const studyFrequencyIcon = (color: string='#62A1FF') : string => { - const svgXml = ` - -`.trim(); - return `data:image/svg+xml;charset=utf-8,${encodeURIComponent(svgXml)}`; -}; - -// 学习时间 -export const studyTimeIcon = (color: string='#958DFF') : string => { - const svgXml = ` - -`.trim(); - return `data:image/svg+xml;charset=utf-8,${encodeURIComponent(svgXml)}`; -}; \ No newline at end of file diff --git a/src/components/examination/es-analysis.vue b/src/components/examination/es-analysis.vue index 6174f9f2..84e5bea3 100644 --- a/src/components/examination/es-analysis.vue +++ b/src/components/examination/es-analysis.vue @@ -3,20 +3,25 @@ 维度评分: {{ dimension_all_score }} + + + + {{ item.gradeDimens }}: {{ item.anlyGrade }} - + - diff --git a/src/components/examination/question.vue b/src/components/examination/question.vue index e2562594..74b0ae3c 100644 --- a/src/components/examination/question.vue +++ b/src/components/examination/question.vue @@ -32,10 +32,18 @@ - + 重答 - + 完成 @@ -49,8 +57,16 @@ - 重答 - 完成 + + 重答 + + + 完成 + @@ -62,7 +78,7 @@ \ No newline at end of file + diff --git a/src/pages/courseDetail/index.vue b/src/pages/courseDetail/index.vue index c1dcf43c..ecef8d83 100644 --- a/src/pages/courseDetail/index.vue +++ b/src/pages/courseDetail/index.vue @@ -40,7 +40,7 @@ - - - - + + + - + -