[SHOPTIME-3688] Item Detail / Media Full Play / 다른 파트너사의 다른 상품 썸네일이 계속 노출됨

[수정파일]

  1. Indicator.jsx
  2. ThemeIndicator.jsx
  3. PlayerPanel.jsx

[수정내용]

  1.미디어 타입일떄 PanelInfo로 ThumbnailUrl 데이터 전달
This commit is contained in:
고동영
2024-09-25 15:58:47 +09:00
parent b0365e733f
commit 8b1b8a1810
3 changed files with 21 additions and 6 deletions

View File

@@ -77,7 +77,6 @@ function Indicator({
if (!launchedFromPlayer && autoPlaying && productInfo?.prdtMediaUrl) {
//auto play.
dispatch(
startVideoPlayer({
showUrl: productInfo?.prdtMediaUrl,
@@ -93,6 +92,7 @@ function Indicator({
prdtId: productInfo?.prdtId,
prdtNm: productInfo?.prdtNm,
patncNm: productInfo?.patncNm,
thumbnailUrl: productInfo?.thumbnailUrl960,
modal: true,
shptmBanrTpNm: "MEDIA",
modalContainerId: "indicator_videoContainer", //to calc width, height, left, top
@@ -181,6 +181,7 @@ function Indicator({
prdtId: productInfo?.prdtId,
patncNm: productInfo?.patncNm,
prdtNm: productInfo?.prdtNm,
thumbnailUrl: productInfo?.thumbnailUrl960,
shptmBanrTpNm: "MEDIA",
modal: false,
modalContainerId: "indicator_videoContainer", //to calc width, height, left, top

View File

@@ -128,8 +128,8 @@ function ThemeIndicator({
prdtId: themeProductInfo?.prdtId,
patncNm: themeProductInfo?.patncNm,
prdtNm: themeProductInfo?.prdtNm,
thumbnailUrl: themeProductInfo?.thumbnailUrl960,
shptmBanrTpNm: "MEDIA",
// modal: autoPlaying,
modal: true,
modalContainerId: "indicator_videoContainer", //to calc width, height, left, top
modalClassName: modalClassNameChange(),
@@ -282,6 +282,7 @@ function ThemeIndicator({
prdtId: themeProductInfo?.prdtId,
patncNm: themeProductInfo?.patncNm,
prdtNm: themeProductInfo?.prdtNm,
thumbnailUrl: themeProductInfo?.thumbnailUrl960,
shptmBanrTpNm: "MEDIA",
modal: false,
modalContainerId: "indicator_videoContainer",

View File

@@ -1463,12 +1463,25 @@ const PlayerPanel = ({
const videoThumbnailUrl = useMemo(() => {
let res = null;
res = playListInfo?.[selectedIndex]?.thumbnailUrl;
if (!res) {
res = showDetailInfo?.[0]?.thumbnailUrl;
if (panelInfo.shptmBanrTpNm === "MEDIA") {
res = panelInfo?.thumbnailUrl;
} else {
res = playListInfo?.[selectedIndex]?.thumbnailUrl;
if (!res) {
res = showDetailInfo?.[0]?.thumbnailUrl;
}
}
return res;
}, [showDetailInfo, playListInfo, selectedIndex]);
}, [
showDetailInfo,
playListInfo,
selectedIndex,
panelInfo.thumbnailUrl,
panelInfo.shptmBanrTpNm,
]);
const saveToLocalSettings = useCallback(() => {
if (panelInfo?.shptmBanrTpNm === "VOD") {