- 링크결제_분리승인 페이지 추가

- KeyIn결제 FormData 생성
- 링크결제_분리승인 과련 Css 추가
This commit is contained in:
HyeonJongKim
2025-10-15 16:11:39 +09:00
parent 368b553bda
commit 097b1feb0f
20 changed files with 1171 additions and 136 deletions

View File

@@ -5,7 +5,8 @@ import { ListDateGroup } from '../list-date-group';
export const KeyInPaymentList = ({
additionalServiceCategory,
listItems
listItems,
mid
}: KeyInPaymentListProps) => {
const { navigate } = useNavigate();
@@ -25,7 +26,9 @@ export const KeyInPaymentList = ({
};
const onClickToNavigate = () => {
navigate(PATHS.additionalService.keyInPayment.request)
navigate(PATHS.additionalService.keyInPayment.request, {
state: { mid }
});
};
return (

View File

@@ -0,0 +1,71 @@
import { motion } from 'framer-motion';
import { IMAGE_ROOT } from '@/shared/constants/common';
import { BottomSheetMotionDuration, BottomSheetMotionVaiants } from "@/entities/common/model/constant";
export interface ExtendedPeriodBottomSheetProps {
bottomSheetOn: boolean,
setBottomSheetOn: (bottomSheetOn: boolean) => void;
extendPeriod: () => void;
};
export const ExtendedPeriodBottomSheet = ({
bottomSheetOn,
setBottomSheetOn,
extendPeriod
}: ExtendedPeriodBottomSheetProps) => {
const onClickToClose = () => {
setBottomSheetOn(false);
};
const onClickToResendSms = () => {
if(extendPeriod) {
extendPeriod();
}
onClickToClose();
};
return (
<>
{ (bottomSheetOn) &&
<div className="bg-dim"></div>
}
<motion.div
className="bottomsheet"
initial="hidden"
animate={ (bottomSheetOn)? 'visible': 'hidden' }
variants={ BottomSheetMotionVaiants }
transition={ BottomSheetMotionDuration }
>
<div className="bottomsheet-header">
<div className="bottomsheet-title">
<h2> </h2>
<button
className="close-btn"
type="button"
>
<img
src={ IMAGE_ROOT + '/ico_close.svg' }
alt="취소"
onClick={ () => onClickToClose() }
/>
</button>
</div>
</div>
<div className="bottomsheet-content">
<div className="bottom-section">
<p> ?</p>
<p> .</p>
</div>
</div>
<div className="bottomsheet-footer">
<button
className="btn-50 btn-blue flex-1"
type="button"
onClick={ () => onClickToResendSms() }
></button>
</div>
</motion.div>
</>
);
}

View File

@@ -0,0 +1,71 @@
import { motion } from 'framer-motion';
import { IMAGE_ROOT } from '@/shared/constants/common';
import { BottomSheetMotionDuration, BottomSheetMotionVaiants } from "@/entities/common/model/constant";
export interface LinkBreakBottomSheetProps {
bottomSheetOn: boolean,
setBottomSheetOn: (bottomSheetOn: boolean) => void;
linkBreak: () => void;
};
export const LinkBreakBottomSheet = ({
bottomSheetOn,
setBottomSheetOn,
linkBreak
}: LinkBreakBottomSheetProps) => {
const onClickToClose = () => {
setBottomSheetOn(false);
};
const onClickToLinkBreak = () => {
if(linkBreak) {
linkBreak();
}
onClickToClose();
};
return (
<>
{ (bottomSheetOn) &&
<div className="bg-dim"></div>
}
<motion.div
className="bottomsheet"
initial="hidden"
animate={ (bottomSheetOn)? 'visible': 'hidden' }
variants={ BottomSheetMotionVaiants }
transition={ BottomSheetMotionDuration }
>
<div className="bottomsheet-header">
<div className="bottomsheet-title">
<h2></h2>
<button
className="close-btn"
type="button"
>
<img
src={ IMAGE_ROOT + '/ico_close.svg' }
alt="취소"
onClick={ () => onClickToClose() }
/>
</button>
</div>
</div>
<div className="bottomsheet-content">
<div className="bottom-section">
<p> </p>
<p> .</p>
</div>
</div>
<div className="bottomsheet-footer">
<button
className="btn-50 btn-blue flex-1"
type="button"
onClick={ () => onClickToLinkBreak() }
></button>
</div>
</motion.div>
</>
);
}

View File

@@ -54,7 +54,7 @@ export const LinkPaymentHistoryWrap = () => {
mid: mid,
searchCl: searchType === LinkPaymentSearchType.ALL ? '' : searchType,
searchValue: searchKeyword,
paymentMethod: 'st', // 추후 변경 필요 빼야함
paymentMethod: '',
fromDate: startDate,
toDate: endDate,
paymentStatus: transactionStatus === LinkPaymentTransactionStatus.ALL ? '' : transactionStatus,
@@ -91,7 +91,7 @@ export const LinkPaymentHistoryWrap = () => {
mid: mid,
searchCl: (searchType === LinkPaymentSearchType.ALL)? '': searchType,
searchValue: searchKeyword,
paymentMethod: 'st', // 추후 변경 필요 빼야함
paymentMethod: '',
fromDate: startDate,
toDate: endDate,
paymentStatus: (transactionStatus === LinkPaymentTransactionStatus.ALL)? '': transactionStatus,