상품디테일페이지 sbm 클릭 및 sms 전송시 상품정보수집
This commit is contained in:
@@ -36,8 +36,8 @@ import {
|
||||
clearCurationCoupon,
|
||||
setEventIssueReq,
|
||||
} from "../../actions/eventActions";
|
||||
import { sendLogShopByMobile } from "../../actions/logActions";
|
||||
import { ACTIVE_POPUP, LOG_TP_NO } from "../../utils/Config";
|
||||
import { sendLogShopByMobile, sendLogTotalRecommend } from "../../actions/logActions";
|
||||
import { ACTIVE_POPUP, LOG_CONTEXT_NAME, LOG_MESSAGE_ID, LOG_TP_NO } from "../../utils/Config";
|
||||
import {
|
||||
$L,
|
||||
decryptPhoneNumber,
|
||||
@@ -85,6 +85,7 @@ export default function MobileSendPopUp({
|
||||
hotelDtlUrl,
|
||||
shopByMobileLogRef,
|
||||
spotlightId,
|
||||
patncNm,
|
||||
}) {
|
||||
const dispatch = useDispatch();
|
||||
const deviceInfo = useSelector((state) => state.device.deviceInfo);
|
||||
@@ -103,7 +104,7 @@ export default function MobileSendPopUp({
|
||||
);
|
||||
const popupVisible = useSelector((state) => state.common.popup.popupVisible);
|
||||
const nowMenu = useSelector((state) => state.common.menu.nowMenu);
|
||||
|
||||
const entryMenu = useSelector((state) => state.common.menu.entryMenu);
|
||||
const [inputDisabled, setInputDisabled] = useState(true);
|
||||
const [mobileNumber, setMobileNumber] = useState("");
|
||||
const [recentSentNumber, setRecentSentNumber] = useState([]);
|
||||
@@ -382,6 +383,9 @@ export default function MobileSendPopUp({
|
||||
if (smsTpCd === "APP00204") {
|
||||
params = { ...params, curationId };
|
||||
}
|
||||
|
||||
|
||||
|
||||
dispatch(sendSms(params));
|
||||
}
|
||||
// EVT00101 & APP00207(welcome) EVT00103 & APP00209 (welcome+Prizes) : smsTpCd 값을 받지 않음
|
||||
@@ -431,6 +435,15 @@ export default function MobileSendPopUp({
|
||||
regDeviceInfoRetCode === 0 ||
|
||||
curationCouponSuccess === 0
|
||||
) {
|
||||
const logParams = {
|
||||
status: 'send',
|
||||
entryMenu: entryMenu,
|
||||
nowMenu: nowMenu,
|
||||
partner: patncNm,
|
||||
contextName: LOG_CONTEXT_NAME.SHOPBYMOBILE,
|
||||
messageId: LOG_MESSAGE_ID.SMB
|
||||
}
|
||||
dispatch(sendLogTotalRecommend(logParams));
|
||||
if (shopByMobileLogRef) {
|
||||
let params = {
|
||||
...shopByMobileLogRef.current,
|
||||
@@ -439,7 +452,7 @@ export default function MobileSendPopUp({
|
||||
mbphNoFlag: "Y",
|
||||
trmsAgrFlag: "Y",
|
||||
};
|
||||
|
||||
|
||||
dispatch(sendLogShopByMobile(params));
|
||||
shopByMobileLogRef.current = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user