[장바구니 관련 추가]#1
- 작업 진행중 - api로 데이터 보내도록 처리중.
This commit is contained in:
@@ -15,7 +15,10 @@ import Spotlight from '@enact/spotlight';
|
||||
import SpotlightContainerDecorator
|
||||
from '@enact/spotlight/SpotlightContainerDecorator';
|
||||
|
||||
import { addToCart } from '../../../actions/cartActions';
|
||||
import {
|
||||
addToCart,
|
||||
insertMyinfoCart,
|
||||
} from '../../../actions/cartActions';
|
||||
import { getMyInfoCheckoutInfo } from '../../../actions/checkoutActions';
|
||||
import {
|
||||
changeAppStatus,
|
||||
@@ -1084,17 +1087,18 @@ const BuyOption = ({
|
||||
|
||||
if (!isMock) {
|
||||
dispatch(
|
||||
addToCart({
|
||||
insertMyinfoCart({
|
||||
mbrNo: userNumber,
|
||||
patnrId: selectedPatnrId,
|
||||
prdtId: selectedPrdtId,
|
||||
prodQty: String(effectiveQuantity),
|
||||
prodQty: Number(effectiveQuantity),
|
||||
prdtOpt: {
|
||||
prodOptCdCval: optionForUse?.prodOptCdCval || '',
|
||||
prodOptCval: optionLabel,
|
||||
prodOptSno: productOptionInfos?.[0]?.prodOptSno || '',
|
||||
prodOptCdCval: optionForUse?.prodOptCdCval || '',
|
||||
prodOptTpCdCval: productOptionInfos?.[0]?.prodOptTpCdCval || '',
|
||||
prodOptCval: optionLabel,
|
||||
},
|
||||
|
||||
})
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user