fuliqi
2024-06-20 c8c9da7b1afc5f21f4fd39801e8af0271d88918e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<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>