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-09-30 13:49:45 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7e21a510768c96b3673771cfdb92ff23d72433c7
7e21a510
1 parent
68b9747f
feat(CourseCard): 添加已购课程标识
在课程卡片上添加已购标识,当课程已被购买时显示
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
src/components/ui/CourseCard.vue
src/components/ui/CourseCard.vue
View file @
7e21a51
<!--
* @Date: 2025-03-20 20:36:36
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-09-
24 22:59:47
* @LastEditTime: 2025-09-
30 13:49:35
* @FilePath: /mlaj/src/components/ui/CourseCard.vue
* @Description: 文件描述
-->
<template>
<router-link :to="linkTo || `/courses/${course.id}`" class="flex bg-white rounded-lg overflow-hidden shadow-sm">
<div class="w-1/3 h-28">
<div class="w-1/3 h-28
relative
">
<img
:src="course.cover || 'https://cdn.ipadbiz.cn/mlaj/images/default_block.png'"
:alt="course.title"
class="w-full h-full object-cover"
/>
<!-- 已购标识 -->
<div
v-if="course.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)"
>
已购
</div>
</div>
<div class="flex-1 p-3 flex flex-col justify-between">
<div>
...
...
Please
register
or
login
to post a comment