From 37d5b8abb1704ec450d4c3f9c8fa1bcc086ab27c Mon Sep 17 00:00:00 2001 From: "opacity@t-win.kr" Date: Thu, 2 Oct 2025 14:05:19 +0900 Subject: [PATCH] =?UTF-8?q?home=20live=20full=20=ED=99=94=EB=A9=B4?= =?UTF-8?q?=EC=97=90=EC=84=9C=20modal=20=EC=A0=84=ED=99=98=EC=8B=9C=20?= =?UTF-8?q?=EB=A1=9C=EA=B7=B8=20=EC=A0=84=EC=86=A1=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/DetailPanel/DetailPanel.jsx | 3 ++- .../src/views/PlayerPanel/PlayerPanel.jsx | 25 +++++++++++-------- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/com.twin.app.shoptime/src/views/DetailPanel/DetailPanel.jsx b/com.twin.app.shoptime/src/views/DetailPanel/DetailPanel.jsx index 20f1401e..0b05c859 100644 --- a/com.twin.app.shoptime/src/views/DetailPanel/DetailPanel.jsx +++ b/com.twin.app.shoptime/src/views/DetailPanel/DetailPanel.jsx @@ -48,6 +48,7 @@ import SingleProduct from "./SingleProduct/SingleProduct"; import ThemeProduct from "./ThemeProduct/ThemeProduct"; import UnableProduct from "./UnableProduct/UnableProduct"; import YouMayLike from "./YouMayLike/YouMayLike"; +import { now } from "lodash"; export default function DetailPanel({ panelInfo, isOnTop, spotlightId }) { const dispatch = useDispatch(); @@ -195,7 +196,7 @@ export default function DetailPanel({ panelInfo, isOnTop, spotlightId }) { liveFlag: "Y", qrType: "billingDetail", }); - }, [serverHOST, serverType, deviceInfo, entryMenu, nowMenu, productInfo]); + }, [serverHOST, serverType, deviceInfo, entryMenu, productInfo]); const onSpotlightUpTButton = (e) => { e.stopPropagation(); diff --git a/com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx b/com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx index 81fdd386..f90baf96 100644 --- a/com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx +++ b/com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx @@ -316,17 +316,19 @@ const PlayerPanel = ({ const mediaLogParamsRef = useRef(null); const prevNowMenuRef = useRef(null); const watchInterval = useRef(null); - // useEffect(() => { - // console.log("###videoLoaded", videoLoaded); - // if (nowMenu) { - // } - // }, [videoLoaded]); + const currentLiveShowInfo = useMemo(() => { if (liveShowInfos && liveShowInfos.length > 0) { const panelInfoChanId = panelInfo?.chanId; const isLive = panelInfo?.shptmBanrTpNm === "LIVE"; - + const isModal = panelInfo?.modal; if (isLive) { + // live full 화면에서 modal 전환시 로그 전송 추가 + if (isModal) { + dispatch(sendLogGNB(Config.LOG_MENU.FULL)); + prevNowMenuRef.current = nowMenuRef.current; + return () => dispatch(sendLogGNB(prevNowMenuRef.current)); + } const liveShowInfo = liveShowInfos // .find(({ chanId }) => panelInfoChanId === chanId); @@ -337,7 +339,12 @@ const PlayerPanel = ({ } return {}; - }, [liveShowInfos, panelInfo?.chanId, panelInfo?.shptmBanrTpNm]); + }, [ + liveShowInfos, + panelInfo?.chanId, + panelInfo?.shptmBanrTpNm, + panelInfo?.modal, + ]); const currentVODShowInfo = useMemo(() => { if (showDetailInfo && showDetailInfo.length > 0) { @@ -362,10 +369,6 @@ const PlayerPanel = ({ return () => dispatch(sendLogGNB(prevNowMenuRef.current)); } - // 통합로그 관련 : al_banner_shown 관련 - // else if (panelInfo?.modal) { - // dispatch(sendLogGNB(entryMenu)); - // } }, [panelInfo?.modal, panelInfo?.shptmBanrTpNm]); // creating live log params