From 3add749c07279004562c8c4340d14264236b493a Mon Sep 17 00:00:00 2001 From: optrader Date: Wed, 26 Nov 2025 13:47:36 +0900 Subject: [PATCH] [251126] fix: Log Migration - DetailPanel Done MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit πŸ• 컀밋 μ‹œκ°„: 2025. 11. 26. 13:47:36 πŸ“Š λ³€κ²½ 톡계: β€’ 총 파일: 1개 β€’ μΆ”κ°€: +32쀄 β€’ μ‚­μ œ: -3쀄 πŸ“ μˆ˜μ •λœ 파일: ~ com.twin.app.shoptime/src/views/DetailPanel/ProductAllSection/ProductAllSection.jsx πŸ”§ μ£Όμš” λ³€κ²½ λ‚΄μš©: β€’ μ†Œκ·œλͺ¨ κΈ°λŠ₯ κ°œμ„  --- .../ProductAllSection/ProductAllSection.jsx | 35 +++++++++++++++++-- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/com.twin.app.shoptime/src/views/DetailPanel/ProductAllSection/ProductAllSection.jsx b/com.twin.app.shoptime/src/views/DetailPanel/ProductAllSection/ProductAllSection.jsx index 6bd0822b..f9d42091 100644 --- a/com.twin.app.shoptime/src/views/DetailPanel/ProductAllSection/ProductAllSection.jsx +++ b/com.twin.app.shoptime/src/views/DetailPanel/ProductAllSection/ProductAllSection.jsx @@ -67,7 +67,7 @@ import TVirtualGridList from '../../../components/TVirtualGridList/TVirtualGridList.jsx'; import useReviews from '../../../hooks/useReviews/useReviews'; import useScrollTo from '../../../hooks/useScrollTo'; -import { formatGMTString } from '../../../../utils/helperMethods'; +import { formatGMTString } from '../../../utils/helperMethods'; import { BUYNOW_CONFIG } from '../../../utils/BuyNowConfig'; import * as Config from '../../../utils/Config.js'; import { @@ -806,6 +806,35 @@ export default function ProductAllSection({ // console.log('[BuyNow] Buy Now button clicked'); 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:', { // prdtId: productData?.prdtId, // patnrId: productData?.patnrId, @@ -837,7 +866,7 @@ export default function ProductAllSection({ setOpenToast(true); } }, - [dispatch, productData, openToast] + [dispatch, productData, openToast, nowMenu] ); //λ‹«νžˆλ„λ‘ @@ -1061,7 +1090,7 @@ export default function ProductAllSection({ pipe(() => { // sendLogShopByMobile - Source와 λ™μΌν•œ λ‘œκΉ… μΆ”κ°€ 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 discountPrice = priceInfo?.split("|")[1]; const discountRate = priceInfo?.split("|")[4];