youmayalsolike api log 추가
This commit is contained in:
@@ -245,33 +245,31 @@ export const getSubCategory =
|
||||
);
|
||||
};
|
||||
|
||||
export const continueGetSubCategory =
|
||||
(key, pageNo) =>
|
||||
(dispatch, getState) => {
|
||||
if (!lastSubCategoryParams) {
|
||||
console.warn("No previous category parameters found");
|
||||
return;
|
||||
}
|
||||
export const continueGetSubCategory = (key, pageNo) => (dispatch, getState) => {
|
||||
if (!lastSubCategoryParams) {
|
||||
console.warn("No previous category parameters found");
|
||||
return;
|
||||
}
|
||||
|
||||
const subCategoryData = getState().main.subCategoryData;
|
||||
const targetData =
|
||||
subCategoryData[key]?.subCatItemList ||
|
||||
subCategoryData[key]?.subCatShowList ||
|
||||
[];
|
||||
const totalCount = subCategoryData[key]?.total ?? 0;
|
||||
const startIndex = CATEGORY_DATA_MAX_RESULTS_LIMIT * (pageNo - 1);
|
||||
if (
|
||||
(startIndex <= 1 && !targetData) ||
|
||||
startIndex < targetData.length ||
|
||||
(totalCount -1) <= startIndex
|
||||
) {
|
||||
//ignore query
|
||||
return;
|
||||
}
|
||||
dispatch(
|
||||
getSubCategory({ ...lastSubCategoryParams }, pageNo, getSubCategoryKey)
|
||||
);
|
||||
};
|
||||
const subCategoryData = getState().main.subCategoryData;
|
||||
const targetData =
|
||||
subCategoryData[key]?.subCatItemList ||
|
||||
subCategoryData[key]?.subCatShowList ||
|
||||
[];
|
||||
const totalCount = subCategoryData[key]?.total ?? 0;
|
||||
const startIndex = CATEGORY_DATA_MAX_RESULTS_LIMIT * (pageNo - 1);
|
||||
if (
|
||||
(startIndex <= 1 && !targetData) ||
|
||||
startIndex < targetData.length ||
|
||||
totalCount - 1 <= startIndex
|
||||
) {
|
||||
//ignore query
|
||||
return;
|
||||
}
|
||||
dispatch(
|
||||
getSubCategory({ ...lastSubCategoryParams }, pageNo, getSubCategoryKey)
|
||||
);
|
||||
};
|
||||
|
||||
const clearSubCategory = () => ({
|
||||
type: types.CLEAR_SUB_CATEGORY,
|
||||
@@ -308,7 +306,7 @@ export const getTop20Show = () => (dispatch, getState) => {
|
||||
|
||||
// 유메이라이크 아이템 리스트 IF-LGSP-201
|
||||
export const getMainYouMayLike =
|
||||
({ lgCatCd, exclCurationId, exclPatnrId, exclPrdtId }) =>
|
||||
({ lgCatCd, exclCurationId, exclPatnrId, exclPrdtId, catDpTh3, catDpTh4 }) =>
|
||||
(dispatch, getState) => {
|
||||
const onSuccess = (response) => {
|
||||
console.log("getMainYouMayLike onSuccess ", response.data);
|
||||
@@ -328,7 +326,7 @@ export const getMainYouMayLike =
|
||||
getState,
|
||||
"get",
|
||||
URLS.GET_YOUMAYLIKE,
|
||||
{ lgCatCd, exclCurationId, exclPatnrId, exclPrdtId },
|
||||
{ lgCatCd, catDpTh3, catDpTh4, exclCurationId, exclPatnrId, exclPrdtId },
|
||||
{},
|
||||
onSuccess,
|
||||
onFail
|
||||
|
||||
@@ -138,6 +138,8 @@ export default function DetailPanel({ panelInfo, isOnTop, spotlightId }) {
|
||||
exclCurationId: panelInfo?.curationId,
|
||||
exclPatnrId: panelInfo?.patnrId,
|
||||
exclPrdtId: panelInfo?.prdtId,
|
||||
catDpTh3: productData?.catDpTh3,
|
||||
catDpTh4: productData?.catDpTh4,
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
@@ -43,6 +43,7 @@ export default function TabContainer({
|
||||
: $L("FEATURED SHOWS"),
|
||||
];
|
||||
|
||||
// console.log("###liveChannelInfos", liveChannelInfos[selectedIndex]);
|
||||
const handleItemClick = useCallback(
|
||||
({ index }) => {
|
||||
if (index === tab) return;
|
||||
@@ -101,7 +102,6 @@ export default function TabContainer({
|
||||
},
|
||||
[videoVerticalVisible]
|
||||
);
|
||||
|
||||
return (
|
||||
<Container
|
||||
className={classNames(
|
||||
@@ -121,7 +121,7 @@ export default function TabContainer({
|
||||
|
||||
{tab === 0 && (
|
||||
<ShopNowContents
|
||||
tabTitle = {tabList}
|
||||
tabTitle={tabList}
|
||||
shopNowInfo={shopNowInfo}
|
||||
playListInfo={playListInfo && playListInfo[selectedIndex]}
|
||||
videoVerticalVisible={videoVerticalVisible}
|
||||
@@ -132,7 +132,7 @@ export default function TabContainer({
|
||||
)}
|
||||
{panelInfo?.shptmBanrTpNm === "VOD" && tab === 1 && (
|
||||
<FeaturedShowContents
|
||||
tabTitle = {tabList}
|
||||
tabTitle={tabList}
|
||||
featuredShowsInfos={playListInfo}
|
||||
currentVideoInfo={playListInfo[selectedIndex]}
|
||||
setSelectedIndex={setSelectedIndex}
|
||||
@@ -146,7 +146,7 @@ export default function TabContainer({
|
||||
)}
|
||||
{panelInfo?.shptmBanrTpNm === "LIVE" && tab === 1 && liveChannelInfos && (
|
||||
<LiveChannelContents
|
||||
tabTitle = {tabList}
|
||||
tabTitle={tabList}
|
||||
selectedIndex={selectedIndex}
|
||||
setSelectedIndex={setSelectedIndex}
|
||||
videoVerticalVisible={videoVerticalVisible}
|
||||
|
||||
@@ -19,7 +19,6 @@ export default function YouMayLikeContents({
|
||||
const youmaylikeInfos = useSelector((state) => state.main.youmaylikeInfos);
|
||||
|
||||
const gridStyle = useMemo(() => ({ height: `${height}px` }), [height]);
|
||||
|
||||
useEffect(() => {
|
||||
if (shopNowInfo && shopNowInfo.length === 2) {
|
||||
setHeight(scaleH(300));
|
||||
@@ -52,6 +51,8 @@ export default function YouMayLikeContents({
|
||||
showNm: playListInfo?.showNm,
|
||||
showId: playListInfo?.showId,
|
||||
liveFlag: playListInfo?.liveFlag,
|
||||
catDpTh3: playListInfo?.catDpTh3,
|
||||
catDpTh4: playListInfo?.catDpTh4,
|
||||
patnrId,
|
||||
prdtId,
|
||||
launchedFromPlayer: true,
|
||||
|
||||
Reference in New Issue
Block a user