[지라이슈 없음]
- buy now 클릭 시에 QR 코드 노출 조건 변경 - order API 필수 params 추가
This commit is contained in:
@@ -42,8 +42,14 @@ export const getMyInfoCheckoutInfo =
|
||||
// 회원 CheckOut 상품 주문 IF-LGSP-346
|
||||
export const insertMyInfoCheckoutOrder =
|
||||
(props, callback) => (dispatch, getState) => {
|
||||
const { mbrNo, bilAddrSno, dlvrAddrSno, pinCd, orderProductCoupontUse } =
|
||||
props;
|
||||
const {
|
||||
mbrNo,
|
||||
bilAddrSno,
|
||||
dlvrAddrSno,
|
||||
pinCd,
|
||||
orderProductCoupontUse,
|
||||
orderProductQtyInfo,
|
||||
} = props;
|
||||
|
||||
const onSuccess = (response) => {
|
||||
console.log("insertMyInfoCheckoutOrder onSuccess: ", response.data);
|
||||
@@ -80,7 +86,14 @@ export const insertMyInfoCheckoutOrder =
|
||||
"post",
|
||||
URLS.INSERT_MY_INFO_CHECKOUT_ORDER,
|
||||
{},
|
||||
{ mbrNo, bilAddrSno, dlvrAddrSno, pinCd, orderProductCoupontUse },
|
||||
{
|
||||
mbrNo,
|
||||
bilAddrSno,
|
||||
dlvrAddrSno,
|
||||
pinCd,
|
||||
orderProductCoupontUse,
|
||||
orderProductQtyInfo,
|
||||
},
|
||||
onSuccess,
|
||||
onFail
|
||||
);
|
||||
|
||||
@@ -4,42 +4,32 @@ import React, {
|
||||
useMemo,
|
||||
useRef,
|
||||
useState,
|
||||
} from 'react';
|
||||
} from "react";
|
||||
|
||||
import classNames from 'classnames';
|
||||
import {
|
||||
useDispatch,
|
||||
useSelector,
|
||||
} from 'react-redux';
|
||||
import classNames from "classnames";
|
||||
import { useDispatch, useSelector } from "react-redux";
|
||||
|
||||
import Spotlight from '@enact/spotlight';
|
||||
import SpotlightContainerDecorator
|
||||
from '@enact/spotlight/SpotlightContainerDecorator';
|
||||
import Spottable from '@enact/spotlight/Spottable';
|
||||
import Spotlight from "@enact/spotlight";
|
||||
import SpotlightContainerDecorator from "@enact/spotlight/SpotlightContainerDecorator";
|
||||
import Spottable from "@enact/spotlight/Spottable";
|
||||
|
||||
import { insertMyInfoCheckoutOrder } from '../../../actions/checkoutActions';
|
||||
import {
|
||||
setHidePopup,
|
||||
setShowPopup,
|
||||
} from '../../../actions/commonActions';
|
||||
import { insertMyInfoCheckoutOrder } from "../../../actions/checkoutActions";
|
||||
import { setHidePopup, setShowPopup } from "../../../actions/commonActions";
|
||||
import {
|
||||
popPanel,
|
||||
pushPanel,
|
||||
resetPanels,
|
||||
} from '../../../actions/panelActions';
|
||||
import { getMyInfoCardPincodeCheck } from '../../../actions/pinCodeActions';
|
||||
import CustomImage from '../../../components/CustomImage/CustomImage';
|
||||
import TButton from '../../../components/TButton/TButton';
|
||||
import TPopUp from '../../../components/TPopUp/TPopUp';
|
||||
import TQRCode from '../../../components/TQRCode/TQRCode';
|
||||
import * as Config from '../../../utils/Config';
|
||||
import {
|
||||
$L,
|
||||
getQRCodeUrl,
|
||||
} from '../../../utils/helperMethods';
|
||||
import { sha256 } from '../../../utils/sha256';
|
||||
import { SpotlightIds } from '../../../utils/SpotlightIds';
|
||||
import css from './PinCodeInput.module.less';
|
||||
} from "../../../actions/panelActions";
|
||||
import { getMyInfoCardPincodeCheck } from "../../../actions/pinCodeActions";
|
||||
import CustomImage from "../../../components/CustomImage/CustomImage";
|
||||
import TButton from "../../../components/TButton/TButton";
|
||||
import TPopUp from "../../../components/TPopUp/TPopUp";
|
||||
import TQRCode from "../../../components/TQRCode/TQRCode";
|
||||
import * as Config from "../../../utils/Config";
|
||||
import { $L, getQRCodeUrl } from "../../../utils/helperMethods";
|
||||
import { sha256 } from "../../../utils/sha256";
|
||||
import { SpotlightIds } from "../../../utils/SpotlightIds";
|
||||
import css from "./PinCodeInput.module.less";
|
||||
|
||||
const PinCodeContainer = SpotlightContainerDecorator("div");
|
||||
const PinCodeDigitsContainer = SpotlightContainerDecorator(
|
||||
@@ -218,6 +208,15 @@ export default function PinCodeInput({
|
||||
pinCd: encryptedPin,
|
||||
orderProductCoupontUse:
|
||||
orderProductCoupontUse.length > 0 ? orderProductCoupontUse : [],
|
||||
orderProductQtyInfo: [
|
||||
{
|
||||
cntryCd: productList?.cntryCd,
|
||||
patnrId: productList?.patnrId,
|
||||
prodQty: productList?.prodQty,
|
||||
prdtId: productList?.prdtId,
|
||||
prodOptCdCval: productList?.prdtOpt?.[0]?.prodOptCdCval || "",
|
||||
},
|
||||
],
|
||||
},
|
||||
(response) => {
|
||||
if (!isMounted.current) return;
|
||||
|
||||
@@ -404,11 +404,11 @@ export default function SingleOption({
|
||||
|
||||
dispatch(sendLogPaymentEntry({ ...logInfo, cartTpSno }));
|
||||
}
|
||||
} else if (response.retCode === 901) {
|
||||
dispatch(showError(response.retCode, response.retMsg, false));
|
||||
} else if (response.retCode === 1001) {
|
||||
dispatch(setShowPopup(Config.ACTIVE_POPUP.qrPopup));
|
||||
dispatch(changeAppStatus({ showLoadingPanel: { show: false } }));
|
||||
} else {
|
||||
dispatch(setShowPopup(Config.ACTIVE_POPUP.qrPopup));
|
||||
dispatch(showError(response.retCode, response.retMsg, false));
|
||||
dispatch(changeAppStatus({ showLoadingPanel: { show: false } }));
|
||||
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user