From 82f1b1759eac6579f023bd8348c7e18100ee9052 Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Mon, 26 Aug 2024 09:53:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=A8=E5=B1=8F=E6=A0=B7=E5=BC=8F=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/Meeting/index.module.scss | 45 +++++++++++++++++++++++++++--- src/page/Meeting/index.tsx | 36 ++++++++++++++++++++---- 2 files changed, 72 insertions(+), 9 deletions(-) diff --git a/src/page/Meeting/index.module.scss b/src/page/Meeting/index.module.scss index ca853ff..e13c3cb 100644 --- a/src/page/Meeting/index.module.scss +++ b/src/page/Meeting/index.module.scss @@ -166,9 +166,23 @@ left: 50%; transform: translate(-50%, 0%); cursor: pointer; - font-size: 25px; - color: #5673f3; z-index: 3; + + svg { + fill: #fff; + } + + &:hover { + svg { + fill: #A0A0A0 !important; + } + } + + &:active { + svg { + fill: #3A4E99 !important; + } + } } .speakerModeIcon { @@ -176,9 +190,23 @@ top: 50%; transform: translate(0, -50%); cursor: pointer; - font-size: 25px; - color: #5673f3; z-index: 3; + + svg { + fill: #fff; + } + + &:hover { + svg { + fill: #A0A0A0 !important; + } + } + + &:active { + svg { + fill: #3A4E99 !important; + } + } } // 自由者模式 @@ -315,6 +343,15 @@ } } + .meetingContentSwiperCardFullScreenIcon { + position: absolute; + z-index: 3; + right: 20px; + top: 20px; + color: white; + cursor: pointer; + font-size: 20px; + } } .meetingContentBodyLeftBlock { diff --git a/src/page/Meeting/index.tsx b/src/page/Meeting/index.tsx index 8d0b956..93ec00e 100644 --- a/src/page/Meeting/index.tsx +++ b/src/page/Meeting/index.tsx @@ -4,7 +4,7 @@ import Operation from '@/components/Operation'; import SpeakerModeModal from '@/components/SpeakerModeModal'; import InvitingPersonnelModal from '@/components/InvitingPersonnelModal'; import { Button, Input, Popover, Modal, Checkbox, message, Popconfirm, notification } from "antd"; -import { SearchOutlined, EllipsisOutlined, ExclamationCircleFilled, CaretDownOutlined, CaretUpOutlined, CaretLeftOutlined, CaretRightOutlined } from '@ant-design/icons'; +import { SearchOutlined, EllipsisOutlined, ExclamationCircleFilled, FullscreenExitOutlined, FullscreenOutlined } from '@ant-design/icons'; import { useLocation, useNavigate } from 'react-router-dom'; import { thumbImageBufferToBase64 } from '@/utils/package/base64' import { storage } from '@/utils'; @@ -1227,15 +1227,31 @@ const Meeting: React.FC = () => { switch (meetingMode) { case 'StandardMode': if (isVideoFullScreen) { - return setIsVideoFullScreen(false)} /> //下 + return
setIsVideoFullScreen(false)}> + + + +
//下 } else { - return setIsVideoFullScreen(true)} /> //上 + return
setIsVideoFullScreen(true)}> + + + +
//上 } case 'SpeakerMode': if (isVideoFullScreen) { - return setIsVideoFullScreen(false)} /> //右 + return
setIsVideoFullScreen(false)}> + + + +
//右 } else { - return setIsVideoFullScreen(true)} /> //左 + return
setIsVideoFullScreen(true)}> + + + +
//左 } } } @@ -1439,6 +1455,8 @@ const Meeting: React.FC = () => { } + {isVideoFullScreen ? setIsVideoFullScreen(false)} /> : + setIsVideoFullScreen(true)} />} {meetingContentUser(currentLookUserAccount, true)} : null} {currentLookUserStatus === 1 && currentLookUserAccount ? @@ -1448,6 +1466,8 @@ const Meeting: React.FC = () => { } + {isVideoFullScreen ? setIsVideoFullScreen(false)} /> : + setIsVideoFullScreen(true)} />} {meetingContentUser(currentLookUserAccount, true)} {currentLookUserAccount.enableCamera ? null : meetingContentError(currentLookUserAccount)} : null} @@ -1458,6 +1478,8 @@ const Meeting: React.FC = () => { + {isVideoFullScreen ? setIsVideoFullScreen(false)} /> : + setIsVideoFullScreen(true)} />} {meetingContentUser(currentLookUserAccount, true)} : null} {currentLookUserStatus === 3 && currentLookUserAccount ? @@ -1467,6 +1489,8 @@ const Meeting: React.FC = () => { + {isVideoFullScreen ? setIsVideoFullScreen(false)} /> : + setIsVideoFullScreen(true)} />} {meetingContentUser(currentLookUserAccount, true)} : null} {currentLookUserStatus === 4 && currentLookUserAccount ? @@ -1476,6 +1500,8 @@ const Meeting: React.FC = () => { + {isVideoFullScreen ? setIsVideoFullScreen(false)} /> : + setIsVideoFullScreen(true)} />} {meetingContentUser(currentLookUserAccount, true)} {currentLookUserAccount.enableCamera ? null : meetingContentError(currentLookUserAccount)} : null}