提交 193e5231 authored 作者: matian's avatar matian

课件详情开发

上级 e731555f
...@@ -80,7 +80,7 @@ const handleDetail = (row: any) => { ...@@ -80,7 +80,7 @@ const handleDetail = (row: any) => {
<el-image <el-image
:src="row.avatar" :src="row.avatar"
alt="" alt=""
style="width: 50px" style="width: 50px; height: 50px"
:preview-src-list="[row.avatar]" :preview-src-list="[row.avatar]"
:initial-index="4" :initial-index="4"
fit="contain" fit="contain"
......
<script setup lang="ts"> <script setup lang="ts">
const props = defineProps({
data: {
type: Object,
require: true
}
})
</script> </script>
<template> <template>
<div class="center-video-box"> <div class="center-video-box">
<div class="file-box"> <div class="file-box">
<embed width="812" height="433" src="https://vocational-store.oss-cn-beijing.aliyuncs.com/files/20210604/7b1bfdec10354da769461199acf55176.pdf"> <embed width="812" height="433" :src="props.data?.url" />
</div> </div>
<!-- <video width="812" height="433" controls> <!-- <video width="812" height="433" controls>
<source src="https://video.shipin520.com/videos/17/36/71/b_KSyZ5ujXfz7R1567173671.mp4" type="video/mp4"> <source src="https://video.shipin520.com/videos/17/36/71/b_KSyZ5ujXfz7R1567173671.mp4" type="video/mp4">
</video> --> </video> -->
<div class="right-statistics"> <div class="right-statistics">
<div class="stat-item"> <div class="stat-item">
<img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/center_resource/view-vicon1.png"> <img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/center_resource/view-vicon1.png" />
<div class="content"> <div class="content">
<div class="unit">758<span></span></div> <div class="unit">{{ props.data?.project_count }}<span></span></div>
<div class="tag">使用项目/学校</div> <div class="tag">使用项目/学校</div>
</div>
</div> </div>
</div> <div class="stat-item">
<div class="stat-item"> <img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/center_resource/view-vicon2.png" />
<img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/center_resource/view-vicon2.png"> <div class="content">
<div class="content"> <div class="unit">{{ props.data?.course_count }}<span></span></div>
<div class="unit">758<span></span></div> <div class="tag">使用课程</div>
<div class="tag">使用课程</div> </div>
</div> </div>
</div> <div class="stat-item">
<div class="stat-item"> <img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/center_resource/view-vicon3.png" />
<img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/center_resource/view-vicon3.png"> <div class="content">
<div class="content"> <div class="unit">{{ props.data?.learn_count }}<span></span></div>
<div class="unit">758<span></span></div> <div class="tag">累计学习人次</div>
<div class="tag">累计学习人次</div> </div>
</div> </div>
</div> <div class="stat-item">
<div class="stat-item"> <img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/center_resource/view-vicon4.png" />
<img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/center_resource/view-vicon4.png"> <div class="content">
<div class="content"> <div class="unit">{{ props.data?.learn_time_count }}<span></span></div>
<div class="unit">758<span></span></div> <div class="tag">累计学习时长</div>
<div class="tag">累计学习时长</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div>
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
.center-video-box{ .center-video-box {
padding: 20px 0; padding: 20px 0;
display: flex; display: flex;
.right-statistics{ .right-statistics {
flex: 1; flex: 1;
padding-top: 15px; padding-top: 15px;
.stat-item{ .stat-item {
width: 210px; width: 210px;
height: 85px; height: 85px;
background: #B41E47; background: #b41e47;
border-radius: 6px; border-radius: 6px;
display: flex; display: flex;
align-items: center; align-items: center;
margin: 0 auto 20px; margin: 0 auto 20px;
&:nth-child(even){ &:nth-child(even) {
background: #BF9D6B; background: #bf9d6b;
} }
img{ img {
width: 52px; width: 52px;
height: 52px; height: 52px;
display: block; display: block;
margin-left: 18px; margin-left: 18px;
} }
.content{ .content {
margin-left: 18px; margin-left: 18px;
.unit{ .unit {
font-size: 26px; font-size: 26px;
line-height: 100%; line-height: 100%;
color: #FFFFFF; color: #ffffff;
span{ span {
font-size: 12px; font-size: 12px;
line-height: 100%; line-height: 100%;
} }
} }
.tag{ .tag {
font-size: 14px; font-size: 14px;
line-height: 100%; line-height: 100%;
color: #FFFFFF; color: #ffffff;
margin-top: 10px; margin-top: 10px;
} }
} }
......
...@@ -78,7 +78,14 @@ const handleEdit = (row: any) => { ...@@ -78,7 +78,14 @@ const handleEdit = (row: any) => {
<el-button type="primary" round @click="handleAdd" style="margin-bottom: 20px">新增封面</el-button> <el-button type="primary" round @click="handleAdd" style="margin-bottom: 20px">新增封面</el-button>
<template #table-cover="{ row }"> <template #table-cover="{ row }">
<img :src="row.url" alt="" style="width: 50px" /> <el-image
:src="row.url"
style="width: 50px; height: 50px"
:preview-src-list="[row.url]"
:initial-index="4"
fit="contain"
:preview-teleported="true"
/>
</template> </template>
<template #table-operate="{ row }"> <template #table-operate="{ row }">
<el-space> <el-space>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论