From 76fb96b21ddc35a6f607731b52fa9b52905dd910 Mon Sep 17 00:00:00 2001 From: dongyoungKo Date: Tue, 20 May 2025 10:06:50 +0900 Subject: [PATCH] =?UTF-8?q?[=ED=86=B5=ED=95=A9=EB=A1=9C=EA=B7=B8API=20No.8?= =?UTF-8?q?]=20FeaturedBrands=20LiveChannel=20Content=20=ED=81=B4=EB=A6=AD?= =?UTF-8?q?=20=EC=8B=9C=20=EB=A1=9C=EA=B7=B8=20=EC=A0=95=EB=B3=B4=20?= =?UTF-8?q?=EC=88=98=EC=A7=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/actions/logActions.js | 7 ++- .../src/components/TItemCard/TItemCard.jsx | 4 +- .../LiveChannels/LiveChannels.jsx | 6 +++ .../LiveChannelsVerticalContents.jsx | 44 ++++++++++++------- .../LiveChannelsVerticalProductList.jsx | 24 +++++++++- 5 files changed, 67 insertions(+), 18 deletions(-) diff --git a/com.twin.app.shoptime/src/actions/logActions.js b/com.twin.app.shoptime/src/actions/logActions.js index b50f6c27..08e4ab7c 100644 --- a/com.twin.app.shoptime/src/actions/logActions.js +++ b/com.twin.app.shoptime/src/actions/logActions.js @@ -1590,12 +1590,17 @@ export const sendLogCheckOutBtnClick = (params) => (dispatch, getState) => { // IF-LGSP-LOG-200 / 통합 추천 로그 export const sendLogTotalRecommend = (params) => (dispatch, getState) => { + let localMacAddress; + const { entryMenu } = getState().common.menu; const { macAddress } = getState().common.macAddress; const userNumber = getState().common.appStatus.loginUserData.userNumber; const macAddr = macAddress?.wired ? macAddress?.wired : macAddress?.wifi; - const localMacAddress = "00:1A:2B:3C:4D:5E"; + + if (typeof window === "object" && !window.PalmSystem) { + localMacAddress = "00:1A:2B:3C:4D:5E"; + } const logCreateTime = new Date().toISOString(); diff --git a/com.twin.app.shoptime/src/components/TItemCard/TItemCard.jsx b/com.twin.app.shoptime/src/components/TItemCard/TItemCard.jsx index 20d3e91d..ab4ec449 100644 --- a/com.twin.app.shoptime/src/components/TItemCard/TItemCard.jsx +++ b/com.twin.app.shoptime/src/components/TItemCard/TItemCard.jsx @@ -121,7 +121,7 @@ export default memo(function TItemCard({ shelfLocation: shelfLocation, shelfId: shelfId, shelfTitle: shelfTitle, - productId: contentId ? "" : productId, + productId: productId, productTitle: productName, partner: patnerName, brand: brandName, @@ -132,6 +132,8 @@ export default memo(function TItemCard({ contentId: contentId, contentTitle: contentTitle, }; + + console.log("#params", params); dispatch(sendLogTotalRecommend(params)); } } diff --git a/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/LiveChannels/LiveChannels.jsx b/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/LiveChannels/LiveChannels.jsx index f6013b2d..62c149a4 100644 --- a/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/LiveChannels/LiveChannels.jsx +++ b/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/LiveChannels/LiveChannels.jsx @@ -30,6 +30,7 @@ const LiveChannels = ({ isOnTop, order, shelfOrder, + shelfTitle, selectedPatnrId, spotlightId, }) => { @@ -162,6 +163,9 @@ const LiveChannels = ({ isOnTop={isOnTop} key={`${spotlightId}-${contentsIndex}`} selectedPatnrId={selectedPatnrId} + spotlightId={spotlightId} + shelfTitle={shelfTitle} + shelfOrder={shelfOrder} /> ) )} @@ -180,6 +184,8 @@ const LiveChannels = ({ key={`${spotlightId}-${contentsIndex}`} selectedPatnrId={selectedPatnrId} spotlightId={spotlightId} + shelfTitle={shelfTitle} + shelfOrder={shelfOrder} /> ) )} diff --git a/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/LiveChannels/LiveChannelsVerticalContents/LiveChannelsVerticalContents.jsx b/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/LiveChannels/LiveChannelsVerticalContents/LiveChannelsVerticalContents.jsx index ed6fab5e..08cfe0a2 100644 --- a/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/LiveChannels/LiveChannelsVerticalContents/LiveChannelsVerticalContents.jsx +++ b/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/LiveChannels/LiveChannelsVerticalContents/LiveChannelsVerticalContents.jsx @@ -47,6 +47,9 @@ const LiveChannelsVerticalContents = ({ handleItemFocus, isOnTop, selectedPatnrId, + spotlightId, + shelfTitle, + shelfOrder, }) => { const dispatch = useDispatch(); @@ -60,8 +63,17 @@ const LiveChannelsVerticalContents = ({ const isFullScreenModeActivedRef = useRef(false); const videoFocusTimeoutJob = useRef(new Job((func) => func(), 1000)); - const { brandProductInfo, chanId, patnrId, showId, showUrl } = - brandChanInfoItem; + const { + brandProductInfo, + chanId, + patnrId, + showId, + showUrl, + showNm, + lgCatNm, + chanNm, + brndNm, + } = brandChanInfoItem; const isJuvelirochka = useMemo( () => cntry_cd === "RU" && patnrId === "12", @@ -162,19 +174,15 @@ const LiveChannelsVerticalContents = ({ dispatch( sendLogTotalRecommend({ - partner: "", - shelfLocation: "", - shelfId: "", - shelfTitle: "", - contentId: "", - contentTitle: "", - productId: "", - productTitle: "", - brand: "", - price: "", - discount: "", - location: "", - category: "", + partner: chanNm, + shelfLocation: shelfOrder, + shelfId: spotlightId, + shelfTitle: shelfTitle, + contentId: showId, + contentTitle: showNm, + brand: brndNm, + location: contentsIndex + 1, + category: lgCatNm, }) ); @@ -222,7 +230,13 @@ const LiveChannelsVerticalContents = ({ patnrId={patnrId} selectedPatnrId={selectedPatnrId} showId={showId} + showNm={showNm} showUrl={showUrl} + spotlightId={spotlightId} + shelfOrder={shelfOrder} + shelfTitle={shelfTitle} + catNm={lgCatNm} + patnerName={chanNm} /> ) : (
diff --git a/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/LiveChannels/LiveChannelsVerticalContents/LiveChannelsVerticalProductList/LiveChannelsVerticalProductList.jsx b/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/LiveChannels/LiveChannelsVerticalContents/LiveChannelsVerticalProductList/LiveChannelsVerticalProductList.jsx index 2b45ecf0..6e637fdd 100644 --- a/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/LiveChannels/LiveChannelsVerticalContents/LiveChannelsVerticalProductList/LiveChannelsVerticalProductList.jsx +++ b/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/LiveChannels/LiveChannelsVerticalContents/LiveChannelsVerticalProductList/LiveChannelsVerticalProductList.jsx @@ -13,7 +13,11 @@ import TItemCard, { } from "../../../../../components/TItemCard/TItemCard"; import TVirtualGridList from "../../../../../components/TVirtualGridList/TVirtualGridList"; import useScrollTo from "../../../../../hooks/useScrollTo"; -import { panel_names } from "../../../../../utils/Config"; +import { + LOG_CONTEXT_NAME, + LOG_MESSAGE_ID, + panel_names, +} from "../../../../../utils/Config"; import { getTranslate3dValueByDirection, scaleH, @@ -27,7 +31,13 @@ export default function LiveChannelsVerticalProductList({ patnrId, selectedPatnrId, showId, + showNm, showUrl, + catNm, + patnerName, + shelfOrder, + shelfTitle, + spotlightId, }) { const { getScrollTo, scrollTop } = useScrollTo(); @@ -121,10 +131,22 @@ export default function LiveChannelsVerticalProductList({ prdtNm, priceInfo, soldoutFlag, + brndNm, } = brandProductInfo[index]; return (