From 4eebd75345e3dfe6dca4d4773443e4e3ce647c19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=B2=A9?= Date: Mon, 1 Sep 2025 10:54:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F=E4=BC=98?= =?UTF-8?q?=E5=8C=96=EF=BC=8C=E5=8E=BB=E9=99=A4=E5=A4=9A=E4=BD=99=E7=9A=84?= =?UTF-8?q?=E5=BC=95=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/course/index.vue | 62 +++++++++---------- src/pages/courseDetail/components/comment.vue | 5 +- .../courseDetail/components/introduce.vue | 1 - .../courseDetail/components/knowledge.vue | 4 +- src/pages/courseDetail/index.vue | 12 ++-- src/pages/courseDetail/submit.vue | 3 +- .../components/examRecordItem.vue | 3 +- .../components/examRecordList.vue | 16 ++--- .../components/practiceRecordItem.vue | 2 +- .../components/practiceRecordList.vue | 9 ++- .../components/studyRecordItem.vue | 1 - .../components/studyRecordList.vue | 39 ++---------- .../coursePracticeRecordDetail.vue | 5 +- src/pages/courseRecord/index.vue | 10 +-- src/pages/examination/components/dialog.vue | 4 -- src/pages/examination/components/feedback.vue | 4 +- src/pages/examination/index.vue | 39 +++--------- .../components/examRecordList.vue | 9 ++- src/pages/examinationRecord/index.vue | 27 +------- .../favorites/components/favoritesCourse.vue | 10 +-- .../favorites/components/favoritesTask.vue | 8 +-- src/pages/favorites/index.vue | 5 +- .../learningTasks/components/content.vue | 2 +- src/pages/learningTasks/details.vue | 1 - src/pages/learningTasks/index.vue | 3 +- src/pages/messageNotification/index2.vue | 2 +- src/pages/practice/index.vue | 1 - .../preview/components/previewCourse.vue | 2 +- src/pages/preview/index.vue | 9 --- src/pages/setting/index.vue | 5 +- src/pages/testingHall/components/content.vue | 22 ++----- src/pages/testingHall/details.vue | 1 - src/pages/testingHall/index.vue | 8 --- src/pages/welcome/index.vue | 2 +- src/pages/wrongQuestionRecord/correct.vue | 11 ++-- src/pages/wrongQuestionRecord/index.vue | 3 +- 36 files changed, 100 insertions(+), 250 deletions(-) diff --git a/src/pages/course/index.vue b/src/pages/course/index.vue index 52af9596..02274432 100644 --- a/src/pages/course/index.vue +++ b/src/pages/course/index.vue @@ -10,11 +10,11 @@ @@ -46,19 +46,19 @@ - - - - - - @@ -100,7 +100,7 @@ {{item.label}} - statusBarHeight + 'px') - + const activeTagPop = ref([]) - + const chooseTagPop = (item) => { if(!item.value){ activeTagPop.value = [] @@ -210,7 +210,7 @@ import { onShow } from "@dcloudio/uni-app" } const showTypeName = computed(()=>{ return (activeTab.value === '全部' && activeCourseType.value === '') || (activeTab.value === '生产线' && activePrdlineType.value === '') - }) + }) const tagsList = computed(()=>{ let _arr = [] tagsTree.value.forEach(t=>{ @@ -221,7 +221,7 @@ import { onShow } from "@dcloudio/uni-app" let _reqListN = _arr.filter(t=>t.required === "N") return _reqList.concat(_reqListN) }) - + const courseListBase = ref([]) const courseList = computed(()=>{ if(activeTag.value.length > 0 && !!activeTag.value[0]){ @@ -244,10 +244,10 @@ import { onShow } from "@dcloudio/uni-app" }) // 整理树形 const courseListTree = computed(()=>{ - let _arr = activeTab.value === '全部'? courseTypeList.value + let _arr = activeTab.value === '全部'? courseTypeList.value : activeTab.value === '生产线'? coursePrdlineList.value: [] let _idKey = activeTab.value === '全部'? 'tagId': 'prdLineId' - + let _tree = _arr.map(t=>{ let _children = t.children||[] return { @@ -397,7 +397,7 @@ import { onShow } from "@dcloudio/uni-app" } } .input-view{ - + } .tabs-view{ background: #ffffff; diff --git a/src/pages/courseDetail/components/comment.vue b/src/pages/courseDetail/components/comment.vue index fe673655..befb52ba 100644 --- a/src/pages/courseDetail/components/comment.vue +++ b/src/pages/courseDetail/components/comment.vue @@ -121,9 +121,6 @@ const popup = ref(null); const popup_input_bottom = ref('0px'); - - const inputValue = ref(''); - const placeholder = ref(''); const message_list = reactive([]); const status = ref(''); // loadmore - 加载前,loading - 加载中,nomore - 没有数据 const limit = 20; @@ -182,7 +179,7 @@ }; const getData = (from = '') => { - if (from == 'submit') { + if (from === 'submit') { status.value = ''; total.value = -1; page.value = 1; diff --git a/src/pages/courseDetail/components/introduce.vue b/src/pages/courseDetail/components/introduce.vue index a2cbd135..ed90ad6a 100644 --- a/src/pages/courseDetail/components/introduce.vue +++ b/src/pages/courseDetail/components/introduce.vue @@ -48,7 +48,6 @@