[helperMethods] 딥링크 테스트를 위한 초기 패널 진입 코드 주석 처리

This commit is contained in:
hyunwoo93.cha
2024-02-08 13:33:28 +09:00
parent a87e355b2b
commit 2aff000fdf
2 changed files with 45 additions and 42 deletions

View File

@@ -8,48 +8,47 @@ export const handleDeepLink = (contentTarget) => (dispatch, getState) => {
const linkTpCd = tokens[1]; // 진입경로코드
const linkTpName = tokens[1]; // 진입경로명
const type = tokens[3]; // 링크 타입.
let panelName="";
let panelName = "";
let panelInfo = {};
switch(type){
case 'LS':
switch (type) {
case "LS":
break;
case 'PD':
case "PD":
break;
case 'SD':
case "SD":
break;
case 'MA':
case "MA":
break;
case 'TD':
case "TD":
break;
case 'OS':
case "OS":
panelName = panel_names.ON_SALE_PANEL;
break;
case 'HP':
break;
case 'HD':
case "HP":
break;
case 'APD':
case "HD":
break;
case 'AMD':
case "APD":
break;
case 'ATD':
case "AMD":
break;
case 'ASD':
case "ATD":
break;
case 'TO':
case "ASD":
break;
case 'PS':
case "TO":
break;
case 'SC':
case "PS":
break;
case "SC":
break;
}
if(panelName){
console.log('handleDeepLink - panelName', panelName, panelInfo);
dispatch(pushPanel({ name: panelName, panelInfo}));
if (panelName) {
console.log("handleDeepLink - panelName", panelName, panelInfo);
dispatch(pushPanel({ name: panelName, panelInfo }));
//todo deeplink log
}
}else{
console.log('handleDeepLink - no target');
} else {
console.log("handleDeepLink - no target");
}
};

View File

@@ -87,25 +87,29 @@ export const scaleH = (value) => {
};
//for test
//V2_<32><5F><EFBFBD>԰<EFBFBD><D4B0><EFBFBD><EFBFBD>ڵ<EFBFBD>_<EFBFBD><5F><EFBFBD>԰<EFBFBD><D4B0>θ<EFBFBD>_MT_<54><5F><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
//V2_<32><5F><EFBFBD>԰<EFBFBD><D4B0><EFBFBD><EFBFBD>ڵ<EFBFBD>_<EFBFBD><5F><EFBFBD>԰<EFBFBD><D4B0>θ<EFBFBD>_OS_LGī<47>װ<EFBFBD><D7B0><EFBFBD>Code_<65><5F><EFBFBD><EFBFBD>ī<EFBFBD>װ<EFBFBD><D7B0><EFBFBD><EFBFBD><EFBFBD>
let localLaunchParams = {
contentTarget: "V2_aaa_dummy_OS_categorycode_subcategorycode"
// contentTarget: "V2_aaa_dummy_OS_categorycode_subcategorycode",
};
export const getLaunchParams = () => {
let params = {};
let params = {};
if (typeof window === 'object' && window.PalmSystem && window.PalmSystem.launchParams) {
try {
params = JSON.parse(window.PalmSystem.launchParams);
if (params['x-webos-app-container-launch'] === true) {
params = params.details;
}
} catch (e) {
params = {};
}
return params;
}else{
return localLaunchParams;
}
};
if (
typeof window === "object" &&
window.PalmSystem &&
window.PalmSystem.launchParams
) {
try {
params = JSON.parse(window.PalmSystem.launchParams);
if (params["x-webos-app-container-launch"] === true) {
params = params.details;
}
} catch (e) {
params = {};
}
return params;
} else {
return localLaunchParams;
}
};