feat: YouMayAlsoLike LOG

This commit is contained in:
Dev TWIN0906
2025-05-07 15:23:27 +09:00
parent 11e98e9bbd
commit 5d9c6cfbca

View File

@@ -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());