@daeryun/dr_components 0.2.73 → 0.2.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/asset/images/myCase/arrow_2.webp +0 -0
- package/dist/asset/images/myCase/arrow_b.webp +0 -0
- package/dist/asset/images/myCase/arrow_b_w.webp +0 -0
- package/dist/asset/images/myCase/arrow_right.webp +0 -0
- package/dist/asset/images/myCase/background.svg +8 -0
- package/dist/asset/images/myCase/background.webp +0 -0
- package/dist/asset/images/myCase/background_mo.webp +0 -0
- package/dist/asset/images/myCase/background_tb.webp +0 -0
- package/dist/asset/images/myCase/home.svg +16 -0
- package/dist/asset/images/myCase/home.webp +0 -0
- package/dist/asset/images/myCase/icon/case_icon1.webp +0 -0
- package/dist/asset/images/myCase/icon/case_icon2.webp +0 -0
- package/dist/asset/images/myCase/icon/case_icon3.webp +0 -0
- package/dist/asset/images/myCase/icon/case_icon4.webp +0 -0
- package/dist/asset/images/myCase/icon/case_icon5.webp +0 -0
- package/dist/asset/images/myCase/icon/case_lookup_linkout.webp +0 -0
- package/dist/asset/images/myCase/icon/check_circle.webp +0 -0
- package/dist/asset/images/myCase/icon/check_circle2.webp +0 -0
- package/dist/asset/images/myCase/icon/client.webp +0 -0
- package/dist/asset/images/myCase/icon/close.webp +0 -0
- package/dist/asset/images/myCase/icon/daeryun.webp +0 -0
- package/dist/asset/images/myCase/icon/docs.webp +0 -0
- package/dist/asset/images/myCase/icon/download.webp +0 -0
- package/dist/asset/images/myCase/icon/hwp.webp +0 -0
- package/dist/asset/images/myCase/icon/ink_pen.webp +0 -0
- package/dist/asset/images/myCase/icon/jpg.webp +0 -0
- package/dist/asset/images/myCase/icon/modal_icon.webp +0 -0
- package/dist/asset/images/myCase/icon/pdf.webp +0 -0
- package/dist/asset/images/myCase/icon/png.webp +0 -0
- package/dist/asset/images/myCase/icon/unknown.webp +0 -0
- package/dist/asset/images/myCase/icon/word.webp +0 -0
- package/dist/asset/images/myCase/icon/xls.webp +0 -0
- package/dist/asset/images/myCase/nav_arr.webp +0 -0
- package/dist/asset/images/myCase/pagination/arrow_l_off.webp +0 -0
- package/dist/asset/images/myCase/pagination/arrow_l_on.webp +0 -0
- package/dist/asset/images/myCase/pagination/arrow_r_off.webp +0 -0
- package/dist/asset/images/myCase/pagination/arrow_r_on.webp +0 -0
- package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/components/BrochureBtn/BrochureBtn.d.ts +1 -0
- package/dist/components/BrochureBtn/BrochureBtn.stories.d.ts +6 -5
- package/dist/components/BrochureBtn/MedicalBrochureBtn.d.ts +1 -0
- package/dist/components/Fix/Fix.stories.d.ts +3 -2
- package/dist/components/Footer/TopBtn.d.ts +1 -0
- package/dist/components/MapSection/Map.d.ts +1 -0
- package/dist/components/MapSection/MapSection.d.ts +1 -1
- package/dist/components/Mark/Mark.d.ts +1 -0
- package/dist/components/SelectBox/SelectBox.d.ts +8 -8
- package/dist/components/Seo/SeoStrength.stories.d.ts +1 -0
- package/dist/components/ViewMoreSection/SearchIcon.d.ts +1 -0
- package/dist/components/banner/TopBanner.d.ts +1 -0
- package/dist/components/banner/TopBanner.stories.d.ts +1 -0
- package/dist/components/categoryView/CategoryComponent.d.ts +1 -1
- package/dist/components/page/Choice/Choice.d.ts +1 -1
- package/dist/components/page/MyCase/MyCase.stories.d.ts +6 -0
- package/dist/components/page/MyCase/MyCase.stories.jsx +17 -0
- package/dist/components/page/MyCase/MyCase.stories.tsx +25 -0
- package/dist/components/page/MyCase/MyCaseApp.d.ts +3 -0
- package/dist/components/page/MyCase/MyCaseApp.jsx +23 -0
- package/dist/components/page/MyCase/MyCaseApp.tsx +30 -0
- package/dist/components/page/MyCase/MyCasePage.d.ts +3 -0
- package/dist/components/page/MyCase/MyCasePage.jsx +23 -0
- package/dist/components/page/MyCase/MyCasePage.tsx +34 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetail.stories.d.ts +6 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetail.stories.jsx +17 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetail.stories.tsx +25 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetailApp.d.ts +3 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetailApp.jsx +68 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetailApp.tsx +159 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetailPage.d.ts +3 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetailPage.jsx +68 -0
- package/dist/components/page/MyCase/[id]/MyCaseDetailPage.tsx +159 -0
- package/dist/components/page/MyCase/[id]/_component/ContactInfo.d.ts +3 -0
- package/dist/components/page/MyCase/[id]/_component/ContactInfo.jsx +79 -0
- package/dist/components/page/MyCase/[id]/_component/ContactInfo.tsx +102 -0
- package/dist/components/page/MyCase/[id]/_component/DetailInfo.d.ts +7 -0
- package/dist/components/page/MyCase/[id]/_component/DetailInfo.jsx +44 -0
- package/dist/components/page/MyCase/[id]/_component/DetailInfo.tsx +94 -0
- package/dist/components/page/MyCase/[id]/_component/TimeLine.d.ts +7 -0
- package/dist/components/page/MyCase/[id]/_component/TimeLine.jsx +46 -0
- package/dist/components/page/MyCase/[id]/_component/TimeLine.tsx +72 -0
- package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.d.ts +12 -0
- package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.jsx +80 -0
- package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.tsx +188 -0
- package/dist/components/page/MyCase/[id]/_component/_document/Document.d.ts +7 -0
- package/dist/components/page/MyCase/[id]/_component/_document/Document.jsx +35 -0
- package/dist/components/page/MyCase/[id]/_component/_document/Document.tsx +59 -0
- package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.d.ts +7 -0
- package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.jsx +76 -0
- package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.tsx +94 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryAddModal.d.ts +8 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryAddModal.jsx +107 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryAddModal.tsx +150 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryConfirmModal.d.ts +8 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryConfirmModal.jsx +25 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryConfirmModal.tsx +55 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/ModalCotainer.d.ts +8 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/ModalCotainer.jsx +26 -0
- package/dist/components/page/MyCase/[id]/_component/_modal/ModalCotainer.tsx +39 -0
- package/dist/components/page/MyCase/[id]/_component/_textarea/TextArea.d.ts +8 -0
- package/dist/components/page/MyCase/[id]/_component/_textarea/TextArea.jsx +4 -0
- package/dist/components/page/MyCase/[id]/_component/_textarea/TextArea.tsx +24 -0
- package/dist/components/page/MyCase/_actions/action.d.ts +35 -0
- package/dist/components/page/MyCase/_actions/action.js +145 -0
- package/dist/components/page/MyCase/_actions/action.ts +165 -0
- package/dist/components/page/MyCase/_component/CaseAppContainer.d.ts +3 -0
- package/dist/components/page/MyCase/_component/CaseAppContainer.jsx +110 -0
- package/dist/components/page/MyCase/_component/CaseAppContainer.tsx +247 -0
- package/dist/components/page/MyCase/_component/CasePageContainer.d.ts +3 -0
- package/dist/components/page/MyCase/_component/CasePageContainer.jsx +119 -0
- package/dist/components/page/MyCase/_component/CasePageContainer.tsx +256 -0
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuApp.d.ts +8 -0
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuApp.jsx +47 -0
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuApp.tsx +77 -0
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuPage.d.ts +8 -0
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuPage.jsx +47 -0
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuPage.tsx +77 -0
- package/dist/components/page/MyCase/_component/_button/Badge.d.ts +15 -0
- package/dist/components/page/MyCase/_component/_button/Badge.jsx +16 -0
- package/dist/components/page/MyCase/_component/_button/Badge.tsx +22 -0
- package/dist/components/page/MyCase/_component/_button/SubColor1Button.d.ts +8 -0
- package/dist/components/page/MyCase/_component/_button/SubColor1Button.jsx +9 -0
- package/dist/components/page/MyCase/_component/_button/SubColor1Button.tsx +33 -0
- package/dist/components/page/MyCase/_component/_button/SubMenuButton.d.ts +8 -0
- package/dist/components/page/MyCase/_component/_button/SubMenuButton.jsx +9 -0
- package/dist/components/page/MyCase/_component/_button/SubMenuButton.tsx +31 -0
- package/dist/components/page/MyCase/_component/_empty/EmptyTable.d.ts +7 -0
- package/dist/components/page/MyCase/_component/_empty/EmptyTable.jsx +75 -0
- package/dist/components/page/MyCase/_component/_empty/EmptyTable.tsx +85 -0
- package/dist/components/page/MyCase/_component/_layout/CaseLayout.d.ts +8 -0
- package/dist/components/page/MyCase/_component/_layout/CaseLayout.jsx +11 -0
- package/dist/components/page/MyCase/_component/_layout/CaseLayout.tsx +29 -0
- package/dist/components/page/MyCase/_component/_layout/CaseWrapper.d.ts +12 -0
- package/dist/components/page/MyCase/_component/_layout/CaseWrapper.jsx +25 -0
- package/dist/components/page/MyCase/_component/_layout/CaseWrapper.tsx +41 -0
- package/dist/components/page/MyCase/_component/_layout/HeaderLayout.d.ts +5 -0
- package/dist/components/page/MyCase/_component/_layout/HeaderLayout.jsx +4 -0
- package/dist/components/page/MyCase/_component/_layout/HeaderLayout.tsx +5 -0
- package/dist/components/page/MyCase/_component/_layout/IntroWrapper.d.ts +10 -0
- package/dist/components/page/MyCase/_component/_layout/IntroWrapper.jsx +31 -0
- package/dist/components/page/MyCase/_component/_layout/IntroWrapper.tsx +81 -0
- package/dist/components/page/MyCase/_component/_loading/Loading.d.ts +3 -0
- package/dist/components/page/MyCase/_component/_loading/Loading.jsx +89 -0
- package/dist/components/page/MyCase/_component/_loading/Loading.tsx +92 -0
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentApp.d.ts +10 -0
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentApp.jsx +82 -0
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentApp.tsx +137 -0
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentPage.d.ts +10 -0
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentPage.jsx +81 -0
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentPage.tsx +135 -0
- package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.d.ts +9 -0
- package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.jsx +65 -0
- package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.tsx +79 -0
- package/dist/components/page/MyCase/_component/_table/CaseTable.d.ts +10 -0
- package/dist/components/page/MyCase/_component/_table/CaseTable.jsx +63 -0
- package/dist/components/page/MyCase/_component/_table/CaseTable.tsx +94 -0
- package/dist/components/page/MyCase/_component/_table/CaseTableMo.d.ts +10 -0
- package/dist/components/page/MyCase/_component/_table/CaseTableMo.jsx +11 -0
- package/dist/components/page/MyCase/_component/_table/CaseTableMo.tsx +28 -0
- package/dist/components/page/MyCase/_component/_table/CaseTableMoBox.d.ts +6 -0
- package/dist/components/page/MyCase/_component/_table/CaseTableMoBox.jsx +35 -0
- package/dist/components/page/MyCase/_component/_table/CaseTableMoBox.tsx +43 -0
- package/dist/components/page/MyCase/_component/_table/CaseTableMoPage.d.ts +10 -0
- package/dist/components/page/MyCase/_component/_table/CaseTableMoPage.jsx +11 -0
- package/dist/components/page/MyCase/_component/_table/CaseTableMoPage.tsx +28 -0
- package/dist/components/page/MyCase/_fetchers/addMyCaseQuestion.d.ts +6 -0
- package/dist/components/page/MyCase/_fetchers/addMyCaseQuestion.js +31 -0
- package/dist/components/page/MyCase/_fetchers/addMyCaseQuestion.ts +22 -0
- package/dist/components/page/MyCase/_fetchers/getCase.d.ts +5 -0
- package/dist/components/page/MyCase/_fetchers/getCase.js +30 -0
- package/dist/components/page/MyCase/_fetchers/getCase.ts +21 -0
- package/dist/components/page/MyCase/_fetchers/getCaseList.d.ts +7 -0
- package/dist/components/page/MyCase/_fetchers/getCaseList.js +30 -0
- package/dist/components/page/MyCase/_fetchers/getCaseList.ts +24 -0
- package/dist/components/page/MyCase/_fetchers/getCourtFileList.d.ts +5 -0
- package/dist/components/page/MyCase/_fetchers/getCourtFileList.js +30 -0
- package/dist/components/page/MyCase/_fetchers/getCourtFileList.ts +21 -0
- package/dist/components/page/MyCase/_fetchers/getMyCaseQuestion.d.ts +7 -0
- package/dist/components/page/MyCase/_fetchers/getMyCaseQuestion.js +30 -0
- package/dist/components/page/MyCase/_fetchers/getMyCaseQuestion.ts +24 -0
- package/dist/components/page/MyCase/_fetchers/getMyFileList.d.ts +5 -0
- package/dist/components/page/MyCase/_fetchers/getMyFileList.js +30 -0
- package/dist/components/page/MyCase/_fetchers/getMyFileList.ts +21 -0
- package/dist/components/page/MyCase/_fetchers/getTimeLine.d.ts +5 -0
- package/dist/components/page/MyCase/_fetchers/getTimeLine.js +30 -0
- package/dist/components/page/MyCase/_fetchers/getTimeLine.ts +21 -0
- package/dist/components/page/MyCase/_lib/catagoryMenuName.d.ts +8 -0
- package/dist/components/page/MyCase/_lib/catagoryMenuName.js +8 -0
- package/dist/components/page/MyCase/_lib/catagoryMenuName.ts +11 -0
- package/dist/components/page/MyCase/_lib/pagination/locale/ko_KR.d.ts +15 -0
- package/dist/components/page/MyCase/_lib/pagination/locale/ko_KR.js +21 -0
- package/dist/components/page/MyCase/_type/type.d.ts +73 -0
- package/dist/components/page/MyCase/_type/type.js +1 -0
- package/dist/components/page/MyCase/_type/type.ts +81 -0
- package/dist/components/page/Strength/Strength.d.ts +1 -0
- package/dist/components/page/index.d.ts +4 -0
- package/dist/components/page/index.js +4 -0
- package/dist/components/page/index.ts +4 -0
- package/dist/lib/utils.js +4 -4
- package/dist/styles/globals.css +2087 -130
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
|
+
import CaseLayout from '../../_component/_layout/CaseLayout';
|
|
3
|
+
const Label = ({ title, status }) => {
|
|
4
|
+
return (<div className="sm-top:gap-[8px] flex flex-row items-center gap-[4px]">
|
|
5
|
+
<div className={`sm-top:h-[8px] sm-top:w-[8px] h-[6px] w-[6px] rounded-full lg:h-[12px] lg:w-[12px] ${status ? 'bg-mycaseMainColor' : 'bg-grayScale4'}`}/>
|
|
6
|
+
<p className={`body_small2_mo sm-top:body_small2_tb lg:body_small2 ${status ? 'text-mycaseMainColor' : 'text-grayScale4'}`}>
|
|
7
|
+
{title}
|
|
8
|
+
</p>
|
|
9
|
+
</div>);
|
|
10
|
+
};
|
|
11
|
+
const LineBox = ({ children, title }) => {
|
|
12
|
+
return (<div className=" sm-top:py-[24px] border-b-[1px] border-solid border-grayScale6 pb-[8px] pt-[24px]">
|
|
13
|
+
{title && <p className="text-black body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">{title}</p>}
|
|
14
|
+
<div className="flex flex-row items-center justify-between">{children}</div>
|
|
15
|
+
</div>);
|
|
16
|
+
};
|
|
17
|
+
const ContactInfo = () => {
|
|
18
|
+
const list = {
|
|
19
|
+
payment_status: 'partial', //일부납/완납
|
|
20
|
+
deposit_amount: 10000000, // 착수금
|
|
21
|
+
remaining_amount: 4500000, // 잔여금액
|
|
22
|
+
payments: [
|
|
23
|
+
{
|
|
24
|
+
title: '상담비',
|
|
25
|
+
created_at: '2025-02-18 14:53:14',
|
|
26
|
+
amount: 110000,
|
|
27
|
+
method: '신용카드 - 현대카드 (일시불)'
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
title: '수임료',
|
|
31
|
+
created_at: '2025-02-19 14:53:14',
|
|
32
|
+
amount: 3290000,
|
|
33
|
+
method: '신용카드 - 롯데카드 (03개월 할부)'
|
|
34
|
+
},
|
|
35
|
+
{ title: '수임료', created_at: '2025-02-20 14:53:14', amount: 1600000, method: '계좌이체 - 신한은행' },
|
|
36
|
+
{ title: '수임료', created_at: '2025-02-21 14:53:14', amount: 500000, method: '계좌이체 - 현대카드' }
|
|
37
|
+
]
|
|
38
|
+
};
|
|
39
|
+
return (<CaseLayout isMobilePadding={false} outerClassName="mt-[35px] sm-top:mt-[24px] lg:mt-[40px] " innerClassName={'pt-[32px] px-[20px] pb-[40px] 2sm:px-[40px] sm-top:mt-[24px] sm-top:px-[50px] sm-top:pb-[60px] sm-top:pt-[56px] lg:pt-[60px] lg:pb-[80px] lg:px-[60px]'}>
|
|
40
|
+
<div className="sm-top:gap-[28px] flex flex-row gap-[12px] lg:gap-[32px]">
|
|
41
|
+
<Label title="일부납" status={list.payment_status === 'partial'}/>
|
|
42
|
+
<Label title="완납" status={list.payment_status !== 'partial'}/>
|
|
43
|
+
</div>
|
|
44
|
+
<div className={'sm-top:mt-[28px] mt-[16px] lg:mt-[26px]'}>
|
|
45
|
+
<LineBox>
|
|
46
|
+
<p className="text-black body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">착수금</p>
|
|
47
|
+
<p className="text-black body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">
|
|
48
|
+
{list.deposit_amount.toLocaleString()}원
|
|
49
|
+
</p>
|
|
50
|
+
</LineBox>
|
|
51
|
+
|
|
52
|
+
{list.payments.map((item, index) => (<LineBox key={index} title={index === 0 ? '입금액' : ''}>
|
|
53
|
+
<div className={`${index === 0 ? 'sm-top:mt-[16px] mt-[13px] lg:mt-[25px] ' : ''} sm-top:gap-[12px] flex flex-col gap-[8px] lg:gap-[8px]`}>
|
|
54
|
+
<p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-grayScale2">
|
|
55
|
+
{item.title}
|
|
56
|
+
</p>
|
|
57
|
+
<p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-grayScale2">
|
|
58
|
+
{dayjs(item.created_at).format('YYYY.MM.DD HH:mm')}
|
|
59
|
+
</p>
|
|
60
|
+
</div>
|
|
61
|
+
<div className="sm-top:gap-[12px] flex flex-col items-end gap-[8px] lg:gap-[8px]">
|
|
62
|
+
<p className="text-black body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">
|
|
63
|
+
{item.amount.toLocaleString()}원
|
|
64
|
+
</p>
|
|
65
|
+
<p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-grayScale2">
|
|
66
|
+
{item.method}
|
|
67
|
+
</p>
|
|
68
|
+
</div>
|
|
69
|
+
</LineBox>))}
|
|
70
|
+
<LineBox>
|
|
71
|
+
<p className="text-black body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">잔여금액</p>
|
|
72
|
+
<p className="text-black body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">
|
|
73
|
+
{list.remaining_amount.toLocaleString()}원
|
|
74
|
+
</p>
|
|
75
|
+
</LineBox>
|
|
76
|
+
</div>
|
|
77
|
+
</CaseLayout>);
|
|
78
|
+
};
|
|
79
|
+
export default ContactInfo;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
|
+
import CaseLayout from '../../_component/_layout/CaseLayout';
|
|
3
|
+
import { PaymentList, Payment } from '../../_type/type';
|
|
4
|
+
|
|
5
|
+
const Label = ({ title, status }: { title: string; status: boolean }) => {
|
|
6
|
+
return (
|
|
7
|
+
<div className="sm-top:gap-[8px] flex flex-row items-center gap-[4px]">
|
|
8
|
+
<div
|
|
9
|
+
className={`sm-top:h-[8px] sm-top:w-[8px] h-[6px] w-[6px] rounded-full lg:h-[12px] lg:w-[12px] ${status ? 'bg-mycaseMainColor' : 'bg-grayScale4'}`}
|
|
10
|
+
/>
|
|
11
|
+
<p
|
|
12
|
+
className={`body_small2_mo sm-top:body_small2_tb lg:body_small2 ${status ? 'text-mycaseMainColor' : 'text-grayScale4'}`}
|
|
13
|
+
>
|
|
14
|
+
{title}
|
|
15
|
+
</p>
|
|
16
|
+
</div>
|
|
17
|
+
);
|
|
18
|
+
};
|
|
19
|
+
const LineBox = ({ children, title }: { children: React.ReactNode; title?: string }) => {
|
|
20
|
+
return (
|
|
21
|
+
<div className=" sm-top:py-[24px] border-b-[1px] border-solid border-grayScale6 pb-[8px] pt-[24px]">
|
|
22
|
+
{title && <p className="text-black body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">{title}</p>}
|
|
23
|
+
<div className="flex flex-row items-center justify-between">{children}</div>
|
|
24
|
+
</div>
|
|
25
|
+
);
|
|
26
|
+
};
|
|
27
|
+
const ContactInfo = () => {
|
|
28
|
+
const list: PaymentList = {
|
|
29
|
+
payment_status: 'partial', //일부납/완납
|
|
30
|
+
deposit_amount: 10000000, // 착수금
|
|
31
|
+
remaining_amount: 4500000, // 잔여금액
|
|
32
|
+
payments: [
|
|
33
|
+
{
|
|
34
|
+
title: '상담비',
|
|
35
|
+
created_at: '2025-02-18 14:53:14',
|
|
36
|
+
amount: 110000,
|
|
37
|
+
method: '신용카드 - 현대카드 (일시불)'
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
title: '수임료',
|
|
41
|
+
created_at: '2025-02-19 14:53:14',
|
|
42
|
+
amount: 3290000,
|
|
43
|
+
method: '신용카드 - 롯데카드 (03개월 할부)'
|
|
44
|
+
},
|
|
45
|
+
{ title: '수임료', created_at: '2025-02-20 14:53:14', amount: 1600000, method: '계좌이체 - 신한은행' },
|
|
46
|
+
{ title: '수임료', created_at: '2025-02-21 14:53:14', amount: 500000, method: '계좌이체 - 현대카드' }
|
|
47
|
+
]
|
|
48
|
+
};
|
|
49
|
+
return (
|
|
50
|
+
<CaseLayout
|
|
51
|
+
isMobilePadding={false}
|
|
52
|
+
outerClassName="mt-[35px] sm-top:mt-[24px] lg:mt-[40px] "
|
|
53
|
+
innerClassName={
|
|
54
|
+
'pt-[32px] px-[20px] pb-[40px] 2sm:px-[40px] sm-top:mt-[24px] sm-top:px-[50px] sm-top:pb-[60px] sm-top:pt-[56px] lg:pt-[60px] lg:pb-[80px] lg:px-[60px]'
|
|
55
|
+
}
|
|
56
|
+
>
|
|
57
|
+
<div className="sm-top:gap-[28px] flex flex-row gap-[12px] lg:gap-[32px]">
|
|
58
|
+
<Label title="일부납" status={list.payment_status === 'partial'} />
|
|
59
|
+
<Label title="완납" status={list.payment_status !== 'partial'} />
|
|
60
|
+
</div>
|
|
61
|
+
<div className={'sm-top:mt-[28px] mt-[16px] lg:mt-[26px]'}>
|
|
62
|
+
<LineBox>
|
|
63
|
+
<p className="text-black body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">착수금</p>
|
|
64
|
+
<p className="text-black body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">
|
|
65
|
+
{list.deposit_amount.toLocaleString()}원
|
|
66
|
+
</p>
|
|
67
|
+
</LineBox>
|
|
68
|
+
|
|
69
|
+
{list.payments.map((item, index) => (
|
|
70
|
+
<LineBox key={index} title={index === 0 ? '입금액' : ''}>
|
|
71
|
+
<div
|
|
72
|
+
className={`${index === 0 ? 'sm-top:mt-[16px] mt-[13px] lg:mt-[25px] ' : ''} sm-top:gap-[12px] flex flex-col gap-[8px] lg:gap-[8px]`}
|
|
73
|
+
>
|
|
74
|
+
<p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-grayScale2">
|
|
75
|
+
{item.title}
|
|
76
|
+
</p>
|
|
77
|
+
<p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-grayScale2">
|
|
78
|
+
{dayjs(item.created_at).format('YYYY.MM.DD HH:mm')}
|
|
79
|
+
</p>
|
|
80
|
+
</div>
|
|
81
|
+
<div className="sm-top:gap-[12px] flex flex-col items-end gap-[8px] lg:gap-[8px]">
|
|
82
|
+
<p className="text-black body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">
|
|
83
|
+
{item.amount.toLocaleString()}원
|
|
84
|
+
</p>
|
|
85
|
+
<p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-grayScale2">
|
|
86
|
+
{item.method}
|
|
87
|
+
</p>
|
|
88
|
+
</div>
|
|
89
|
+
</LineBox>
|
|
90
|
+
))}
|
|
91
|
+
<LineBox>
|
|
92
|
+
<p className="text-black body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">잔여금액</p>
|
|
93
|
+
<p className="text-black body_medium1_mo sm-top:body_medium1_tb lg:body_medium1">
|
|
94
|
+
{list.remaining_amount.toLocaleString()}원
|
|
95
|
+
</p>
|
|
96
|
+
</LineBox>
|
|
97
|
+
</div>
|
|
98
|
+
</CaseLayout>
|
|
99
|
+
);
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
export default ContactInfo;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import Image from 'next/image';
|
|
2
|
+
import Link from 'next/link';
|
|
3
|
+
import CaseLayout from '../../_component/_layout/CaseLayout';
|
|
4
|
+
import Loading from '../../_component/_loading/Loading';
|
|
5
|
+
import caseLookupLinkout from '../../../../../asset/images/myCase/icon/case_lookup_linkout.webp';
|
|
6
|
+
const Line = ({ title, content, isFirst = false }) => {
|
|
7
|
+
return (<div className={`lg;py-[28px] border-grayScale5 sm-top:py-[20px] flex flex-row border-solid py-[20px] ${isFirst ? 'border-y-[1px]' : 'border-b-[1px]'}`}>
|
|
8
|
+
<div className="body_medium2_mo sm-top:body_medium2_tb lg:body_medium2 w-[30%]">{title}</div>
|
|
9
|
+
<div className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 w-[70%]">
|
|
10
|
+
{Array.isArray(content)
|
|
11
|
+
? content.map((item, index) => <div key={index}>{item}</div>)
|
|
12
|
+
: content
|
|
13
|
+
? content
|
|
14
|
+
: '-'}
|
|
15
|
+
</div>
|
|
16
|
+
</div>);
|
|
17
|
+
};
|
|
18
|
+
const DetailInfo = ({ detailList, isLoading }) => {
|
|
19
|
+
var _a, _b, _c;
|
|
20
|
+
return (<CaseLayout isMobilePadding={false} outerClassName="mt-[35px] sm-top:mt-[24px] lg:mt-[40px] " innerClassName={'px-[20px] 2sm:px-[40px] pt-[30px] pb-[40px] sm-top:px-[50px] sm-top:pt-[56px] sm-top:pb-[50px] lg:pt-[60px] lg:pb-[80px] lg:px-[60px]'}>
|
|
21
|
+
{isLoading ? (<Loading />) : (<>
|
|
22
|
+
<Line title="사건번호" content={detailList === null || detailList === void 0 ? void 0 : detailList.case_number} isFirst/>
|
|
23
|
+
<Line title="법원명" content={detailList === null || detailList === void 0 ? void 0 : detailList.agency_name}/>
|
|
24
|
+
<Line title="사건명" content={detailList === null || detailList === void 0 ? void 0 : detailList.title}/>
|
|
25
|
+
<Line title="진행단계" content={detailList === null || detailList === void 0 ? void 0 : detailList.state}/>
|
|
26
|
+
<Line title="사건 시작일" content={detailList === null || detailList === void 0 ? void 0 : detailList.accept_date}/>
|
|
27
|
+
<Line title="사건 종료일" content={detailList === null || detailList === void 0 ? void 0 : detailList.end_date}/>
|
|
28
|
+
<Line title="담당 변호사" content={detailList === null || detailList === void 0 ? void 0 : detailList.lawyer}/>
|
|
29
|
+
<Line title="나의 정보" content={`${(_a = detailList === null || detailList === void 0 ? void 0 : detailList.my_info) === null || _a === void 0 ? void 0 : _a.position} / ${(_b = detailList === null || detailList === void 0 ? void 0 : detailList.my_info) === null || _b === void 0 ? void 0 : _b.name} / ${(_c = detailList === null || detailList === void 0 ? void 0 : detailList.my_info) === null || _c === void 0 ? void 0 : _c.tel}`}/>
|
|
30
|
+
<Line title="상대방 정보" content={(detailList === null || detailList === void 0 ? void 0 : detailList.other_info.length) > 0
|
|
31
|
+
? detailList === null || detailList === void 0 ? void 0 : detailList.other_info.map((info, index) => `${info.position} / ${info.name} / ${info.tel}`)
|
|
32
|
+
: '-'}/>
|
|
33
|
+
<Link href="#" className={'itesm-center sm-top:mt-[20px] top-[16px] mt-[16px] flex w-full justify-end'}>
|
|
34
|
+
<div className="flex flex-row items-center gap-[8px] lg:gap-[12px]">
|
|
35
|
+
<Image src={caseLookupLinkout} alt="edit" width={28} height={28} className="sm-top:h-[20px] sm-top:w-[20px] h-[16px] w-[16px] lg:h-[28px] lg:w-[28px]"/>
|
|
36
|
+
<p className="body_medium2_mo sm-top:body_medium2_tb lg:body_medium2">
|
|
37
|
+
대법원 사건 조회하기
|
|
38
|
+
</p>
|
|
39
|
+
</div>
|
|
40
|
+
</Link>
|
|
41
|
+
</>)}
|
|
42
|
+
</CaseLayout>);
|
|
43
|
+
};
|
|
44
|
+
export default DetailInfo;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { useQuery } from 'react-query';
|
|
2
|
+
import getCase from '../../_fetchers/getCase';
|
|
3
|
+
import { useState } from 'react';
|
|
4
|
+
import { DetailList } from '../../_type/type';
|
|
5
|
+
import Image from 'next/image';
|
|
6
|
+
import Link from 'next/link';
|
|
7
|
+
import CaseLayout from '../../_component/_layout/CaseLayout';
|
|
8
|
+
import Loading from '../../_component/_loading/Loading';
|
|
9
|
+
import caseLookupLinkout from '../../../../../asset/images/myCase/icon/case_lookup_linkout.webp';
|
|
10
|
+
|
|
11
|
+
const Line = ({
|
|
12
|
+
title,
|
|
13
|
+
content,
|
|
14
|
+
isFirst = false
|
|
15
|
+
}: {
|
|
16
|
+
title: string;
|
|
17
|
+
content: string | string[];
|
|
18
|
+
isFirst?: boolean;
|
|
19
|
+
}) => {
|
|
20
|
+
return (
|
|
21
|
+
<div
|
|
22
|
+
className={`lg;py-[28px] border-grayScale5 sm-top:py-[20px] flex flex-row border-solid py-[20px] ${
|
|
23
|
+
isFirst ? 'border-y-[1px]' : 'border-b-[1px]'
|
|
24
|
+
}`}
|
|
25
|
+
>
|
|
26
|
+
<div className="body_medium2_mo sm-top:body_medium2_tb lg:body_medium2 w-[30%]">{title}</div>
|
|
27
|
+
<div className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 w-[70%]">
|
|
28
|
+
{Array.isArray(content)
|
|
29
|
+
? content.map((item, index) => <div key={index}>{item}</div>)
|
|
30
|
+
: content
|
|
31
|
+
? content
|
|
32
|
+
: '-'}
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
);
|
|
36
|
+
};
|
|
37
|
+
const DetailInfo = ({ detailList, isLoading }: { detailList: DetailList; isLoading: boolean }) => {
|
|
38
|
+
return (
|
|
39
|
+
<CaseLayout
|
|
40
|
+
isMobilePadding={false}
|
|
41
|
+
outerClassName="mt-[35px] sm-top:mt-[24px] lg:mt-[40px] "
|
|
42
|
+
innerClassName={
|
|
43
|
+
'px-[20px] 2sm:px-[40px] pt-[30px] pb-[40px] sm-top:px-[50px] sm-top:pt-[56px] sm-top:pb-[50px] lg:pt-[60px] lg:pb-[80px] lg:px-[60px]'
|
|
44
|
+
}
|
|
45
|
+
>
|
|
46
|
+
{isLoading ? (
|
|
47
|
+
<Loading />
|
|
48
|
+
) : (
|
|
49
|
+
<>
|
|
50
|
+
<Line title="사건번호" content={detailList?.case_number} isFirst />
|
|
51
|
+
<Line title="법원명" content={detailList?.agency_name} />
|
|
52
|
+
<Line title="사건명" content={detailList?.title} />
|
|
53
|
+
<Line title="진행단계" content={detailList?.state} />
|
|
54
|
+
<Line title="사건 시작일" content={detailList?.accept_date} />
|
|
55
|
+
<Line title="사건 종료일" content={detailList?.end_date} />
|
|
56
|
+
<Line title="담당 변호사" content={detailList?.lawyer} />
|
|
57
|
+
<Line
|
|
58
|
+
title="나의 정보"
|
|
59
|
+
content={`${detailList?.my_info?.position} / ${detailList?.my_info?.name} / ${detailList?.my_info?.tel}`}
|
|
60
|
+
/>
|
|
61
|
+
<Line
|
|
62
|
+
title="상대방 정보"
|
|
63
|
+
content={
|
|
64
|
+
detailList?.other_info.length > 0
|
|
65
|
+
? detailList?.other_info.map(
|
|
66
|
+
(info, index) => `${info.position} / ${info.name} / ${info.tel}`
|
|
67
|
+
)
|
|
68
|
+
: '-'
|
|
69
|
+
}
|
|
70
|
+
/>
|
|
71
|
+
<Link
|
|
72
|
+
href="#"
|
|
73
|
+
className={'itesm-center sm-top:mt-[20px] top-[16px] mt-[16px] flex w-full justify-end'}
|
|
74
|
+
>
|
|
75
|
+
<div className="flex flex-row items-center gap-[8px] lg:gap-[12px]">
|
|
76
|
+
<Image
|
|
77
|
+
src={caseLookupLinkout}
|
|
78
|
+
alt="edit"
|
|
79
|
+
width={28}
|
|
80
|
+
height={28}
|
|
81
|
+
className="sm-top:h-[20px] sm-top:w-[20px] h-[16px] w-[16px] lg:h-[28px] lg:w-[28px]"
|
|
82
|
+
/>
|
|
83
|
+
<p className="body_medium2_mo sm-top:body_medium2_tb lg:body_medium2">
|
|
84
|
+
대법원 사건 조회하기
|
|
85
|
+
</p>
|
|
86
|
+
</div>
|
|
87
|
+
</Link>
|
|
88
|
+
</>
|
|
89
|
+
)}
|
|
90
|
+
</CaseLayout>
|
|
91
|
+
);
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export default DetailInfo;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
|
+
import CaseLayout from '../../_component/_layout/CaseLayout';
|
|
3
|
+
import Image from 'next/image';
|
|
4
|
+
import checkCircle from '../../../../../asset/images/myCase/icon/check_circle.webp';
|
|
5
|
+
import checkCircle2 from '../../../../../asset/images/myCase/icon/check_circle2.webp';
|
|
6
|
+
const TimeBox = ({ item }) => {
|
|
7
|
+
return (<div className="sm-top:py-[20px] sm-top:px-[28px] sm-top:rounded-[8px] bg-grayScale7 rounded-[4px] px-[20px] py-[16px] lg:rounded-[12px] lg:px-[28px] lg:py-[20px]">
|
|
8
|
+
<div className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-grayScale2">
|
|
9
|
+
{dayjs(item.progress_time).format('YYYY.MM.DD HH:mm')}
|
|
10
|
+
</div>
|
|
11
|
+
<div className="body_medium2_mo sm-top:body_medium2_tb lg:body_medium2 sm-top:mt-[6px] mt-[8px] lg:mt-[8px]">
|
|
12
|
+
{item.title}
|
|
13
|
+
</div>
|
|
14
|
+
</div>);
|
|
15
|
+
};
|
|
16
|
+
const TimeContainer = ({ list, isFirst }) => {
|
|
17
|
+
const imgUrl = list[0].is_highest_court ? checkCircle : checkCircle2;
|
|
18
|
+
const color = list[0].is_highest_court ? 'text-subColor05' : 'text-mycaseMainColor';
|
|
19
|
+
const borderColor = list[0].is_highest_court ? 'border-subColor05' : 'border-mycaseMainColor';
|
|
20
|
+
return (<>
|
|
21
|
+
<div className="sm-top:gap-[16px] flex flex-col gap-[14px] lg:gap-[13px]">
|
|
22
|
+
<div className="sm-top:gap-[12px] flex flex-row items-center gap-[8px]">
|
|
23
|
+
<Image unoptimized src={imgUrl} alt="arrow" width={24} height={24} className="sm-top:w-[20px] sm-top:h-[20px] h-[16px] w-[16px] lg:h-[24px] lg:w-[24px]"/>
|
|
24
|
+
<p className={`body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 ${color}`}>
|
|
25
|
+
{list[0].title}
|
|
26
|
+
</p>
|
|
27
|
+
</div>
|
|
28
|
+
<div className={`sm-top:ml-[6px] sm-top:pl-[22px] ml-[8px] pl-[16px] lg:ml-[12px] lg:pl-[28px] ${borderColor} flex flex-col gap-[16px] ` +
|
|
29
|
+
`${isFirst ? '' : 'sm-top:border-l-[1.5px] border-l-[1px] border-solid lg:border-l-[2px] '}`}>
|
|
30
|
+
{list.map((item) => {
|
|
31
|
+
return <TimeBox key={item.idx} item={item}/>;
|
|
32
|
+
})}
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
</>);
|
|
36
|
+
};
|
|
37
|
+
const TimeLine = ({ timeLine, isLoading }) => {
|
|
38
|
+
return (<CaseLayout isMobilePadding={false} outerClassName="mt-[35px] sm-top:mt-[24px] lg:mt-[40px] " innerClassName={'pt-[32px] px-[20px] 2sm:px-[40px] sm-top:px-[50px] sm-top:pt-[56px] sm-top:pb-[80px] lg:pt-[60px] lg:pb-[80px] lg:px-[60px]'}>
|
|
39
|
+
<div className="flex flex-col gap-[16px]">
|
|
40
|
+
{timeLine.map((list, index) => {
|
|
41
|
+
return <TimeContainer key={index} list={list} isFirst={index === timeLine.length - 1}/>;
|
|
42
|
+
})}
|
|
43
|
+
</div>
|
|
44
|
+
</CaseLayout>);
|
|
45
|
+
};
|
|
46
|
+
export default TimeLine;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
|
+
import CaseLayout from '../../_component/_layout/CaseLayout';
|
|
3
|
+
import Image from 'next/image';
|
|
4
|
+
import { TimeLineType } from '../../_type/type';
|
|
5
|
+
import checkCircle from '../../../../../asset/images/myCase/icon/check_circle.webp';
|
|
6
|
+
import checkCircle2 from '../../../../../asset/images/myCase/icon/check_circle2.webp';
|
|
7
|
+
const TimeBox = ({ item }: { item: any }) => {
|
|
8
|
+
return (
|
|
9
|
+
<div className="sm-top:py-[20px] sm-top:px-[28px] sm-top:rounded-[8px] bg-grayScale7 rounded-[4px] px-[20px] py-[16px] lg:rounded-[12px] lg:px-[28px] lg:py-[20px]">
|
|
10
|
+
<div className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-grayScale2">
|
|
11
|
+
{dayjs(item.progress_time).format('YYYY.MM.DD HH:mm')}
|
|
12
|
+
</div>
|
|
13
|
+
<div className="body_medium2_mo sm-top:body_medium2_tb lg:body_medium2 sm-top:mt-[6px] mt-[8px] lg:mt-[8px]">
|
|
14
|
+
{item.title}
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
);
|
|
18
|
+
};
|
|
19
|
+
const TimeContainer = ({ list, isFirst }: { list: TimeLineType[]; isFirst: boolean }) => {
|
|
20
|
+
const imgUrl = list[0].is_highest_court ? checkCircle : checkCircle2;
|
|
21
|
+
const color = list[0].is_highest_court ? 'text-subColor05' : 'text-mycaseMainColor';
|
|
22
|
+
const borderColor = list[0].is_highest_court ? 'border-subColor05' : 'border-mycaseMainColor';
|
|
23
|
+
return (
|
|
24
|
+
<>
|
|
25
|
+
<div className="sm-top:gap-[16px] flex flex-col gap-[14px] lg:gap-[13px]">
|
|
26
|
+
<div className="sm-top:gap-[12px] flex flex-row items-center gap-[8px]">
|
|
27
|
+
<Image
|
|
28
|
+
unoptimized
|
|
29
|
+
src={imgUrl}
|
|
30
|
+
alt="arrow"
|
|
31
|
+
width={24}
|
|
32
|
+
height={24}
|
|
33
|
+
className="sm-top:w-[20px] sm-top:h-[20px] h-[16px] w-[16px] lg:h-[24px] lg:w-[24px]"
|
|
34
|
+
/>
|
|
35
|
+
<p className={`body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 ${color}`}>
|
|
36
|
+
{list[0].title}
|
|
37
|
+
</p>
|
|
38
|
+
</div>
|
|
39
|
+
<div
|
|
40
|
+
className={
|
|
41
|
+
`sm-top:ml-[6px] sm-top:pl-[22px] ml-[8px] pl-[16px] lg:ml-[12px] lg:pl-[28px] ${borderColor} flex flex-col gap-[16px] ` +
|
|
42
|
+
`${isFirst ? '' : 'sm-top:border-l-[1.5px] border-l-[1px] border-solid lg:border-l-[2px] '}`
|
|
43
|
+
}
|
|
44
|
+
>
|
|
45
|
+
{list.map((item: any) => {
|
|
46
|
+
return <TimeBox key={item.idx} item={item} />;
|
|
47
|
+
})}
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
</>
|
|
51
|
+
);
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
const TimeLine = ({ timeLine, isLoading }: { timeLine: TimeLineType[][]; isLoading: boolean }) => {
|
|
55
|
+
return (
|
|
56
|
+
<CaseLayout
|
|
57
|
+
isMobilePadding={false}
|
|
58
|
+
outerClassName="mt-[35px] sm-top:mt-[24px] lg:mt-[40px] "
|
|
59
|
+
innerClassName={
|
|
60
|
+
'pt-[32px] px-[20px] 2sm:px-[40px] sm-top:px-[50px] sm-top:pt-[56px] sm-top:pb-[80px] lg:pt-[60px] lg:pb-[80px] lg:px-[60px]'
|
|
61
|
+
}
|
|
62
|
+
>
|
|
63
|
+
<div className="flex flex-col gap-[16px]">
|
|
64
|
+
{timeLine.map((list, index) => {
|
|
65
|
+
return <TimeContainer key={index} list={list} isFirst={index === timeLine.length - 1} />;
|
|
66
|
+
})}
|
|
67
|
+
</div>
|
|
68
|
+
</CaseLayout>
|
|
69
|
+
);
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export default TimeLine;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Question } from '../../../_type/type';
|
|
3
|
+
declare const CaseInquiry: ({ myCaseQuestion, id, refetch, pageSize, totalLength, pageNumber, onChange }: {
|
|
4
|
+
myCaseQuestion: Question[];
|
|
5
|
+
id: string;
|
|
6
|
+
refetch: () => void;
|
|
7
|
+
pageSize: number;
|
|
8
|
+
totalLength: number;
|
|
9
|
+
pageNumber: number;
|
|
10
|
+
onChange: (pageNumber: number) => void;
|
|
11
|
+
}) => import("react").JSX.Element;
|
|
12
|
+
export default CaseInquiry;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import Image from 'next/image';
|
|
2
|
+
import CaseLayout from '../../../_component/_layout/CaseLayout';
|
|
3
|
+
import { useRef, useState } from 'react';
|
|
4
|
+
import CaseInquiryAddModal from '../_modal/CaseInquiryAddModal';
|
|
5
|
+
import EmptyTable from '../../../_component/_empty/EmptyTable';
|
|
6
|
+
import dayjs from 'dayjs';
|
|
7
|
+
import PaginationComponentPage from '../../../_component/_pagination/PaginationComponentPage';
|
|
8
|
+
import client from '../../../../../../asset/images/myCase/icon/client.webp';
|
|
9
|
+
import daeryun from '../../../../../../asset/images/myCase/icon/daeryun.webp';
|
|
10
|
+
import arrowB from '../../../../../../asset/images/myCase/arrow_b.webp';
|
|
11
|
+
import inkPen from '../../../../../../asset/images/myCase/icon/ink_pen.webp';
|
|
12
|
+
const AnswerBox = ({ item, isOpen, openId, setOpenId }) => {
|
|
13
|
+
const ref = useRef(null);
|
|
14
|
+
return (<div ref={ref} className={`transition-height duration-300 ${(item === null || item === void 0 ? void 0 : item.answer) ? 'cursor-pointer' : ''} overflow-hidden`} onClick={() => {
|
|
15
|
+
if (item === null || item === void 0 ? void 0 : item.answer) {
|
|
16
|
+
if ((item === null || item === void 0 ? void 0 : item.idx.toString()) === openId) {
|
|
17
|
+
setOpenId('');
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
setOpenId(item === null || item === void 0 ? void 0 : item.idx.toString());
|
|
21
|
+
if (ref.current) {
|
|
22
|
+
ref.current.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}}>
|
|
27
|
+
<div className={`bg-grayScale7 sm-top:px-[40px] sm-top:py-[28px] flex flex-row items-center p-[20px] lg:px-[48px] lg:py-[36px] ${isOpen ? 'rounded-x-[20px] rounded-t-[20px] ' : 'rounded-[20px]'}`}>
|
|
28
|
+
<Image src={client} alt="client" width={60} height={60} className="sm-top:mr-[28px] sm-top:h-[52px] sm-top:w-[52px] mr-[12px] h-[40px] w-[40px] flex-shrink-0 lg:mr-[32px] lg:h-[60px] lg:w-[60px]"/>
|
|
29
|
+
<div className="w-full">
|
|
30
|
+
<p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-grayScale2">
|
|
31
|
+
{dayjs(item.created_at).format('YYYY.MM.DD HH:mm')}
|
|
32
|
+
</p>
|
|
33
|
+
<p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 mt-[4px] text-black lg:mt-[5px]">
|
|
34
|
+
{item.content}
|
|
35
|
+
</p>
|
|
36
|
+
<div className={`sm-top:mt-[12px] sm-top:justify-between mt-[8px] flex flex-row items-center max-sm:gap-[8px] lg:mt-[20px] `}>
|
|
37
|
+
<p className={`body_small2_mo sm-top:body_small2_tb lg:body_small2 max-sm-top:h-[18px] ${(item === null || item === void 0 ? void 0 : item.answer) ? 'text-subColor04' : 'text-mycaseMainColor'}`}>
|
|
38
|
+
{(item === null || item === void 0 ? void 0 : item.answer) ? '답변' : '미답변'}
|
|
39
|
+
</p>
|
|
40
|
+
{(item === null || item === void 0 ? void 0 : item.answer) ? (<Image src={arrowB} alt="arrow" width={16.6} height={10} className={`sm-top:h-[10px] sm-top:w-[16.6px] h-[6px] w-[10px] transition-transform duration-300 ${isOpen ? 'rotate-180' : ''}`}/>) : (<div className="bg-mycaseMainColor sm-top:h-[2px] sm-top:w-[16px] h-[1px] w-[12px] lg:w-[20px]"></div>)}
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
<div className={`border-grayScale7 sm-top:px-[40px] flex flex-row overflow-hidden rounded-b-[20px] border-x-[2px] border-b-[2px] border-solid px-[20px] transition-all duration-500 lg:px-[48px] ${isOpen ? 'sm-top:py-[28px] h-full py-[20px] opacity-100 lg:py-[36px]' : 'h-0 opacity-0'}`}>
|
|
46
|
+
<div className="sm-top:mr-[28px] sm-top:gap-[4px] mr-[12px] flex flex-shrink-0 flex-col items-center justify-center lg:mr-[32px] lg:gap-[12px]">
|
|
47
|
+
<Image src={daeryun} alt="client" width={60} height={60} className="sm-top:h-[52px] sm-top:w-[52px] h-[40px] w-[40px] flex-shrink-0 lg:h-[60px] lg:w-[60px]"/>
|
|
48
|
+
<p className=" sm-top:body_small2_tb lg:body_small2 text-mycaseMainColor max-sm:hidden">담당자</p>
|
|
49
|
+
</div>
|
|
50
|
+
<div className="flex flex-col justify-center">
|
|
51
|
+
<p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-grayScale2">
|
|
52
|
+
{dayjs(item === null || item === void 0 ? void 0 : item.answer_at).format('YYYY.MM.DD HH:mm')}
|
|
53
|
+
</p>
|
|
54
|
+
<p className="body_medium2_mo sm-top:body_medium2_tb lg:body_medium2 sm-top:mt-[4px] text-black lg:mt-[5px]">
|
|
55
|
+
{item === null || item === void 0 ? void 0 : item.answer}
|
|
56
|
+
</p>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
</div>);
|
|
60
|
+
};
|
|
61
|
+
const CaseInquiry = ({ myCaseQuestion, id, refetch, pageSize, totalLength, pageNumber, onChange }) => {
|
|
62
|
+
const [openId, setOpenId] = useState('0');
|
|
63
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
64
|
+
return (<CaseLayout isMobilePadding={false} outerClassName="mt-[35px] sm-top:mt-[24px] lg:mt-[40px] " innerClassName={'pt-[32px] px-[20px] pb-[80px] 2sm:px-[40px] sm-top:pt-[56px] sm-top:px-[50px] sm-top:pb-[60px] lg:pt-[70px] lg:pb-[80px] lg:px-[60px]'}>
|
|
65
|
+
<div className="sm-top:gap-[12px] flex flex-col gap-[8px] lg:gap-[24px]">
|
|
66
|
+
{(myCaseQuestion === null || myCaseQuestion === void 0 ? void 0 : myCaseQuestion.length) > 0 ? (myCaseQuestion === null || myCaseQuestion === void 0 ? void 0 : myCaseQuestion.map((item, index) => (<AnswerBox key={index} item={item} isOpen={openId === item.idx.toString()} openId={openId} setOpenId={setOpenId}/>))) : (<EmptyTable tap="caseInquiry" subTap={0} isMinHeight={false}/>)}
|
|
67
|
+
</div>
|
|
68
|
+
<div className={` flex items-center justify-end ${(myCaseQuestion === null || myCaseQuestion === void 0 ? void 0 : myCaseQuestion.length) > 0
|
|
69
|
+
? 'sm-top:mt-[80px] mt-[40px] lg:mt-[60px] '
|
|
70
|
+
: 'sm-top:mt-[95px] mt-[69px] lg:mt-[112px]'}`}>
|
|
71
|
+
<button onClick={() => setIsOpen(prev => !prev)} className=" bg-mycaseMainColor sm-top:h-[60px] sm-top:w-[188px] sm-top:gap-[23px] sm-top:rounded-[36px] flex h-[48px] w-[132px] items-center justify-center gap-[14px] rounded-[24px] text-white lg:h-[72px] lg:w-[220px] lg:gap-[21px]">
|
|
72
|
+
<Image src={inkPen} alt="ink_pen" width={28.5} height={28.5} className="sm-top:h-[23.75px] sm-top:w-[23.75px] h-[19px] w-[19px] lg:h-[28.5px] lg:w-[28.5px]"/>
|
|
73
|
+
<p className="body_large2_mo sm-top:body_large2_tb lg:body_large2">문의하기</p>
|
|
74
|
+
</button>
|
|
75
|
+
</div>
|
|
76
|
+
<CaseInquiryAddModal isOpen={isOpen} onClose={() => setIsOpen(false)} id={id} refetch={refetch}/>
|
|
77
|
+
<PaginationComponentPage pageSize={pageSize} total={totalLength} onChange={onChange} current={pageNumber}/>
|
|
78
|
+
</CaseLayout>);
|
|
79
|
+
};
|
|
80
|
+
export default CaseInquiry;
|