update list

This commit is contained in:
AceDataCloud committed 2022-04-03 22:58:34 +08:00
1 parent 2e449feadb
commit 0a91213d8c
4 files changed
+57 -20

No files matched your search

+1 -1
View File
@@ -75,7 +75,7 @@ $height: 60px;
width: 100%;
background: radial-gradient(circle at 0 2%, #283e63, #172337 99%);
.logo {
height: $height - 3px;
height: $height - 5px;
width: 250px;
cursor: pointer;
}
-1
View File
@@ -9,7 +9,6 @@ import { defineComponent } from 'vue';
import VuePlyr from 'vue-plyr';
import 'vue-plyr/dist/vue-plyr.css';
import Hls from 'hls.js';
import Plyr from 'plyr';
interface IData {
options: {};
+2 -1
View File
@@ -9,5 +9,6 @@ export default {
publishedAt: '发布时间',
publishAt: '开始发布时间',
updatedAt: '更新时间',
article: '文章'
article: '文章',
minute: '分钟'
};
+54 -17
View File
@@ -31,26 +31,34 @@
<el-col :span="14" :offset="5">
<el-card shadow="hover" v-for="(episode, episodeIndex) in episodes" class="episode">
<el-row>
<el-col :span="3"> {{ episodeIndex + 1 }}</el-col>
<el-col :span="21">
<el-col :span="3" class="left">
<span class="index">
{{ episodeIndex + 1 }}
</span>
</el-col>
<el-col :span="21" class="right">
<div class="title">
<p>{{ episode.title }}</p>
<p>
<router-link
:to="{
name: 'episode-detail',
params: {
courseId: course?.id,
id: episode.id
}
}"
>{{ episode.title }}
</router-link>
</p>
</div>
<div class="introduction">
<p>{{ episode.introduction }}</p>
</div>
<div class="introduction">
<router-link
:to="{
name: 'episode-detail',
params: {
courseId: course?.id,
id: episode.id
}
}"
>
<el-button>{{ $t('common.button.watch') }}</el-button>
</router-link>
<div class="info">
<span class="duration">
<el-icon class="icon"> <clock /> </el-icon>
{{ episode.duration }} {{ $t('common.entity.minute') }}
</span>
</div>
</el-col>
</el-row>
@@ -65,6 +73,7 @@ import { ICourse, ICourseDetailResponse } from '@/services/course/types';
import { episodeService } from '@/services/episode/service';
import { IEpisode, IEpisodeListResponse } from '@/services/episode/types';
import { defineComponent } from 'vue';
import { Clock } from '@element-plus/icons-vue';
interface IData {
course: ICourse | undefined;
@@ -81,6 +90,9 @@ export default defineComponent({
loading: false
};
},
components: {
Clock
},
computed: {
id() {
return parseInt(this.$route.params.id.toString());
@@ -149,12 +161,29 @@ export default defineComponent({
.episodes {
.episode {
margin-top: 2rem;
height: 160px;
height: 100px;
border-radius: 0.934rem !important;
.left {
.index {
width: 50px;
height: 50px;
background: #f8fafe;
display: block;
border-radius: 50%;
line-height: 50px;
text-align: center;
font-size: 20px;
border: 2px solid #e5e5e5;
position: absolute;
top: 5px;
left: 35px;
}
}
.title {
p {
font-size: 1.5rem;
font-size: 1.2rem;
font-weight: bold;
margin-bottom: 10px;
}
}
.introduction {
@@ -163,6 +192,14 @@ export default defineComponent({
color: rgb(161, 161, 161);
}
}
.info {
font-size: 12px;
color: #666;
.icon {
position: relative;
top: 1px;
}
}
}
}
</style>