[SHOPTIME-3701] SBM 로그 오류 수정 요청 건
Changed files: 1. ShowProduct.jsx Detail note: 1. "Theme Detail" 내에서 일부 필수 파라미터 항목 누락 조치
This commit is contained in:
@@ -99,6 +99,12 @@ export default function ShowOption({
|
||||
}
|
||||
}, [productData]);
|
||||
|
||||
useEffect(() => {
|
||||
if (showProductInfo) {
|
||||
console.log("👉 ~ useEffect ~ showProductInfo", showProductInfo);
|
||||
}
|
||||
}, [showProductInfo]);
|
||||
|
||||
useEffect(() => {
|
||||
if (showProductInfo && Object.keys(showProductInfo).length > 0) {
|
||||
const params = {
|
||||
@@ -157,38 +163,38 @@ export default function ShowOption({
|
||||
}, [productData]);
|
||||
|
||||
const handleMobileSendPopupOpen = useCallback(() => {
|
||||
if (productData && Object.keys(productData).length > 0) {
|
||||
if (showProductInfo && Object.keys(showProductInfo).length > 0) {
|
||||
const params = {
|
||||
befPrice: productData?.priceInfo?.split("|")[0],
|
||||
curationId: productData?.curationId ?? "",
|
||||
curationNm: productData?.curationNm ?? "",
|
||||
befPrice: showProductInfo?.priceInfo?.split("|")[0],
|
||||
curationId: showProductInfo?.curationId ?? "",
|
||||
curationNm: showProductInfo?.curationNm ?? "",
|
||||
evntId: "",
|
||||
evntNm: "",
|
||||
lastPrice: productData?.priceInfo?.split("|")[1],
|
||||
lgCatCd: productData?.catCd ?? "",
|
||||
lgCatNm: productData?.catNm ?? "",
|
||||
lastPrice: showProductInfo?.priceInfo?.split("|")[1],
|
||||
lgCatCd: showProductInfo?.catCd ?? "",
|
||||
lgCatNm: showProductInfo?.catNm ?? "",
|
||||
locDt: formatLocalDateTime(new Date()),
|
||||
liveFlag: panelInfo?.liveFlag ?? "N",
|
||||
logTpNo: LOG_TP_NO.SHOP_BY_MOBILE.SHOP_BY_MOBILE,
|
||||
mbphNoFlag: "N",
|
||||
patncNm: productData?.patncNm,
|
||||
patnrId: productData?.patnrId,
|
||||
prdtId: productData?.prdtId,
|
||||
prdtNm: productData?.prdtNm,
|
||||
revwGrd: productData?.revwGrd ?? "",
|
||||
rewdAplyFlag: productData?.priceInfo?.split("|")[2],
|
||||
patncNm: showProductInfo?.patncNm,
|
||||
patnrId: showProductInfo?.patnrId,
|
||||
prdtId: showProductInfo?.prdtId,
|
||||
prdtNm: showProductInfo?.prdtNm,
|
||||
revwGrd: showProductInfo?.revwGrd ?? "",
|
||||
rewdAplyFlag: showProductInfo?.priceInfo?.split("|")[2],
|
||||
shopByMobileFlag: "Y",
|
||||
shopTpNm: "product",
|
||||
showId: productData?.showId ?? "",
|
||||
showNm: productData?.showNm ?? "",
|
||||
showId: showProductInfo?.showId ?? "",
|
||||
showNm: showProductInfo?.showNm ?? "",
|
||||
trmsAgrFlag: "N",
|
||||
tsvFlag: productData?.todaySpclFlag ?? "",
|
||||
tsvFlag: showProductInfo?.todaySpclFlag ?? "",
|
||||
};
|
||||
|
||||
dispatch(sendLogShopByMobile(params));
|
||||
shopByMobileLogRef.current = params;
|
||||
}
|
||||
}, [panelInfo?.liveFlag, productData, shopByMobileLogRef]);
|
||||
}, [panelInfo?.liveFlag, showProductInfo, shopByMobileLogRef]);
|
||||
|
||||
const isBillingProductVisible = useMemo(() => {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user