异地登录强制下线fixed

This commit is contained in:
cxc
2022-07-06 10:33:03 +08:00
parent 2bbcdf8afd
commit 8e1e2313e9
4 changed files with 20 additions and 11 deletions

View File

@ -7,7 +7,8 @@
<link rel="icon" href="<%= BASE_URL %>favicon.ico" />
<!-- <meta http-equiv="origin-trial" content="AuKHz2ifylDpZfg7iawfCDGtilbLT+tg9CCbVG4PNSxRA1v2NtYGRKAKctmE4Us42+t1lZ3IkPO9s5/VlHy/rwIAAABgeyJvcmlnaW4iOiJodHRwOi8vbG9jYWxob3N0OjMwMDAiLCJmZWF0dXJlIjoiVW5yZXN0cmljdGVkU2hhcmVkQXJyYXlCdWZmZXIiLCJleHBpcnkiOjE2NTg4Nzk5OTl9" /> -->
<script src="/coi-serviceworker.js"></script>
<script src="/fonts/iconfont.js"></script>
<!-- <script src="/fonts/iconfont.js"></script> -->
<link rel="stylesheet" href="/fonts/iconfont.css" />
<!-- <title><%= htmlWebpackPlugin.options.title %></title> -->
<title>楚桓会议客户端</title>
</head>

View File

@ -1,26 +1,33 @@
<template>
<div class="bar">
<svg
<span
class="iconfont icon-like"
style="user-select: none; cursor: pointer; color: indianred"
@click="handleClickLike"
></span>
<!-- <svg
class="icon"
aria-hidden="true"
style="user-select: none; cursor: pointer"
@click="handleClickLike"
>
<use xlink:href="#icon-like"></use>
</svg>
</svg> -->
<!-- <svg
v-else
class="icon"
aria-hidden="true"
style="user-select: none; cursor: pointer"
@click="handleClickLike"
>
<use xlink:href="#icon-likefill"></use>
</svg> -->
<span class="count">{{ like }}</span>
<svg class="icon" aria-hidden="true">
<!-- <svg class="icon" aria-hidden="true">
<use xlink:href="#icon-online"></use>
</svg>
</svg> -->
<span
class="iconfont icon-online"
style="user-select: none; color: indianred"
></span>
<span class="count">{{ online }}</span>
</div>
</template>
@ -53,7 +60,7 @@ const handleClickLike = async () => {
// }
await addMeetingLikeTotal(meetingId.value);
// store.commit("setLiked", true);
ElMessage.success("点赞成功");
// ElMessage.success("点赞成功");
};
</script>
<style scoped lang="scss">

View File

@ -75,6 +75,7 @@ const store = createStore({
getters: {
nickname: (state) => state.joinUser.nickname, // 姓名
username: (state) => state.joinUser.username, // 姓名
phone: (state) => state.joinUser.phone,
email: (state) => state.joinUser.email, //
token: (state) => state.joinUser.token, //
icCard: (state) => state.joinUser.icCard, //

View File

@ -23,7 +23,7 @@
:meeting-id="store.getters.meetingId"
:like="likeCount"
:online="onlineCount"
style="position: absolute; bottom: 1vw; right: 4vw"
style="position: absolute; bottom: 1vw; right: 6vw"
/>
<el-button
v-if="!isFullScreen"
@ -212,7 +212,7 @@ templateId.value = store.getters.templateId;
/* 会议配置 */
const meetingConfig = reactive({
client: ZoomMtgEmbedded.createClient(),
sdkKey: "ZAqxohNPDbVvx3cmc5Wzp2cFVwZvbyHFAzgl",
sdkKey: "TUgbQFx4RhPHDPa0OQAKVgPL2dPGQoVqZIuW",
meetingNumber: store.getters.meetingNumber,
passWord: store.state.password,
role: route.name === "Host" ? 1 : 0,