diff --git a/com.twin.app.shoptime/src/actions/mainActions.js b/com.twin.app.shoptime/src/actions/mainActions.js index 6e671401..eb64e6a1 100644 --- a/com.twin.app.shoptime/src/actions/mainActions.js +++ b/com.twin.app.shoptime/src/actions/mainActions.js @@ -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 diff --git a/com.twin.app.shoptime/src/views/DetailPanel/DetailPanel.jsx b/com.twin.app.shoptime/src/views/DetailPanel/DetailPanel.jsx index bb453935..20f1401e 100644 --- a/com.twin.app.shoptime/src/views/DetailPanel/DetailPanel.jsx +++ b/com.twin.app.shoptime/src/views/DetailPanel/DetailPanel.jsx @@ -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, }) ); } diff --git a/com.twin.app.shoptime/src/views/PlayerPanel/PlayerTabContents/TabContainer.jsx b/com.twin.app.shoptime/src/views/PlayerPanel/PlayerTabContents/TabContainer.jsx index e86a9add..04beb859 100644 --- a/com.twin.app.shoptime/src/views/PlayerPanel/PlayerTabContents/TabContainer.jsx +++ b/com.twin.app.shoptime/src/views/PlayerPanel/PlayerTabContents/TabContainer.jsx @@ -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 ( 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,