From 68b95b97767eea2bb740c819b228eaad5c3944c6 Mon Sep 17 00:00:00 2001 From: zhonghua Date: Fri, 27 Mar 2026 11:07:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E9=9A=90=E8=97=8F=E6=8E=88=E6=9D=83?= =?UTF-8?q?=E6=96=87=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/school/courses/CourseDetailView.vue | 107 +++++++----------- .../views/school/courses/CourseListView.vue | 2 +- 2 files changed, 41 insertions(+), 68 deletions(-) diff --git a/lesingle-edu-reading-platform-frontend/src/views/school/courses/CourseDetailView.vue b/lesingle-edu-reading-platform-frontend/src/views/school/courses/CourseDetailView.vue index 694cb70..9616144 100644 --- a/lesingle-edu-reading-platform-frontend/src/views/school/courses/CourseDetailView.vue +++ b/lesingle-edu-reading-platform-frontend/src/views/school/courses/CourseDetailView.vue @@ -8,8 +8,8 @@

{{ course.name || '课程包详情' }}

- 已授权 - 未授权 +
@@ -211,12 +211,8 @@
-
+
{{ translateLessonType(lesson.lessonType) }} @@ -242,29 +238,20 @@
核心资源
-
+
{{ lesson.videoName || '绘本动画' }}
-
+
{{ lesson.pptName || '教学课件' }}
-
+
{{ lesson.pdfName || '电子绘本' }} @@ -321,12 +308,8 @@ 视频资源
-
+
{{ item.name }} @@ -340,12 +323,8 @@ 音频资源
-
+
{{ item.name }} @@ -359,12 +338,8 @@ 文档资源
-
+
@@ -380,14 +355,8 @@ 图片资源
- +
@@ -424,11 +393,7 @@ - +
@@ -550,9 +515,9 @@ const themeTagStyle = computed(() => // 是否有课程介绍内容 const hasIntroContent = computed(() => { return course.value.introSummary || course.value.introHighlights || - course.value.introGoals || course.value.introSchedule || - course.value.introKeyPoints || course.value.introMethods || - course.value.introEvaluation || course.value.introNotes; + course.value.introGoals || course.value.introSchedule || + course.value.introKeyPoints || course.value.introMethods || + course.value.introEvaluation || course.value.introNotes; }); // 课程介绍填写数量 @@ -612,7 +577,7 @@ const allVideos = computed(() => { videos.push({ path: item.path, name: item.name || '视频', source: '资源库' }); }); } - } catch {} + } catch { } } return videos; }); @@ -628,7 +593,7 @@ const allAudios = computed(() => { audios.push({ path: item.path, name: item.name || '音频', source: '资源库' }); }); } - } catch {} + } catch { } } return audios; }); @@ -657,7 +622,7 @@ const allDocuments = computed(() => { docs.push({ path: item.path, name: item.name || '电子绘本', type: 'pdf', source: '资源库' }); }); } - } catch {} + } catch { } } return docs; }); @@ -673,16 +638,16 @@ const allImages = computed(() => { images.push({ path: item.path, name: item.name || '挂图' }); }); } - } catch {} + } catch { } } return images; }); const hasAnyResources = computed(() => { return allVideos.value.length > 0 || - allAudios.value.length > 0 || - allDocuments.value.length > 0 || - allImages.value.length > 0; + allAudios.value.length > 0 || + allDocuments.value.length > 0 || + allImages.value.length > 0; }); const totalResourcesCount = computed(() => { @@ -1154,9 +1119,17 @@ const fetchCourseDetail = async () => { font-size: 18px; margin-right: 8px; - &.video { color: #722ed1; } - &.ppt { color: #fa8c16; } - &.pdf { color: #f5222d; } + &.video { + color: #722ed1; + } + + &.ppt { + color: #fa8c16; + } + + &.pdf { + color: #f5222d; + } } .resource-name { diff --git a/lesingle-edu-reading-platform-frontend/src/views/school/courses/CourseListView.vue b/lesingle-edu-reading-platform-frontend/src/views/school/courses/CourseListView.vue index e216b80..d550c32 100644 --- a/lesingle-edu-reading-platform-frontend/src/views/school/courses/CourseListView.vue +++ b/lesingle-edu-reading-platform-frontend/src/views/school/courses/CourseListView.vue @@ -83,7 +83,7 @@
cover -
+
{{ course.authorized ? '已授权' : '未授权' }}