[장바구니 관련 추가]#1

- 작업 진행중
 - api로 데이터 보내도록 처리중.
This commit is contained in:
junghoon86.park
2025-11-12 19:40:55 +09:00
parent 5c8c67f666
commit 301e002985
7 changed files with 244 additions and 18 deletions

View File

@@ -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,
},
})
);