|
@@ -1,32 +1,73 @@
|
|
|
<script setup>
|
|
|
import commonHeader from "@/components/header/index.vue";
|
|
|
-import img_lczs1 from '~/assets/zbktssys/1.png';
|
|
|
-import img_lczs2 from '~/assets/zbktssys/2.png';
|
|
|
-import img_lczs3 from '~/assets/zbktssys/3.png';
|
|
|
-import img_lczs from '~/assets/zbktssys/bar.png';
|
|
|
-import img_tx from '~/assets/zbktssys/tx.png';
|
|
|
-
|
|
|
-import { ArrowRight, ArrowLeft } from '@element-plus/icons-vue';
|
|
|
+import img_lczs1 from "~/assets/zbktssys/1.png";
|
|
|
+import img_lczs2 from "~/assets/zbktssys/2.png";
|
|
|
+import img_lczs3 from "~/assets/zbktssys/3.png";
|
|
|
+import img_lczs from "~/assets/zbktssys/bar.png";
|
|
|
+import img_tx from "~/assets/zbktssys/tx.png";
|
|
|
+import { ArrowRight, ArrowLeft } from "@element-plus/icons-vue";
|
|
|
import { ElMessage } from "element-plus";
|
|
|
-
|
|
|
-
|
|
|
+import { zbkt_dg } from "./api";
|
|
|
+import { ref } from "vue";
|
|
|
+import { useRoute } from "vue-router";
|
|
|
+const https = ref(window.GLOBAL_CONFIG.api);
|
|
|
+const route = useRoute();
|
|
|
+let dgData = {
|
|
|
+ id: route.params.id,
|
|
|
+};
|
|
|
+let dgMsg = ref({});
|
|
|
+function getDgDetail() {
|
|
|
+ zbkt_dg(dgData).then((res) => {
|
|
|
+ dgMsg.value = res.data.one_info;
|
|
|
+ });
|
|
|
+}
|
|
|
+getDgDetail();
|
|
|
const data_zy = $ref([
|
|
|
- { img: img_lczs1, title: '走进生肖文化——寅虎卯兔', bfl: 100, desc: '领略生肖传奇,品味传统文化!', nj: '四年级', xk: '美术', ls: '尚老师', tx: img_tx, zt: '1' },
|
|
|
- { img: img_lczs2, title: '走进生肖文化——寅虎卯兔', bfl: 100, desc: '领略生肖传奇,品味传统文化!', nj: '四年级', xk: '美术', ls: '尚老师', tx: img_tx, zt: '' },
|
|
|
- { img: img_lczs3, title: '走进生肖文化——寅虎卯兔', bfl: 100, desc: '领略生肖传奇,品味传统文化!', nj: '四年级', xk: '美术', ls: '尚老师', tx: img_tx, zt: '' },
|
|
|
-])
|
|
|
-
|
|
|
+ {
|
|
|
+ img: img_lczs1,
|
|
|
+ title: "走进生肖文化——寅虎卯兔",
|
|
|
+ bfl: 100,
|
|
|
+ desc: "领略生肖传奇,品味传统文化!",
|
|
|
+ nj: "四年级",
|
|
|
+ xk: "美术",
|
|
|
+ ls: "尚老师",
|
|
|
+ tx: img_tx,
|
|
|
+ zt: "1",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ img: img_lczs2,
|
|
|
+ title: "走进生肖文化——寅虎卯兔",
|
|
|
+ bfl: 100,
|
|
|
+ desc: "领略生肖传奇,品味传统文化!",
|
|
|
+ nj: "四年级",
|
|
|
+ xk: "美术",
|
|
|
+ ls: "尚老师",
|
|
|
+ tx: img_tx,
|
|
|
+ zt: "",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ img: img_lczs3,
|
|
|
+ title: "走进生肖文化——寅虎卯兔",
|
|
|
+ bfl: 100,
|
|
|
+ desc: "领略生肖传奇,品味传统文化!",
|
|
|
+ nj: "四年级",
|
|
|
+ xk: "美术",
|
|
|
+ ls: "尚老师",
|
|
|
+ tx: img_tx,
|
|
|
+ zt: "",
|
|
|
+ },
|
|
|
+]);
|
|
|
|
|
|
function hrefTo(href) {
|
|
|
- window.open(href, '_blank')
|
|
|
+ window.open(href, "_blank");
|
|
|
}
|
|
|
|
|
|
-let activeTap = $ref('pj')
|
|
|
+let activeTap = $ref("pj");
|
|
|
|
|
|
-const shareLink = window.location.href
|
|
|
+const shareLink = window.location.href;
|
|
|
async function copyLink() {
|
|
|
- await navigator.clipboard.writeText(shareLink)
|
|
|
- ElMessage.success('已复制')
|
|
|
+ await navigator.clipboard.writeText(shareLink);
|
|
|
+ ElMessage.success("已复制");
|
|
|
}
|
|
|
</script>
|
|
|
|
|
@@ -44,15 +85,23 @@ async function copyLink() {
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- bg-gradient-to-b from-hex-00A3FF via-hex-DDFEEE to-hex-FFF7E4 opacity-60 bg-opacity-60 blur-50px -->
|
|
|
- <div class="w-full flex items-center justify-center bg-hex-FCFEFF ">
|
|
|
+ <div class="w-full flex items-center justify-center bg-hex-FCFEFF">
|
|
|
<div class="w-1400px flex flex-col">
|
|
|
-
|
|
|
<div class="flex items-center justify-start h-60px px-4">
|
|
|
- <div class="text-lg text-hex-050026 font-bold">信息技术与学科教学的深度融合</div>
|
|
|
+ <div class="text-lg text-hex-050026 font-bold">{{ dgMsg.no }}</div>
|
|
|
|
|
|
<el-popover placement="bottom" :width="410" trigger="hover">
|
|
|
<template #reference>
|
|
|
- <div class="cursor-pointer text-hex-00A3FF ml-8 flex items-center text-sm ">
|
|
|
+ <div
|
|
|
+ class="
|
|
|
+ cursor-pointer
|
|
|
+ text-hex-00A3FF
|
|
|
+ ml-8
|
|
|
+ flex
|
|
|
+ items-center
|
|
|
+ text-sm
|
|
|
+ "
|
|
|
+ >
|
|
|
<i-fluent:share-28-regular class="mr-1" />分享
|
|
|
</div>
|
|
|
</template>
|
|
@@ -63,31 +112,62 @@ async function copyLink() {
|
|
|
<el-divider></el-divider>
|
|
|
<div class="text-hex-00a3ff mb-2">直播间地址</div>
|
|
|
<div class="flex">
|
|
|
- <div class="bg-hex-F7F7F7 p-2 flex-auto mr-4 truncate">{{ shareLink }}</div>
|
|
|
- <div class="text-sm bg-hex-0A8AFF text-white w-100px h-40px flex_center rounded cursor-pointer"
|
|
|
- @click="copyLink">复制链接</div>
|
|
|
+ <div class="bg-hex-F7F7F7 p-2 flex-auto mr-4 truncate">
|
|
|
+ {{ shareLink }}
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ class="
|
|
|
+ text-sm
|
|
|
+ bg-hex-0A8AFF
|
|
|
+ text-white
|
|
|
+ w-100px
|
|
|
+ h-40px
|
|
|
+ flex_center
|
|
|
+ rounded
|
|
|
+ cursor-pointer
|
|
|
+ "
|
|
|
+ @click="copyLink"
|
|
|
+ >
|
|
|
+ 复制链接
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-popover>
|
|
|
</div>
|
|
|
|
|
|
<div class="w-full shadow bg-white rounded-lg flex items-center mb-4 p-4">
|
|
|
- <el-avatar :size="77" src="" />
|
|
|
+ <el-avatar :size="dgMsg.master_user_avatar" src="" />
|
|
|
<div class="flex-auto p-4 flex flex-col justify-center">
|
|
|
<div>
|
|
|
- <div class="font-bold">陈老师</div>
|
|
|
+ <div class="font-bold">{{ dgMsg.master_teacher }}</div>
|
|
|
</div>
|
|
|
<div class="h-20px"></div>
|
|
|
</div>
|
|
|
- <div class="text-sm bg-hex-0A8AFF text-white w-100px h-40px flex_center rounded cursor-pointer">关注</div>
|
|
|
+ <div
|
|
|
+ class="
|
|
|
+ text-sm
|
|
|
+ bg-hex-0A8AFF
|
|
|
+ text-white
|
|
|
+ w-100px
|
|
|
+ h-40px
|
|
|
+ flex_center
|
|
|
+ rounded
|
|
|
+ cursor-pointer
|
|
|
+ focus
|
|
|
+ "
|
|
|
+ >
|
|
|
+ 关注
|
|
|
+ </div>
|
|
|
</div>
|
|
|
|
|
|
- <div class="w-full h-800px mb-4 bg-hex-CEE5FB">
|
|
|
+ <div class="w-full h-800px mb-4 bg-hex-CEE5FB video">
|
|
|
<video class="w-full h-full" src=""></video>
|
|
|
+ <div class="slave">助教:{{ dgMsg.slave_teacher }}</div>
|
|
|
+ <div class="watch">当前观看人数:{{ dgMsg.lll }}人</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="flex_center">
|
|
|
- <div class="w-176px">
|
|
|
+ <div class="w-176px ">
|
|
|
<el-tabs v-model="activeTap">
|
|
|
<el-tab-pane label="" name="pj">
|
|
|
<template #label>
|
|
@@ -111,7 +191,20 @@ async function copyLink() {
|
|
|
<div class="w-full p-8">
|
|
|
<div v-show="activeTap === 'pj'">
|
|
|
<el-rate></el-rate>
|
|
|
- <div class="text-sm bg-hex-0A8AFF text-white w-100px h-32px flex_center rounded-full cursor-pointer">评价</div>
|
|
|
+ <div
|
|
|
+ class="
|
|
|
+ text-sm
|
|
|
+ bg-hex-0A8AFF
|
|
|
+ text-white
|
|
|
+ w-100px
|
|
|
+ h-32px
|
|
|
+ flex_center
|
|
|
+ rounded-full
|
|
|
+ cursor-pointer
|
|
|
+ "
|
|
|
+ >
|
|
|
+ 评价
|
|
|
+ </div>
|
|
|
|
|
|
<div class="my-1">
|
|
|
<div class="flex items-end">
|
|
@@ -131,19 +224,26 @@ async function copyLink() {
|
|
|
<div class="flex justify-between items-center my-2">
|
|
|
<div class="text-hex-171721 text-sm">数学体系</div>
|
|
|
<div
|
|
|
- class="text-xs border border-hex-00a3ff text-hex-00a3ff w-60px h-24px flex_center rounded-full cursor-pointer">
|
|
|
- 下载</div>
|
|
|
+ class="
|
|
|
+ text-xs
|
|
|
+ border border-hex-00a3ff
|
|
|
+ text-hex-00a3ff
|
|
|
+ w-60px
|
|
|
+ h-24px
|
|
|
+ flex_center
|
|
|
+ rounded-full
|
|
|
+ cursor-pointer
|
|
|
+ "
|
|
|
+ >
|
|
|
+ 下载
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
<!-- <div class="w-full flex items-center justify-center mt-4">
|
|
|
<div class="w-1400px flex flex-col">
|
|
|
|
|
@@ -172,4 +272,39 @@ async function copyLink() {
|
|
|
</div> -->
|
|
|
</template>
|
|
|
|
|
|
-
|
|
|
+<style lang="scss" scoped>
|
|
|
+.focus{
|
|
|
+ line-height: 40px;
|
|
|
+ text-align: center;
|
|
|
+}
|
|
|
+.video {
|
|
|
+ position: relative;
|
|
|
+ .slave {
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ left: 0px;
|
|
|
+ width: 185px;
|
|
|
+ height: 51px;
|
|
|
+ line-height: 51px;
|
|
|
+ opacity: 0.5;
|
|
|
+ background: #ffffff;
|
|
|
+ border-radius: 0px 10px 10px 0px;
|
|
|
+ font-size: 16px;
|
|
|
+ color: #00a3ff;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+ .watch {
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ right: 0;
|
|
|
+ width: 200px;
|
|
|
+ height: 40px;
|
|
|
+ line-height: 40px;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 14px;
|
|
|
+ color: #fff;
|
|
|
+ background: rgba(106,115,144,.5);
|
|
|
+ border-radius: 10px 0px 0px 10px;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|