diff --git a/com.twin.app.shoptime/src/views/DetailPanel/YouMayLike/YouMayLike.jsx b/com.twin.app.shoptime/src/views/DetailPanel/YouMayLike/YouMayLike.jsx index 35b9c7c4..e50ee500 100644 --- a/com.twin.app.shoptime/src/views/DetailPanel/YouMayLike/YouMayLike.jsx +++ b/com.twin.app.shoptime/src/views/DetailPanel/YouMayLike/YouMayLike.jsx @@ -27,6 +27,7 @@ import { panel_names } from "../../../utils/Config"; import { $L } from "../../../utils/helperMethods"; import { SpotlightIds } from "../../../utils/SpotlightIds"; import css from "./YouMayLike.module.less"; +import { sendLogTotalRecommend } from "../../../actions/logActions"; const Container = SpotlightContainerDecorator( { enterTo: "default-element" }, @@ -125,15 +126,32 @@ export default memo(function YouMayLike({ const renderItem = useCallback( ({ index, ...rest }) => { - const { imgUrl, patnrId, prdtId, prdtNm, priceInfo, offerInfo } = + const { imgUrl, patnrId, prdtId, prdtNm, priceInfo, offerInfo, price3, catNm, price2, brandNm} = youmaylikeData[index]; + const handleItemClick = () => { + + const logParams = { + productId: productInfo?.prdtId, + productTitle:productInfo?.prdtNm, + category: productInfo?.catNm, + nowProductId: prdtId, + nowProductTitle: prdtNm, + nowCategory: catNm, + discount: price3, + price: price2, //할인가 + partner: patnrId, + brand: brandNm + }; + setExpanded(false); + setSelectedIndex(0); + dispatch(finishVideoPreview()); + dispatch(popPanel(panel_names.DETAIL_PANEL)); + dispatch( + sendLogTotalRecommend(logParams) + ); + console.log(logParams) - const handleItemClick = () => { - setExpanded(false); - setSelectedIndex(0); - dispatch(finishVideoPreview()); - dispatch(popPanel(panel_names.DETAIL_PANEL)); - + setContainerLastFocusedElement(null, ["indicator-GridListContainer"]); if (themeProductInfos && themeProductInfos.length > 0) { dispatch(clearThemeDetail());