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
2025-11-11 17:19:33 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
aa5c576361bc047f62d9c622e8e95dfeb0dff4ce
aa5c5763
1 parent
a79f5f33
fix(HomePage): 修复课程分类和已购标识的条件渲染问题
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
src/views/HomePage.vue
src/views/HomePage.vue
View file @
aa5c576
<!--
* @Date: 2025-03-20 19:55:21
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-11-11 1
6:29:22
* @LastEditTime: 2025-11-11 1
7:18:13
* @FilePath: /mlaj/src/views/HomePage.vue
* @Description: 美乐爱觉教育首页组件
*
...
...
@@ -208,7 +208,7 @@
已购
</div>
<div class="absolute inset-0 bg-gradient-to-b from-transparent via-black/20 to-black/60 flex flex-col justify-end p-4">
<div class="bg-amber-500/90 text-white px-2 py-1 rounded-full text-xs font-medium inline-block w-fit mb-1">
<div
v-if="course.category"
class="bg-amber-500/90 text-white px-2 py-1 rounded-full text-xs font-medium inline-block w-fit mb-1">
{{ course.category }}
</div>
<h2 class="text-2xl font-bold text-white drop-shadow-md">{{ course.title }}</h2>
...
...
@@ -316,7 +316,7 @@
/>
<!-- 已购标识 -->
<div
v-if="item.is_buy"
v-if="item
?
.is_buy"
class="absolute top-0 left-0 bg-orange-500 text-white text-xs px-2 py-1 rounded-br-lg font-medium"
style="background-color: rgba(249, 115, 22, 0.85)"
>
...
...
Please
register
or
login
to post a comment