[Log] IF-LGSP-LOG-003, 018, modify

This commit is contained in:
younghoon100.park
2024-07-15 13:33:53 +09:00
parent 7d3f364110
commit cd8fffc2cd
3 changed files with 61 additions and 80 deletions

View File

@@ -32,7 +32,7 @@ export const panel_names = {
// debug
DEBUG_PANEL: "debugpanel",
VIDEO_TEST_PANEL: "videotestpanel"
VIDEO_TEST_PANEL: "videotestpanel",
};
//button
@@ -165,8 +165,8 @@ export const LOG_TP_NO = {
ALARM_POP: "281",
ALARM_CLICK: {
OK: "282",
NO: "283",
BROADCAST: "282",
KEYWORD: "283",
},
BRANDS: "290",

View File

@@ -103,11 +103,11 @@ export default function ImagePanel({ panelInfo, spotlightId, ...rest }) {
}, [sideContentsVisible]);
useEffect(() => {
if (panelInfo) {
if (panelInfo && selectedRoomThemeInfo) {
const params = {
curationId: panelInfo?.themeId,
curationNm: panelInfo?.themeNm,
expsOrd: `${panelInfo?.themeExpsOrd}`,
curationId: selectedRoomThemeInfo?.themeId,
curationNm: selectedRoomThemeInfo?.themeNm,
expsOrd: `${selectedRoomThemeInfo?.themeExpsOrd}`,
logTpNo: LOG_TP_NO.CURATION.SHOWROOM,
linkTpCd: panelInfo?.linkTpCd,
patncNm: panelInfo?.patncNm,
@@ -120,7 +120,7 @@ export default function ImagePanel({ panelInfo, spotlightId, ...rest }) {
return () => clearTimeout(themeViewTimer.current);
}
}, [panelInfo, sendLogCuration]);
}, [panelInfo, selectedRoomThemeInfo, sendLogCuration]);
useEffect(() => {
if (panelInfo) {

View File

@@ -1,32 +1,20 @@
import React, {
useCallback,
useEffect,
useMemo,
useState,
} from 'react';
import React, { useCallback, useEffect, useMemo, useState } from "react";
import classNames from 'classnames';
import { indexOf } from 'ilib/lib/JSUtils';
import {
useDispatch,
useSelector,
} from 'react-redux';
import classNames from "classnames";
import { indexOf } from "ilib/lib/JSUtils";
import { useDispatch, useSelector } from "react-redux";
import platform from '@enact/core/platform';
import Spotlight from '@enact/spotlight';
import platform from "@enact/core/platform";
import Spotlight from "@enact/spotlight";
import defaultWatchItem
from '../../../assets/images/img-alert-banner-st@3x.png';
import defaultWatchItem from "../../../assets/images/img-alert-banner-st@3x.png";
// 테스트용 - TODO: 메인 홈 화면에 나와야 하는 이미지들 추가 후 preloadImages에 추가
import testImage from '../../../assets/images/img-banner-myinfo-login@3x.png';
import defaultImageItem
from '../../../assets/images/img-thumb-empty-product@3x.png';
import LoadingPreloadImage
from '../../../assets/images/intro/splash_02_stop.webp';
import LoadingAnimation from '../../../assets/images/intro/splash_03_end.webp';
import LoadingCompleteImage
from '../../../assets/images/intro/splash_04_end.webp';
import LoadingShopOnTvImage from '../../../assets/images/intro/splash_end.jpg';
import testImage from "../../../assets/images/img-banner-myinfo-login@3x.png";
import defaultImageItem from "../../../assets/images/img-thumb-empty-product@3x.png";
import LoadingPreloadImage from "../../../assets/images/intro/splash_02_stop.webp";
import LoadingAnimation from "../../../assets/images/intro/splash_03_end.webp";
import LoadingCompleteImage from "../../../assets/images/intro/splash_04_end.webp";
import LoadingShopOnTvImage from "../../../assets/images/intro/splash_end.jpg";
import {
alertToast,
changeAppStatus,
@@ -34,54 +22,47 @@ import {
setExitApp,
setHidePopup,
setShowPopup,
} from '../../actions/commonActions';
import { getHomeTerms } from '../../actions/homeActions';
} from "../../actions/commonActions";
import { getHomeTerms } from "../../actions/homeActions";
import {
getMyUpcomingAlertShow,
setMyTermsWithdraw,
} from '../../actions/myPageActions';
import {
pushPanel,
resetPanels,
} from '../../actions/panelActions';
import Loader from '../../components/Loader/Loader';
import { convertUtcToLocal } from '../../components/MediaPlayer/util';
import PreloadImage from '../../components/PreloadImage/PreloadImage';
import SystemNotification
from '../../components/SystemNotification/SystemNotification';
import TabLayout from '../../components/TabLayout/TabLayout';
import TPopUp from '../../components/TPopUp/TPopUp';
import useLogService from '../../hooks/useLogService';
import usePrevious from '../../hooks/usePrevious';
import * as Config from '../../utils/Config';
import { panel_names } from '../../utils/Config';
import {
$L,
getSpottableDescendants,
} from '../../utils/helperMethods';
import { SpotlightIds } from '../../utils/SpotlightIds';
import CartPanel from '../CartPanel/CartPanel';
import CategoryPanel from '../CategoryPanel/CategoryPanel';
import CheckOutPanel from '../CheckOutPanel/CheckOutPanel';
import ConfirmPanel from '../ConfirmPanel/ConfirmPanel';
import DebugPanel from '../DebugPanel/DebugPanel';
import DetailPanel from '../DetailPanel/DetailPanel';
import ErrorPanel from '../ErrorPanel/ErrorPanel';
import FeaturedBrandsPanel from '../FeaturedBrandsPanel/FeaturedBrandsPanel';
import HomePanel from '../HomePanel/HomePanel';
import HotPicksPanel from '../HotPicksPanel/HotPicksPanel';
import ImagePanel from '../ImagePanel/ImagePanel';
import IntroPanel from '../IntroPanel/IntroPanel';
import LoadingPanel from '../LoadingPanel/LoadingPanel';
import MyPagePanel from '../MyPagePanel/MyPagePanel';
import OnSalePanel from '../OnSalePanel/OnSalePanel';
import PlayerPanel from '../PlayerPanel/PlayerPanel';
import SearchPanel from '../SearchPanel/SearchPanel';
import ThemeCurationPanel from '../ThemeCurationPanel/ThemeCurationPanel';
import TrendingNowPanel from '../TrendingNowPanel/TrendingNowPanel';
import VideoTestPanel from '../VideoTestPanel/VideoTestPanel';
import WelcomeEventPanel from '../WelcomeEventPanel/WelcomeEventPanel';
import css from './MainView.module.less';
} from "../../actions/myPageActions";
import { pushPanel, resetPanels } from "../../actions/panelActions";
import Loader from "../../components/Loader/Loader";
import { convertUtcToLocal } from "../../components/MediaPlayer/util";
import PreloadImage from "../../components/PreloadImage/PreloadImage";
import SystemNotification from "../../components/SystemNotification/SystemNotification";
import TabLayout from "../../components/TabLayout/TabLayout";
import TPopUp from "../../components/TPopUp/TPopUp";
import useLogService from "../../hooks/useLogService";
import usePrevious from "../../hooks/usePrevious";
import * as Config from "../../utils/Config";
import { panel_names } from "../../utils/Config";
import { $L, getSpottableDescendants } from "../../utils/helperMethods";
import { SpotlightIds } from "../../utils/SpotlightIds";
import CartPanel from "../CartPanel/CartPanel";
import CategoryPanel from "../CategoryPanel/CategoryPanel";
import CheckOutPanel from "../CheckOutPanel/CheckOutPanel";
import ConfirmPanel from "../ConfirmPanel/ConfirmPanel";
import DebugPanel from "../DebugPanel/DebugPanel";
import DetailPanel from "../DetailPanel/DetailPanel";
import ErrorPanel from "../ErrorPanel/ErrorPanel";
import FeaturedBrandsPanel from "../FeaturedBrandsPanel/FeaturedBrandsPanel";
import HomePanel from "../HomePanel/HomePanel";
import HotPicksPanel from "../HotPicksPanel/HotPicksPanel";
import ImagePanel from "../ImagePanel/ImagePanel";
import IntroPanel from "../IntroPanel/IntroPanel";
import LoadingPanel from "../LoadingPanel/LoadingPanel";
import MyPagePanel from "../MyPagePanel/MyPagePanel";
import OnSalePanel from "../OnSalePanel/OnSalePanel";
import PlayerPanel from "../PlayerPanel/PlayerPanel";
import SearchPanel from "../SearchPanel/SearchPanel";
import ThemeCurationPanel from "../ThemeCurationPanel/ThemeCurationPanel";
import TrendingNowPanel from "../TrendingNowPanel/TrendingNowPanel";
import VideoTestPanel from "../VideoTestPanel/VideoTestPanel";
import WelcomeEventPanel from "../WelcomeEventPanel/WelcomeEventPanel";
import css from "./MainView.module.less";
const preloadImages = [
LoadingPreloadImage,
@@ -472,7 +453,7 @@ export default function MainView({ className }) {
keywordList: "",
lgCatCd,
lgCatNm,
logTpNo: Config.LOG_TP_NO.ALARM_CLICK.OK,
logTpNo: Config.LOG_TP_NO.ALARM_CLICK.BROADCAST,
patncNm,
patnrId: patnrId.toString(),
showId,
@@ -515,7 +496,7 @@ export default function MainView({ className }) {
keywordList: "",
lgCatCd,
lgCatNm,
logTpNo: Config.LOG_TP_NO.ALARM_CLICK.NO,
logTpNo: Config.LOG_TP_NO.ALARM_CLICK.BROADCAST,
patncNm,
patnrId: patnrId.toString(),
showId,