feat: YouMayAlsoLike LOG
This commit is contained in:
@@ -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,14 +126,31 @@ 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)
|
||||
|
||||
|
||||
setContainerLastFocusedElement(null, ["indicator-GridListContainer"]);
|
||||
if (themeProductInfos && themeProductInfos.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user