feat: YouMayAlsoLike LOG
This commit is contained in:
@@ -27,6 +27,7 @@ import { panel_names } from "../../../utils/Config";
|
|||||||
import { $L } from "../../../utils/helperMethods";
|
import { $L } from "../../../utils/helperMethods";
|
||||||
import { SpotlightIds } from "../../../utils/SpotlightIds";
|
import { SpotlightIds } from "../../../utils/SpotlightIds";
|
||||||
import css from "./YouMayLike.module.less";
|
import css from "./YouMayLike.module.less";
|
||||||
|
import { sendLogTotalRecommend } from "../../../actions/logActions";
|
||||||
|
|
||||||
const Container = SpotlightContainerDecorator(
|
const Container = SpotlightContainerDecorator(
|
||||||
{ enterTo: "default-element" },
|
{ enterTo: "default-element" },
|
||||||
@@ -125,15 +126,32 @@ export default memo(function YouMayLike({
|
|||||||
|
|
||||||
const renderItem = useCallback(
|
const renderItem = useCallback(
|
||||||
({ index, ...rest }) => {
|
({ index, ...rest }) => {
|
||||||
const { imgUrl, patnrId, prdtId, prdtNm, priceInfo, offerInfo } =
|
const { imgUrl, patnrId, prdtId, prdtNm, priceInfo, offerInfo, price3, catNm, price2, brandNm} =
|
||||||
youmaylikeData[index];
|
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"]);
|
setContainerLastFocusedElement(null, ["indicator-GridListContainer"]);
|
||||||
if (themeProductInfos && themeProductInfos.length > 0) {
|
if (themeProductInfos && themeProductInfos.length > 0) {
|
||||||
dispatch(clearThemeDetail());
|
dispatch(clearThemeDetail());
|
||||||
|
|||||||
Reference in New Issue
Block a user