Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
mlaj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2026-01-22 20:22:40 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
009e4be61a600fb1260cd02c0961cdd578dfb322
009e4be6
1 parent
b048b0b7
fix(profile): 优化课程详情页空白状态和分隔线显示逻辑
移除冗余的空状态组件,根据内容动态显示分隔线
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
src/views/profile/StudyCoursePage.vue
src/views/profile/StudyCoursePage.vue
View file @
009e4be
...
...
@@ -40,6 +40,8 @@
</div>
</div>
<div v-if="!course?.feature && !course?.highlights && !course?.learning_goal" class="h-2 bg-gray-100"></div>
<div v-if="course?.feature || course?.highlights || course?.learning_goal" id="detail" class="py-4 px-4">
<div v-if="course?.feature">
<div class="text-black text-xl font-bold mb-2">课程特色</div>
...
...
@@ -56,10 +58,10 @@
<div class="text-gray-700 text-sm leading-relaxed" v-html="course?.learning_goal"></div>
<br />
</div>
<van-empty v-if="!course?.feature && !course?.highlights && !course?.learning_goal" description="暂无详情" />
</div>
<!-- <van-empty v-else description="暂无详情" /> -->
<div class="h-2 bg-gray-100"></div>
<div
v-if="course?.feature || course?.highlights || course?.learning_goal"
class="h-2 bg-gray-100"></div>
<div id="catalog" class="py-4">
<div v-if="course_lessons.length" class="space-y-4">
...
...
@@ -77,10 +79,10 @@
</div>
</div>
</div>
<
van-empty v-else description="暂无目录" /
>
<
!-- <van-empty v-else description="暂无目录" /> --
>
</div>
<div class="h-2 bg-gray-100"></div>
<div
v-if="course_lessons.length"
class="h-2 bg-gray-100"></div>
<div id="interaction" class="py-4 px-4" v-if="task_list.length > 0">
<div class="bg-white rounded-lg p-4 mb-4 cursor-pointer">
...
...
Please
register
or
login
to post a comment