[WelcomdeEventPanel ] EVT00106 유형 랜딩 작업중

This commit is contained in:
jiwon93.son
2024-05-17 13:14:14 +09:00
parent 64e1cb8986
commit b76afdfbb5

View File

@@ -91,6 +91,7 @@ const WelcomeEventPanel = () => {
const navigateToLinkByTypeCode = useCallback(() => {
if (shptmLnkInfo) {
window.alert("navigate ");
switch (shptmLnkInfo.shptmLnkTpCd) {
case "EVT00201": // Home
break;
@@ -106,7 +107,10 @@ const WelcomeEventPanel = () => {
// dispatch(pushPanel({ name: Config.panel_names.TRENDING_NOW_PANEL }));
// break;
// case "EVT00204": // Hot Picks
// dispatch(pushPanel({ name: Config.panel_names.HOT_PICKS_PANEL }));
// pushPanel({
// name: Config.panel_names.HOT_PICKS_PANEL,
// panelInfo: { curationId: shptmLnkInfo?.lnkCurationId },
// });
// break;
// case "EVT00205": // On Sale
// // catCd
@@ -195,6 +199,11 @@ const WelcomeEventPanel = () => {
}
}, [eventDatas, dispatch, closePopUp, loadingComplete]);
// 토스트 메세지
const toastAlertMessage = useCallback(() => {
dispatch(alertToast($L("Your coupon download is complete.")));
}, [dispatch]);
useEffect(() => {
// 신규회원 이벤트 신청 완료한 경우
if (regDeviceInfoData?.retCode === 0) {
@@ -208,6 +217,7 @@ const WelcomeEventPanel = () => {
useEffect(() => {
if (couponDownloadSuccess === 0) {
window.alert("coupon success");
toastAlertMessage();
dispatch(popPanel(Config.panel_names.WELCOME_EVENT_PANEL));
if (shptmLnkInfo.shptmLnkTpCd) {
@@ -216,11 +226,6 @@ const WelcomeEventPanel = () => {
}
}, [dispatch, couponDownloadSuccess]);
// 토스트 메세지
const toastAlertMessage = useCallback(() => {
dispatch(alertToast($L("Your coupon download is complete.")));
}, [dispatch]);
return (
<>
{eventDatas.eventInfo && (