<template>
|
<div class="list-container w-full h-full">
|
<div class="list-content w-full overflow-x-hidden">
|
<el-row :gutter="20">
|
<el-col :span="6" v-for="item in dataList" class="mb-5">
|
<el-card shadow="hover" class="list-card cursor-pointer" :body-style="{ padding: 0 }">
|
<div class="img-container w-full">
|
<img src="@/assets/list-card-bg.jpg" class="w-full">
|
</div>
|
<div class="item-info p-3">
|
<div class="info-title font-bold">{{ item.title }}</div>
|
<div class="info-teacher flex text-sm text-gray-500">
|
<div class="info-label">主讲:</div>
|
<div class="info-text">{{ item.teacher }}</div>
|
</div>
|
<div class="info-time flex text-sm text-gray-500">
|
<div class="info-label">开始时间:</div>
|
<div class="info-text">{{ item.startTime }}</div>
|
</div>
|
<div class="info-time flex text-sm text-gray-500">
|
<div class="info-label">结束时间:</div>
|
<div class="info-text">{{ item.endTime }}</div>
|
</div>
|
</div>
|
<el-button size="mini" @click="start" >开始上课</el-button>
|
</el-card>
|
</el-col>
|
</el-row>
|
</div>
|
</div>
|
</template>
|
|
<script>
|
export default {
|
data () {
|
return {
|
dataList: [
|
{
|
title: '测试1',
|
startTime: '2024-6-13 8:00',
|
endTime: '2024-6-13 8:00',
|
teacher: '测试测试',
|
roomName: 'test'
|
},
|
{
|
title: '测试1',
|
startTime: '2024-6-13 8:00',
|
endTime: '2024-6-13 8:00',
|
teacher: '测试测试',
|
roomName: 'test'
|
},
|
{
|
title: '测试1',
|
startTime: '2024-6-13 8:00',
|
endTime: '2024-6-13 8:00',
|
teacher: '测试测试',
|
roomName: 'test'
|
},
|
{
|
title: '测试1',
|
startTime: '2024-6-13 8:00',
|
endTime: '2024-6-13 8:00',
|
teacher: '测试测试',
|
roomName: 'test'
|
},
|
{
|
title: '测试1',
|
startTime: '2024-6-13 8:00',
|
endTime: '2024-6-13 8:00',
|
teacher: '测试测试',
|
roomName: 'test'
|
}
|
]
|
}
|
},
|
methods: {
|
start(){
|
// this.$router.push({path:'/train/meet/index'})
|
window.open('https://ycl.easyblog.vip:8443/test');
|
}
|
}
|
}
|
</script>
|
|
<style lang="scss" scoped>
|
.item {
|
width: 100%;
|
min-height: 120px;
|
}
|
|
.bottom-item {
|
margin-right: 30px;
|
}
|
|
.img-container {
|
object-fit: cover;
|
object-position: center;
|
width: 100%;
|
max-height: 160px;
|
overflow: hidden;
|
}
|
|
.list-card {
|
border-radius: 10px;
|
}
|
</style>
|