통합로그 [no.23] recentlyViewed 에서 상품상세 진입 시 show_id,title,brand 추가

This commit is contained in:
jiwon93.son
2025-10-20 13:19:14 +09:00
parent 7b0a36679b
commit a49e853300

View File

@@ -64,38 +64,42 @@ export default function RecentlyViewedContents({
}, [mainContainerId, recentDataInfoItem, scrollLeft]); }, [mainContainerId, recentDataInfoItem, scrollLeft]);
const handleItemClick = useCallback( const handleItemClick = useCallback(
(showId, showNm, patnrId, lgCatCd, prdtId, prdtNm, patncNm) => () => { (showId, showNm, patnrId, lgCatCd, prdtId, prdtNm, patncNm, brndNm) =>
const params = { () => {
menu: "Recently Viewed", const params = {
partner: patncNm, menu: "Recently Viewed",
contentId: showId, partner: patncNm,
contentTitle: showNm, contentId: showId,
productId: prdtId, contentTitle: showNm,
productTitle: prdtNm, productId: prdtId,
contextName: LOG_CONTEXT_NAME.MYPAGE, productTitle: prdtNm,
messageId: LOG_MESSAGE_ID.MYPAGE_CLICK, showId: showId,
}; showTitle: showNm,
dispatch(sendLogTotalRecommend(params)); brand: brndNm,
contextName: LOG_CONTEXT_NAME.MYPAGE,
messageId: LOG_MESSAGE_ID.MYPAGE_CLICK,
};
dispatch(sendLogTotalRecommend(params));
if (showId) { if (showId) {
dispatch( dispatch(
startVideoPlayer({ startVideoPlayer({
showId, showId,
patnrId, patnrId,
shptmBanrTpNm: "VOD", shptmBanrTpNm: "VOD",
lgCatCd, lgCatCd,
modal: false, modal: false,
}) })
); );
} else { } else {
dispatch( dispatch(
pushPanel({ pushPanel({
name: panel_names.DETAIL_PANEL, name: panel_names.DETAIL_PANEL,
panelInfo: { patnrId, prdtId }, panelInfo: { patnrId, prdtId },
}) })
); );
} }
}, },
[recentDataInfoItem] [recentDataInfoItem]
); );
const _handleItemToggle = useCallback( const _handleItemToggle = useCallback(