search 아이템클릭시 로그 수정 & 마이인포 버튼 클릭로그 수정
This commit is contained in:
@@ -164,7 +164,7 @@ export default function MyInfo({ title, cbScrollTo }) {
|
||||
}
|
||||
dispatch(
|
||||
sendLogTotalRecommend({
|
||||
buttonTitle: btnNm,
|
||||
tabTitle: btnNm,
|
||||
contextName: Config.LOG_CONTEXT_NAME.MYINFO,
|
||||
messageId: Config.LOG_MESSAGE_ID.BUTTONCLICK,
|
||||
})
|
||||
@@ -288,6 +288,7 @@ export default function MyInfo({ title, cbScrollTo }) {
|
||||
dispatch(sendLogMyInfoEdit({ btnNm }));
|
||||
dispatch(
|
||||
sendLogTotalRecommend({
|
||||
tabTitle: btnNm,
|
||||
buttonTitle: "ADD/EDIT",
|
||||
contextName: Config.LOG_CONTEXT_NAME.MYINFO,
|
||||
messageId: Config.LOG_MESSAGE_ID.BUTTONCLICK,
|
||||
|
||||
@@ -57,14 +57,11 @@ export default memo(function SearchItemCard({
|
||||
const sendLog = (newParams) => {
|
||||
const logParams = {
|
||||
...newParams,
|
||||
productId: contentId,
|
||||
productTitle: title,
|
||||
partner: patncNm,
|
||||
price: dcPrice ? dcPrice : price,
|
||||
contextName: LOG_CONTEXT_NAME.SEARCH,
|
||||
messageId: LOG_MESSAGE_ID.SEARCH_RESULT_CLICK,
|
||||
};
|
||||
dispatch(sendLogTotalRecommend(logParams));
|
||||
console.log("###logParams", logParams);
|
||||
};
|
||||
|
||||
const [firstChk, setFirstChk] = useState(0);
|
||||
@@ -74,9 +71,6 @@ export default memo(function SearchItemCard({
|
||||
|
||||
const handleItemClick = useCallback(
|
||||
(e) => {
|
||||
sendLog({
|
||||
resultType: "item",
|
||||
});
|
||||
const tokkens = contentId && contentId.split("_");
|
||||
const patnrId = tokkens[4] || "";
|
||||
const prdtId = tokkens[5] || "";
|
||||
@@ -86,7 +80,13 @@ export default memo(function SearchItemCard({
|
||||
|
||||
const xContainer = tItemCard?.parentNode?.parentNode;
|
||||
const yContainer = tBody?.children[0]?.children[0]?.children[0];
|
||||
|
||||
sendLog({
|
||||
productId: prdtId,
|
||||
productTitle: title,
|
||||
partner: patncNm,
|
||||
price: dcPrice ? dcPrice : price,
|
||||
resultType: "item",
|
||||
});
|
||||
if (xContainer && yContainer) {
|
||||
const section = "search-item";
|
||||
const x = getTranslate3dValueByDirection(xContainer);
|
||||
|
||||
@@ -26,7 +26,7 @@ export default memo(function SearchResults({
|
||||
const searchDatas = useSelector((state) => state.search.searchDatas) || {};
|
||||
const totalCount = useSelector((state) => state.search.totalCount) || {};
|
||||
const searchTimestamp = useSelector((state) => state.search.searchTimestamp);
|
||||
|
||||
console.log("###searchDatas", searchDatas);
|
||||
const results = useMemo(() => {
|
||||
const ret = Object.entries(searchDatas).reduce((acc, [key, data]) => {
|
||||
if (!data) return acc;
|
||||
|
||||
Reference in New Issue
Block a user