From 249fcf5dba180d05c4359c494b924f657cef3cc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=B2=A9?= Date: Wed, 20 Aug 2025 16:40:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=94=99=E9=A2=98=E6=9C=AC?= =?UTF-8?q?=E7=9A=84=E6=96=87=E4=BB=B6=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/App.vue | 2 +- src/common/imgSvg.ts | 16 ++ src/components/nav-bar/nav-bar.vue | 14 +- .../topic-display/topic-display.vue} | 0 src/pages.json | 2 +- src/pages/examination/result.vue | 4 +- src/pages/index/index.vue | 2 +- .../learningTasks/components/list-item.vue | 150 +++++------ src/pages/learningTasks/details.vue | 253 ++++++++++++++++-- src/pages/learningTasks/index.vue | 13 - src/pages/messageNotification/index.vue | 95 +++++-- src/pages/testingHall/details.vue | 1 - .../components/correct.vue | 0 .../components/favorites-course.vue | 4 +- .../components/radio-subject.vue | 117 ++++++++ .../index.vue | 124 +++++---- src/pagesA.json | 2 +- 18 files changed, 585 insertions(+), 216 deletions(-) rename src/{pages/wrong_question_record/components/radio-subject.vue => components/topic-display/topic-display.vue} (100%) rename src/pages/{wrong_question_record => wrongQuestionRecord}/components/correct.vue (100%) rename src/pages/{wrong_question_record => wrongQuestionRecord}/components/favorites-course.vue (96%) create mode 100644 src/pages/wrongQuestionRecord/components/radio-subject.vue rename src/pages/{wrong_question_record => wrongQuestionRecord}/index.vue (63%) diff --git a/.env.development b/.env.development index af51f93e..cb3b3b46 100644 --- a/.env.development +++ b/.env.development @@ -26,4 +26,4 @@ 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_TRAAPP = 'http://25.64.16.140:9602' -VITE_APP_BASE_H5_API_Url_TRASTUDY = 'http://25.64.16.130:9602' +#VITE_APP_BASE_H5_API_Url_TRASTUDY = 'http://25.64.16.130:9602' diff --git a/src/App.vue b/src/App.vue index dce6f91d..47a12d48 100644 --- a/src/App.vue +++ b/src/App.vue @@ -53,7 +53,7 @@ .pt-8 { padding-top: 8rpx; } - .mb- { + .mb-10 { margin-bottom: 10rpx; } .mb-18 { diff --git a/src/common/imgSvg.ts b/src/common/imgSvg.ts index b759e79b..c48d3853 100644 --- a/src/common/imgSvg.ts +++ b/src/common/imgSvg.ts @@ -32,3 +32,19 @@ export const feedbackIcon = () : string => { `.trim(); return `data:image/svg+xml;charset=utf-8,${encodeURIComponent(svgXml)}`; }; + +// 通过考试 +export const passTheExamIcon = (color: string) : string => { + const svgXml = ` + +`.trim(); + return `data:image/svg+xml;charset=utf-8,${encodeURIComponent(svgXml)}`; +}; + +// 完成练习 +export const completeTheExercisesIcon = (color: string) : string => { + const svgXml = ` + +`.trim(); + return `data:image/svg+xml;charset=utf-8,${encodeURIComponent(svgXml)}`; +}; diff --git a/src/components/nav-bar/nav-bar.vue b/src/components/nav-bar/nav-bar.vue index 8fd5ca5f..dd29ac32 100644 --- a/src/components/nav-bar/nav-bar.vue +++ b/src/components/nav-bar/nav-bar.vue @@ -1,13 +1,11 @@ \ No newline at end of file + diff --git a/src/pages/learningTasks/details.vue b/src/pages/learningTasks/details.vue index 792a96f0..011e283c 100644 --- a/src/pages/learningTasks/details.vue +++ b/src/pages/learningTasks/details.vue @@ -1,6 +1,6 @@ @@ -49,7 +87,7 @@ import { onLoad } from '@dcloudio/uni-app'; import { reactive, computed } from 'vue'; import { startTraExamPapersInfo } from '@/api/examination.js'; - + import { passTheExamIcon, completeTheExercisesIcon } from '@/common/imgSvg'; import common from '@/common/common'; import { setPageCache, getPageCache } from '@/common/common'; const detailData = reactive({ @@ -69,31 +107,167 @@ essayGrade: 0 }); const scrolltolower = () => {}; + const collect_click = async (collectId) => { + try { + if (!collectId) { + common.loading('收藏中'); + form.value.collectId = await insertTraPersonalCollectionTask({ + collectTyp: '01', + collectBusId: crsId.value + }); + common.msg('收藏成功'); + } else { + common.loading('取消收藏中'); + await deleteTraPersonalCollectionById({ + collectId: collectId + }); + form.value.collectId = null; + + common.msg('取消成功'); + } + } catch (e) { + common.hideLoading(); + } + }; onLoad((e) => { const testing_hall_details = getPageCache('testing_hall_details'); Object.assign(detailData, { ...testing_hall_details }); - console.log('detailData', detailData); }); \ No newline at end of file diff --git a/src/pages/wrong_question_record/index.vue b/src/pages/wrongQuestionRecord/index.vue similarity index 63% rename from src/pages/wrong_question_record/index.vue rename to src/pages/wrongQuestionRecord/index.vue index 74fe2eb7..95fdaae5 100644 --- a/src/pages/wrong_question_record/index.vue +++ b/src/pages/wrongQuestionRecord/index.vue @@ -9,11 +9,17 @@ - + @@ -26,43 +32,47 @@ + + + + + \ No newline at end of file + diff --git a/src/pagesA.json b/src/pagesA.json index 3b7ce420..15fc7fe1 100644 --- a/src/pagesA.json +++ b/src/pagesA.json @@ -118,7 +118,7 @@ } }, { - "path": "pages/wrong_question_record/index", + "path": "pages/wrongQuestionRecord/index", "style": { "navigationBarTitleText": "错题本", "app-plus": {