From ebce68d0594f3a441242828b82720a466433a204 Mon Sep 17 00:00:00 2001 From: optrader Date: Thu, 20 Nov 2025 14:13:29 +0900 Subject: [PATCH] [251120] fix: ShopNowContents navigateToDetail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit πŸ• 컀밋 μ‹œκ°„: 2025. 11. 20. 14:13:29 πŸ“Š λ³€κ²½ 톡계: β€’ 총 파일: 1개 β€’ μΆ”κ°€: +48쀄 β€’ μ‚­μ œ: -28쀄 πŸ“ μˆ˜μ •λœ 파일: ~ com.twin.app.shoptime/src/views/PlayerPanel/PlayerTabContents/TabContents/ShopNowContents.jsx πŸ”§ μ£Όμš” λ³€κ²½ λ‚΄μš©: β€’ μ†Œκ·œλͺ¨ κΈ°λŠ₯ κ°œμ„  β€’ μ½”λ“œ 정리 및 μ΅œμ ν™” --- .../TabContents/ShopNowContents.jsx | 72 ++++++++++++------- 1 file changed, 46 insertions(+), 26 deletions(-) diff --git a/com.twin.app.shoptime/src/views/PlayerPanel/PlayerTabContents/TabContents/ShopNowContents.jsx b/com.twin.app.shoptime/src/views/PlayerPanel/PlayerTabContents/TabContents/ShopNowContents.jsx index 42f7c1be..440d6077 100644 --- a/com.twin.app.shoptime/src/views/PlayerPanel/PlayerTabContents/TabContents/ShopNowContents.jsx +++ b/com.twin.app.shoptime/src/views/PlayerPanel/PlayerTabContents/TabContents/ShopNowContents.jsx @@ -222,42 +222,62 @@ export default function ShopNowContents({ const { originalPrice, discountedPrice, discountRate } = priceInfoMap[index] || {}; const handleShopNowItemClick = () => { - // ν˜„μž¬ 포컀슀된 μš”μ†Œμ˜ spotlightId μ €μž₯ - const currentFocusedElement = Spotlight.getCurrent(); - const currentSpotlightId = currentFocusedElement?.getAttribute('data-spotlight-id'); - console.log('[ShopNowContents] ν˜„μž¬ 포컀슀된 spotlightId:', currentSpotlightId); + // ===== κΈ°μ‘΄ μ½”λ“œ (μ½”λ©˜νŠΈ 처리) ===== + // // ν˜„μž¬ 포컀슀된 μš”μ†Œμ˜ spotlightId μ €μž₯ + // const currentFocusedElement = Spotlight.getCurrent(); + // const currentSpotlightId = currentFocusedElement?.getAttribute('data-spotlight-id'); + // console.log('[ShopNowContents] ν˜„μž¬ 포컀슀된 spotlightId:', currentSpotlightId); - const params = { - tabTitle: tabTitle[tabIndex], - productId: prdtId, - productTitle: prdtNm, - partner: patncNm, - brand: brndNm, - price: discountRate ? discountedPrice : originalPrice, - showType: panelInfo?.shptmBanrTpNm, - category: catNm, - discount: discountRate, - contextName: LOG_CONTEXT_NAME.SHOW, - messageId: LOG_MESSAGE_ID.CONTENTCLICK, - }; - dispatch(sendLogTotalRecommend(params)); + // const params = { + // tabTitle: tabTitle[tabIndex], + // productId: prdtId, + // productTitle: prdtNm, + // partner: patncNm, + // brand: brndNm, + // price: discountRate ? discountedPrice : originalPrice, + // showType: panelInfo?.shptmBanrTpNm, + // category: catNm, + // discount: discountRate, + // contextName: LOG_CONTEXT_NAME.SHOW, + // messageId: LOG_MESSAGE_ID.CONTENTCLICK, + // }; + // dispatch(sendLogTotalRecommend(params)); - // DetailPanel push 전에 VideoPlayer μ˜€λ²„λ ˆμ΄ μˆ¨κΉ€ - dispatch(hidePlayerOverlays()); + // // DetailPanel push 전에 VideoPlayer μ˜€λ²„λ ˆμ΄ μˆ¨κΉ€ + // dispatch(hidePlayerOverlays()); + + // dispatch( + // pushPanel({ + // name: panel_names.DETAIL_PANEL, + // panelInfo: { + // showNm: playListInfo?.showNm, + // showId: playListInfo?.showId, + // liveFlag: playListInfo?.liveFlag, + // thumbnailUrl: playListInfo?.thumbnailUrl, + // liveReqFlag: panelInfo?.shptmBanrTpNm === 'LIVE' && 'Y', + // patnrId, + // prdtId, + // launchedFromPlayer: true, + // lastFocusedTargetId: currentSpotlightId, // ν˜„μž¬ 포컀슀된 spotlightId μ €μž₯ + // }, + // }) + // ); + + // ===== navigateToDetail 방식 (handleYouMayLikeItemClick μ°Έκ³ ) ===== + console.log('[ShopNowContents] ShopNow DetailPanel μ§„μž… - sourceMenu:', SOURCE_MENUS.PLAYER_SHOP_NOW); dispatch( - pushPanel({ - name: panel_names.DETAIL_PANEL, - panelInfo: { + navigateToDetail({ + patnrId, + prdtId, + sourceMenu: SOURCE_MENUS.PLAYER_SHOP_NOW, + additionalInfo: { showNm: playListInfo?.showNm, showId: playListInfo?.showId, liveFlag: playListInfo?.liveFlag, thumbnailUrl: playListInfo?.thumbnailUrl, liveReqFlag: panelInfo?.shptmBanrTpNm === 'LIVE' && 'Y', - patnrId, - prdtId, launchedFromPlayer: true, - lastFocusedTargetId: currentSpotlightId, // ν˜„μž¬ 포컀슀된 spotlightId μ €μž₯ }, }) );