| | |
| | | <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-col :span="6" v-for="item in dataList" class="margin-col"> |
| | | <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"> |
| | | <img src="@/assets/list-card-bg.jpg" class="width-img"> |
| | | </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-title">{{ item.title }}</div> |
| | | <div class="info-teacher"> |
| | | <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-time"> |
| | | <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-time"> |
| | | <div class="info-label">结束时间:</div> |
| | | <div class="info-text">{{ item.endTime }}</div> |
| | | </div> |
| | | <div class="button-container"> |
| | | <el-button @click="start">开始上课</el-button> |
| | | </div> |
| | | <el-button size="mini" @click="start" >开始上课</el-button> |
| | | </div> |
| | | </el-card> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | roomName: 'test' |
| | | } |
| | | ] |
| | | } |
| | | }; |
| | | }, |
| | | methods: { |
| | | start(){ |
| | | // this.$router.push({path:'/train/meet/index'}) |
| | | window.open('https://ycl.easyblog.vip:8443/test'); |
| | | let routeUrl = this.$router.resolve({ |
| | | path: "/meet", |
| | | }) |
| | | window.open(routeUrl.href, '_blank') |
| | | // window.open('https://ycl.easyblog.vip:8443/test'); |
| | | } |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | |
| | | .list-card { |
| | | border-radius: 10px; |
| | | } |
| | | |
| | | .item-info { |
| | | padding: 12px; |
| | | color: #8a8a8a; |
| | | } |
| | | |
| | | .info-title { |
| | | font-weight: bold; |
| | | } |
| | | |
| | | .info-teacher { |
| | | display: flex; |
| | | font-size: 14px; |
| | | } |
| | | |
| | | .info-time { |
| | | display: flex; |
| | | } |
| | | |
| | | .margin-col { |
| | | margin-bottom: 20px; |
| | | } |
| | | |
| | | .width-img { |
| | | width: 100%; |
| | | } |
| | | |
| | | .button-container { |
| | | display: flex; |
| | | margin-top: 10px; |
| | | } |
| | | </style> |