import React, { useState, useEffect, useRef } from 'react'; import MainNav from '../Components/MainNav'; import SubNav from '../Components/SubNav'; import DaumPostcode from "react-daum-postcode"; import { Container, Card, Row, Col, Button, Form } from 'react-bootstrap'; function Payment() { const [paymentWay, setPaymentWay] = useState([]) const [isAddress, setIsAddress] = useState(""); const [isZoneCode, setIsZoneCode] = useState(); const [isPostOpen, setIsPostOpen] = useState(); const [post, setPost] = useState([]) function postClick() { if (post.length !== 0) { setPost([]) } else { setPost(
) } } const handleComplete = (data) => { let fullAddress = data.address; let extraAddress = ""; if (data.addressType === "R") { if (data.bname !== "") { extraAddress += data.bname; } if (data.buildingName !== "") { extraAddress += extraAddress !== "" ? `, ${data.buildingName}` : data.buildingName; } fullAddress += extraAddress !== "" ? ` (${extraAddress})` : ""; } setIsZoneCode(data.zonecode); setIsAddress(fullAddress); setIsPostOpen(false); }; const postCodeStyle = { display: "block", position: "absolute", // top: "50%", width: "400px", height: "500px", padding: "7px", }; function handleClick() { if (paymentWay.length !== 0) { setPaymentWay([]) } else { const a = (
입금은행 입금자 입금예정일
) setPaymentWay(a) } } function handleClick2() { if (paymentWay.length !== 0) { setPaymentWay([]) } } return (

주문/결제

주문자 정보
이름 이메일 휴대전화
배송지 정보
{post}
주문상품정보
제품명 가격 옵션
  • 총 상품금액 12,000원
  • 배송비 2,500원
결제금액14,500원
결제수단
{paymentWay}
) } export default Payment