添加只显示共享屏幕的布局

This commit is contained in:
quantulr
2022-10-18 19:26:59 +08:00
parent 4d9e604a08
commit d970d571be
6 changed files with 100 additions and 4 deletions

View File

@ -0,0 +1,59 @@
<template>
<div class="count-down" v-if="durationTime > 0">
<div class="title">会议倒计时</div>
<div class="count">{{ remainTime }}</div>
</div>
</template>
<script setup name="CountDown">
import dayjs from "dayjs";
import duration from "dayjs/plugin/duration";
import { onMounted, onUnmounted, ref } from "vue";
dayjs.extend(duration);
const props = defineProps({
startTime: {
type: String,
required: true,
// default: "2022-10-18 21:22:23",
},
});
const durationTime = ref();
const remainTime = ref();
let timer;
onMounted(() => {
timer = setInterval(() => {
durationTime.value =
new Date(props.startTime).getTime() - new Date().getTime();
if (durationTime.value <= 0) {
clearInterval(timer);
}
const duraDayjs = dayjs.duration(durationTime.value);
remainTime.value = `${parseInt(
duraDayjs.asHours()
)}小时${duraDayjs.minutes()}分钟${duraDayjs.seconds()}`;
}, 500);
});
onUnmounted(() => {
clearInterval(timer);
});
</script>
<style scoped lang="scss">
.count-down {
position: absolute;
z-index: -1;
top: 20%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
flex-direction: column;
align-items: center;
.title {
font-size: 24px;
font-weight: bold;
}
.count {
font-size: 36px;
margin-top: 20px;
}
}
</style>

View File

@ -85,6 +85,7 @@ const store = createStore({
meetingSchedule: (state) => state.meeting.meetingSchedule, // 会议日程 meetingSchedule: (state) => state.meeting.meetingSchedule, // 会议日程
expertInfo: (state) => state.meeting.expertInfo, // 专家介绍 expertInfo: (state) => state.meeting.expertInfo, // 专家介绍
meetingNumber: (state) => state.meeting.meetingNumber, // 姓名 meetingNumber: (state) => state.meeting.meetingNumber, // 姓名
startTime: (state) => state.meeting.startTime, // 姓名
templateId: (state) => state.meeting.templateId, templateId: (state) => state.meeting.templateId,
meetingId: (state) => state.meeting.id, meetingId: (state) => state.meeting.id,
textLabelList: (state) => state.meeting.textLabelList, textLabelList: (state) => state.meeting.textLabelList,

View File

@ -222,7 +222,9 @@
color: #333; color: #333;
" "
> >
<el-checkbox v-model="isAgreeAgreement"></el-checkbox><span>同意</span> <el-checkbox v-model="isAgreeAgreement"></el-checkbox>
<span>&nbsp;</span>
<span>同意</span>
<el-button type="text" @click="showUserAgreement = true"> <el-button type="text" @click="showUserAgreement = true">
楚桓会议系统用户信息协议 楚桓会议系统用户信息协议
</el-button> </el-button>

View File

@ -18,6 +18,7 @@
:class="`layout-template-${templateId}`" :class="`layout-template-${templateId}`"
ref="videoElementRef" ref="videoElementRef"
></div> ></div>
<CountDown :start-time="store.getters.startTime" />
<!-- <like <!-- <like
v-if="screenWidth > 900" v-if="screenWidth > 900"
:meeting-id="store.getters.meetingId" :meeting-id="store.getters.meetingId"
@ -127,6 +128,7 @@
</template> </template>
</el-dialog> </el-dialog>
<!-- <mediaCheck @close="startMeeting" /> -->
<mediaCheck @close="startMeeting" /> <mediaCheck @close="startMeeting" />
<questions <questions
@ -183,6 +185,7 @@ import {
commitQuestionnaire, commitQuestionnaire,
commitExam, commitExam,
} from "@/api/meeting"; } from "@/api/meeting";
import CountDown from "@/components/countDown.vue";
const store = useStore(); const store = useStore();
const route = useRoute(); const route = useRoute();
@ -1037,6 +1040,24 @@ $meetingBackgroundHeight: 80vw * 9 / 16;
} }
} }
.layout-template-5 {
:deep(div[id*="suspension-view-tabpanel"]
> .zmwebsdk-MuiBox-root.zmwebsdk-MuiBox-root
> div[class*="inSharing"]
+ div) {
display: none;
width: $meetingComponentWitdh;
height: $meetingComponentWitdh * 9 / 16;
position: relative;
}
:deep(#suspension-view-tabpanel-ribbon
> .zmwebsdk-MuiBox-root.zmwebsdk-MuiBox-root),
:deep(#suspension-view-tabpanel-speaker
> .zmwebsdk-MuiBox-root.zmwebsdk-MuiBox-root) {
flex-direction: row-reverse;
}
}
:deep(.zmwebsdk-MuiToolbar-root.zmwebsdk-MuiToolbar-regular) { :deep(.zmwebsdk-MuiToolbar-root.zmwebsdk-MuiToolbar-regular) {
display: none; // 隐藏顶部 toolbar display: none; // 隐藏顶部 toolbar
} }
@ -1195,6 +1216,16 @@ $meetingBackgroundHeight: 80vw * 9 / 16;
height: $meetingComponentWitdh * 0.15 * 9 / 16; height: $meetingComponentWitdh * 0.15 * 9 / 16;
} }
} }
.layout-template-5 {
:deep(div[id*="suspension-view-tabpanel"]
> .zmwebsdk-MuiBox-root.zmwebsdk-MuiBox-root
> div[class*="inSharing"]
+ div) {
display: none;
width: $meetingComponentWitdh;
height: $meetingComponentWitdh * 9 / 16;
}
}
:deep(#video-element :deep(#video-element
> div > div

View File

@ -41,8 +41,9 @@
" "
> >
<el-checkbox v-model="isAgreeAgreement"></el-checkbox> <el-checkbox v-model="isAgreeAgreement"></el-checkbox>
<el-button type="text" @click="showUserAgreement = true" <span>&nbsp;</span>
><span>同意</span> <span>同意</span>
<el-button type="text" @click="showUserAgreement = true">
楚桓会议系统用户信息协议 楚桓会议系统用户信息协议
</el-button> </el-button>
</div> </div>

View File

@ -370,7 +370,9 @@
color: #333; color: #333;
" "
> >
<el-checkbox v-model="isAgreeAgreement"></el-checkbox><span>同意</span> <el-checkbox v-model="isAgreeAgreement"></el-checkbox>
<span>&nbsp;</span>
<span>同意</span>
<el-button type="text" @click="showUserAgreement = true"> <el-button type="text" @click="showUserAgreement = true">
楚桓会议系统用户信息协议 楚桓会议系统用户信息协议
</el-button> </el-button>