[DetailPanel] added, linkTpCd for sendLogProductDetail (HotelProduct.jsx, ShowProduct.jsx)

This commit is contained in:
younghoon100.park
2024-07-19 15:40:11 +09:00
parent a2d123bda5
commit 8945c63040
2 changed files with 15 additions and 7 deletions

View File

@@ -12,6 +12,12 @@ import Spotlight from "@enact/spotlight";
import SpotlightContainerDecorator from "@enact/spotlight/SpotlightContainerDecorator";
import { setShowPopup } from "../../../actions/commonActions";
import {
sendLogDetail,
sendLogGNB,
sendLogProductDetail,
sendLogShopByMobile,
} from "../../../actions/logActions";
import TButton from "../../../components/TButton/TButton";
import TQRCode from "../../../components/TQRCode/TQRCode";
import * as Config from "../../../utils/Config";
@@ -20,14 +26,13 @@ import IndicatorOptions from "../components/indicator/IndicatorOptions";
import ThemeIndicator from "../components/indicator/ThemeIndicator";
import StarRating from "../components/StarRating";
import css from "./HotelProduct.module.less";
import { sendLogDetail, sendLogGNB, sendLogProductDetail, sendLogShopByMobile } from "../../../actions/logActions";
const Container = SpotlightContainerDecorator(
{ enterTo: "default-element", preserveld: true },
"div"
);
export default function HotelOption({
// panelInfo,
panelInfo,
launchedFromPlayer,
selectedIndex,
setSelectedIndex,
@@ -76,7 +81,7 @@ export default function HotelOption({
lastPrice: selectedHotelInfo?.hotelInfo?.hotelDetailInfo?.price ?? "",
lgCatCd: "",
lgCatNm: "",
linkTpCd: "",
linkTpCd: panelInfo?.linkTpCd ?? "",
logTpNo: Config.LOG_TP_NO.PRODUCT.PRODUCT_DETAIL_IMAGE,
patncNm: selectedHotelInfo?.patncNm ?? "",
patnrId: selectedHotelInfo?.patnrId ?? "",
@@ -87,7 +92,10 @@ export default function HotelOption({
tsvFlag: "N",
};
timerRef.current = setTimeout(() => dispatch(sendLogProductDetail(params)), 1000);
timerRef.current = setTimeout(
() => dispatch(sendLogProductDetail(params)),
1000
);
}
return () => clearTimeout(timerRef.current);
@@ -101,7 +109,7 @@ export default function HotelOption({
curationId: hotelInfo?.curationId ?? "",
curationNm: hotelInfo?.curationNm ?? "",
inDt: formatGMTString(new Date()),
linkTpCd: "",
linkTpCd: panelInfo?.linkTpCd ?? "",
logTpNo: Config.LOG_TP_NO.DETAIL.TRAVEL_DETAIL,
patncNm: hotelInfo?.patncNm ?? "",
patnrId: hotelInfo?.patnrId ?? "",

View File

@@ -77,7 +77,7 @@ export default function ShowOption({
curationId: themeInfo?.curationId ?? "",
curationNm: themeInfo?.curationNm ?? "",
inDt: formatGMTString(new Date()),
linkTpCd: "",
linkTpCd: panelInfo?.linkTpCd ?? "",
logTpNo: LOG_TP_NO.DETAIL.THEME_DETAIL,
patncNm: themeInfo?.patncNm ?? "",
patnrId: themeInfo?.patnrId ?? "",
@@ -100,7 +100,7 @@ export default function ShowOption({
lastPrice: showProductInfo.priceInfo?.split("|")[1],
lgCatCd: showProductInfo?.catCd ?? "",
lgCatNm: showProductInfo?.catNm ?? "",
linkTpCd: "",
linkTpCd: panelInfo?.linkTpCd ?? "",
logTpNo: LOG_TP_NO.PRODUCT.PRODUCT_DETAIL_IMAGE,
patncNm: showProductInfo?.patncNm ?? "",
patnrId: showProductInfo?.patnrId ?? "",