[251126] fix: Log Migration - DetailPanel Done
🕐 커밋 시간: 2025. 11. 26. 13:47:36 📊 변경 통계: • 총 파일: 1개 • 추가: +32줄 • 삭제: -3줄 📝 수정된 파일: ~ com.twin.app.shoptime/src/views/DetailPanel/ProductAllSection/ProductAllSection.jsx 🔧 주요 변경 내용: • 소규모 기능 개선
This commit is contained in:
@@ -67,7 +67,7 @@ import TVirtualGridList
|
|||||||
from '../../../components/TVirtualGridList/TVirtualGridList.jsx';
|
from '../../../components/TVirtualGridList/TVirtualGridList.jsx';
|
||||||
import useReviews from '../../../hooks/useReviews/useReviews';
|
import useReviews from '../../../hooks/useReviews/useReviews';
|
||||||
import useScrollTo from '../../../hooks/useScrollTo';
|
import useScrollTo from '../../../hooks/useScrollTo';
|
||||||
import { formatGMTString } from '../../../../utils/helperMethods';
|
import { formatGMTString } from '../../../utils/helperMethods';
|
||||||
import { BUYNOW_CONFIG } from '../../../utils/BuyNowConfig';
|
import { BUYNOW_CONFIG } from '../../../utils/BuyNowConfig';
|
||||||
import * as Config from '../../../utils/Config.js';
|
import * as Config from '../../../utils/Config.js';
|
||||||
import {
|
import {
|
||||||
@@ -806,6 +806,35 @@ export default function ProductAllSection({
|
|||||||
// console.log('[BuyNow] Buy Now button clicked');
|
// console.log('[BuyNow] Buy Now button clicked');
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
|
||||||
|
// 🚀 SingleOption.jsx의 sendLogTotalRecommend 로직 추가
|
||||||
|
if (productData && Object.keys(productData).length > 0) {
|
||||||
|
const { priceInfo, patncNm, prdtId, prdtNm, brndNm, catNm, showId, showNm } = productData;
|
||||||
|
const regularPrice = priceInfo?.split("|")[0];
|
||||||
|
const discountPrice = priceInfo?.split("|")[1];
|
||||||
|
const discountRate = priceInfo?.split("|")[4];
|
||||||
|
|
||||||
|
// Option 정보는 현재 선택된 옵션이 없으므로 기본값 사용
|
||||||
|
const prodOptCval = ""; // 실제로는 선택된 옵션 값이 들어가야 함
|
||||||
|
|
||||||
|
dispatch(
|
||||||
|
sendLogTotalRecommend({
|
||||||
|
nowMenu: nowMenu,
|
||||||
|
productId: prdtId,
|
||||||
|
productTitle: prdtNm,
|
||||||
|
partner: patncNm,
|
||||||
|
price: discountRate ? discountPrice : regularPrice,
|
||||||
|
discount: discountRate,
|
||||||
|
brand: brndNm,
|
||||||
|
productOption: prodOptCval,
|
||||||
|
category: catNm,
|
||||||
|
contextName: Config.LOG_CONTEXT_NAME.DETAILPAGE,
|
||||||
|
messageId: Config.LOG_MESSAGE_ID.BUY_NOW,
|
||||||
|
showId: showId ?? "",
|
||||||
|
showNm: showNm ?? "",
|
||||||
|
})
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// console.log('[ProductAllSection] 🛒 BUY NOW clicked - productData:', {
|
// console.log('[ProductAllSection] 🛒 BUY NOW clicked - productData:', {
|
||||||
// prdtId: productData?.prdtId,
|
// prdtId: productData?.prdtId,
|
||||||
// patnrId: productData?.patnrId,
|
// patnrId: productData?.patnrId,
|
||||||
@@ -837,7 +866,7 @@ export default function ProductAllSection({
|
|||||||
setOpenToast(true);
|
setOpenToast(true);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
[dispatch, productData, openToast]
|
[dispatch, productData, openToast, nowMenu]
|
||||||
);
|
);
|
||||||
|
|
||||||
//닫히도록
|
//닫히도록
|
||||||
@@ -1061,7 +1090,7 @@ export default function ProductAllSection({
|
|||||||
pipe(() => {
|
pipe(() => {
|
||||||
// sendLogShopByMobile - Source와 동일한 로깅 추가
|
// sendLogShopByMobile - Source와 동일한 로깅 추가
|
||||||
if (productData && Object.keys(productData).length > 0) {
|
if (productData && Object.keys(productData).length > 0) {
|
||||||
const { priceInfo, patncNm, prdtId, prdtNm, brndNm, catNm } = productData;
|
const { priceInfo, patncNm, patnrId, prdtId, prdtNm, brndNm, catNm } = productData;
|
||||||
const regularPrice = priceInfo?.split("|")[0];
|
const regularPrice = priceInfo?.split("|")[0];
|
||||||
const discountPrice = priceInfo?.split("|")[1];
|
const discountPrice = priceInfo?.split("|")[1];
|
||||||
const discountRate = priceInfo?.split("|")[4];
|
const discountRate = priceInfo?.split("|")[4];
|
||||||
|
|||||||
Reference in New Issue
Block a user