From 55788f29065be91e57f083ac936c036177cae789 Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Tue, 13 Aug 2024 13:41:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../InvitingPersonnelModal/index.tsx | 3 +- src/page/Meeting/index.module.scss | 64 +++---- src/page/Meeting/index.tsx | 180 ++++++++++++------ 3 files changed, 153 insertions(+), 94 deletions(-) diff --git a/src/components/InvitingPersonnelModal/index.tsx b/src/components/InvitingPersonnelModal/index.tsx index 2bf64d7..10feb4c 100644 --- a/src/components/InvitingPersonnelModal/index.tsx +++ b/src/components/InvitingPersonnelModal/index.tsx @@ -77,7 +77,6 @@ const InvitingPersonnelModal = forwardRef((props: any, ref: any) => { }) ]).then(res => { if (res[0].code === 200 && res[1].code === 200) { - res[1].data.items.splice(res[1].data.items.findIndex((item: any) => item.uid === userInfo.uid), 1) setList({ ...list, total: res[1].data.total, @@ -149,7 +148,7 @@ const InvitingPersonnelModal = forwardRef((props: any, ref: any) => { }) }} disabled={!item.isOnline || item.account === userInfo.account || item.disabled} checked={item.checked}>
- {item.userName}{item.disabled ? '(已入会)' : ''} + {item.userName}{item.account === userInfo.account ? '(我)' : ''}{item.disabled ? '(已入会)' : ''}
{item.isOnline ? '在线' : '离线'}
) : 暂无数据} diff --git a/src/page/Meeting/index.module.scss b/src/page/Meeting/index.module.scss index 0835e12..6cb32b1 100644 --- a/src/page/Meeting/index.module.scss +++ b/src/page/Meeting/index.module.scss @@ -349,7 +349,6 @@ position: relative; padding: 10px 20px; box-sizing: border-box; - cursor: pointer; >div:nth-child(1) { display: flex; @@ -370,49 +369,26 @@ display: flex; align-items: center; - >img { - width: 20px; - margin-left: 4px; - } - } - - >div:nth-child(3) { - position: absolute; - top: 50px; - left: 50%; - transform: translate(-50%, 0); - width: 160px; - z-index: 1; - display: flex; - align-items: center; - justify-content: center; - flex-direction: column; - display: none; - background-color: rgb(16, 19, 23); - padding: 20px 0; - >div { - margin: 0 auto; - } + height: 30px; + width: 30px; + cursor: pointer; + display: flex; + justify-content: center; + align-items: center; - &::after { - content: ""; - position: absolute; - top: 0; - left: 50%; - transform: translateX(-50%); - border-width: 0 10px 10px; - border-style: solid; - border-color: transparent transparent #333; + >img { + width: 20px; + } + + &:hover { + background-color: rgba(0, 0, 0, 0.5); + } } } &:hover { background-color: rgb(52, 52, 52); - - >div:nth-child(3) { - display: flex; - } } } } @@ -710,6 +686,20 @@ } } } + +} + +.meetingContentSwiperCardPopover { + display: flex; + flex-direction: column; + + >button { + margin-bottom: 4px; + + &:last-child { + margin-bottom: 0; + } + } } // 共享屏幕 diff --git a/src/page/Meeting/index.tsx b/src/page/Meeting/index.tsx index ecb7d3f..f1a4033 100644 --- a/src/page/Meeting/index.tsx +++ b/src/page/Meeting/index.tsx @@ -546,14 +546,12 @@ const Meeting: React.FC = () => { footerListTemplate[itemIndex][rowIndex].active = true setFooterList(footerListTemplate) await postOpenCamera(false, user.uid) - await agora.stopCameraCapture(); break; case '开启视频': footerListTemplate[itemIndex][rowIndex].title = '关闭视频' footerListTemplate[itemIndex][rowIndex].active = false setFooterList(footerListTemplate) await postOpenCamera(true, user.uid) - await agora.startCameraCapture() break; case '设置': stupWizardRef.current.changeModal() @@ -732,6 +730,11 @@ const Meeting: React.FC = () => { } // 开关视频 const postOpenCamera = async (enableCamera: boolean, uid: string): Promise => { + if (enableCamera) { + await agora.startCameraCapture() + } else { + await agora.stopCameraCapture(); + } await PostOpenCamera({ roomNum: state.channelId, uid, @@ -889,13 +892,72 @@ const Meeting: React.FC = () => { {String(isShare) === item.screenShareId ?
屏幕分享中
: null} - + + {item.uid !== user.uid ? : null} + {item.uid !== user.uid && user.roleId === '1' ? : null} + + }>
@@ -1013,57 +1075,65 @@ const Meeting: React.FC = () => {
- { - postOpenMicr(!item.enableMicr, item.uid) - }} title={item.enableMicr ? '静音' : '解除声音'} /> - { - postOpenCamera(!item.enableCamera, item.uid) - }} title={item.enableCamera ? '关闭视频' : '开启视频'} /> +
+ { + postOpenMicr(!item.enableMicr, item.uid) + }} title={item.enableMicr ? '静音' : '解除声音'} /> +
+
+ { + postOpenCamera(!item.enableCamera, item.uid) + }} title={item.enableCamera ? '关闭视频' : '开启视频'} /> +
+ {item.uid !== user.uid && user.roleId === '1' ?
+ + + +
+ }> + + +
: null} - {item.uid !== user.uid && user.roleId === '1' ?
- {!item.isRoomManager ? : } - - -
: null} : null ) }