@daeryun/dr_components 1.2.37 → 1.2.39

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.
Files changed (51) hide show
  1. package/dist/components/Footer/index.d.ts +3 -1
  2. package/dist/components/Footer/index.jsx +25 -12
  3. package/dist/components/Footer/index.tsx +39 -9
  4. package/dist/components/GlobalOfficeSection/GlobalOfficeSection.jsx +16 -4
  5. package/dist/components/GlobalOfficeSection/GlobalOfficeSection.tsx +26 -6
  6. package/dist/components/Header/PcHeader.jsx +1 -1
  7. package/dist/components/Header/PcHeader.tsx +1 -1
  8. package/dist/components/ViewMoreSection/ViewMoreSection.jsx +4 -0
  9. package/dist/components/ViewMoreSection/ViewMoreSection.tsx +4 -0
  10. package/dist/components/categoryView/CategoryComponent.jsx +6 -1
  11. package/dist/components/categoryView/CategoryComponent.tsx +9 -1
  12. package/dist/components/common/hook/index.d.ts +1 -0
  13. package/dist/components/common/hook/index.js +1 -0
  14. package/dist/components/common/hook/index.ts +1 -0
  15. package/dist/components/common/hook/useIsApp.d.ts +2 -0
  16. package/dist/components/common/hook/useIsApp.js +22 -0
  17. package/dist/components/common/hook/useIsApp.ts +29 -0
  18. package/dist/components/hook/useIsApp.d.ts +2 -0
  19. package/dist/components/hook/useIsApp.js +22 -0
  20. package/dist/components/hook/useIsApp.ts +29 -0
  21. package/dist/components/page/Consult/Consult.jsx +232 -222
  22. package/dist/components/page/Consult/Consult.tsx +598 -599
  23. package/dist/components/page/Consulting/Consulting.jsx +39 -39
  24. package/dist/components/page/Consulting/Consulting.tsx +51 -51
  25. package/dist/components/page/Integrate/Broadcast.d.ts +1 -0
  26. package/dist/components/page/Integrate/Broadcast.jsx +3 -2
  27. package/dist/components/page/Integrate/Broadcast.tsx +6 -2
  28. package/dist/components/page/Integrate/Field.d.ts +1 -0
  29. package/dist/components/page/Integrate/Field.jsx +5 -2
  30. package/dist/components/page/Integrate/Field.tsx +9 -2
  31. package/dist/components/page/Integrate/LawInfo.d.ts +1 -0
  32. package/dist/components/page/Integrate/LawInfo.jsx +5 -2
  33. package/dist/components/page/Integrate/LawInfo.tsx +8 -2
  34. package/dist/components/page/Integrate/Reply.d.ts +1 -0
  35. package/dist/components/page/Integrate/Reply.jsx +8 -6
  36. package/dist/components/page/Integrate/Reply.tsx +10 -8
  37. package/dist/components/page/Integrate/SearchData.jsx +8 -6
  38. package/dist/components/page/Integrate/SearchData.tsx +8 -0
  39. package/dist/components/page/Integrate/Success.d.ts +1 -0
  40. package/dist/components/page/Integrate/Success.jsx +7 -4
  41. package/dist/components/page/Integrate/Success.tsx +10 -5
  42. package/dist/components/page/Integrate/Trend.d.ts +1 -0
  43. package/dist/components/page/Integrate/Trend.jsx +5 -2
  44. package/dist/components/page/Integrate/Trend.tsx +7 -2
  45. package/dist/components/page/MapPage/MobileMapKeyDetail.jsx +6 -1
  46. package/dist/components/page/MapPage/MobileMapKeyDetail.tsx +9 -1
  47. package/dist/components/page/MapPage/PcMapKeyDetail.jsx +6 -1
  48. package/dist/components/page/MapPage/PcMapKeyDetail.tsx +9 -1
  49. package/dist/styles/globals.css +30 -8
  50. package/dist/tsconfig.tsbuildinfo +1 -1
  51. package/package.json +1 -1
@@ -164,7 +164,7 @@ const Index = (props) => {
164
164
  //1024px
165
165
  'max-lg:gap-[30px] max-lg:p-[10px] ' +
166
166
  //768px
167
- 'max-md:mb-[20px] max-md:flex-col max-md:items-start max-md:gap-[15px] max-md:p-0 ' +
167
+ 'max-md:mb-[20px] max-md:flex-row-reverse max-md:items-end max-md:justify-between max-md:gap-[15px] max-md:p-0 ' +
168
168
  //480px
169
169
  'max-xs:gap-[10px] max-xs:pt-[5px]'}>
170
170
  <Image src={NewChoiceConsulting} alt={'consulting icon'} width={216} height={183} className={'h-auto w-[96px] object-contain object-top ' +
@@ -211,46 +211,10 @@ const Index = (props) => {
211
211
  </p>
212
212
  </div>
213
213
  </div>
214
- <div className={'relative mb-[60px] mt-[40px] h-auto w-[100%] '}>
215
- <span className={'block h-[1px] w-full bg-[#CECECE] ' +
216
- 'after:absolute after:right-0 after:top-0 after:block after:h-[10px] after:w-[10px] after:-translate-y-[50%] after:rounded-full after:bg-[#CECECE] after:content-[""] ' +
217
- 'before:absolute before:left-0 before:top-0 before:block before:h-[10px] before:w-[10px] before:-translate-y-[50%] before:rounded-full before:bg-[#285FA2] before:content-[""]'}></span>
218
- <span className={'flex h-auto w-full flex-col px-[26px] py-[22px]'}>
219
- <div className={'relative mb-[10px] h-auto w-[37px]'}>
220
- <IconMt />
221
- </div>
222
- <p className={'mb-[10px] break-keep text-[18px] leading-[1.35] tracking-[-0.72px] text-[#6C6C6C] ' +
223
- //1500px
224
- 'max-3xl:text-[16px] ' +
225
- //1024px
226
- 'max-lg:text-[18px] max-lg:leading-[1.5] ' +
227
- //480px
228
- 'max-xs:text-[16px] ' +
229
- //325px
230
- 'max-3xs:text-[14px]'}>
231
- 퀄리티 높은 상담 제공을 위해 하루 상담 수에 제한을 두고 있어{' '}
232
- <span className={'font-bold'}>상담 예약이 빠르게 마감되고 있습니다.</span>
233
- <br />
234
- <br className={''}/>
235
- 모든 상담은 전문변호사가 사건 검토를 마친 뒤{' '}
236
- <span className={'font-bold'}>전문적으로 진행하기에 예약제로 실시됩니다.</span>
237
- <br />
238
- <br className={''}/>
239
- 가급적 빠른 상담 예약을 권유드리며, 예약 시간 준수를 부탁드립니다. 만족스러운 상담을 위해 최선을
240
- 다하겠습니다.
241
- <br className={''}/>
242
- <br className={''}/>※ 단, 상담 예약이 확정된 경우라도 동시간에 긴급한 우선 상담 사안이
243
- 발생하거나 회사 내부사정에 따라 상담 일정이 조정되거나 취소될 수 있습니다.
244
- </p>
245
- </span>
246
- <span className={'block h-[1px] w-full bg-[#CECECE] ' +
247
- 'after:absolute after:bottom-0 after:right-0 after:block after:h-[10px] after:w-[10px] after:translate-y-[50%] after:rounded-full after:bg-[#285FA2] after:content-[""] ' +
248
- 'before:absolute before:bottom-0 before:left-0 before:block before:h-[10px] before:w-[10px] before:translate-y-[50%] before:rounded-full before:bg-[#CECECE] before:content-[""]'}></span>
249
- </div>
250
214
  {/*문의 폼*/}
251
- <div className={'mx-auto mb-[80px] mt-[30px] ' +
215
+ <div className={'mx-auto mb-[80px] mt-[50px] ' +
252
216
  //1024px
253
- 'max-lg:w-full'}>
217
+ 'max-lg:w-full max-md:mb-[50px] max-md:mt-[30px]'}>
254
218
  <span className={'flex items-start justify-between border-b-[1px] border-solid border-b-[#D5D5D5] py-[40px] ' +
255
219
  //1024px
256
220
  'max-lg:flex-col max-lg:gap-[30px] max-lg:py-[30px]'}>
@@ -461,6 +425,42 @@ const Index = (props) => {
461
425
  </button>
462
426
  </span>
463
427
  </div>
428
+ <div className={'relative mb-[60px] mt-[40px] h-auto w-[100%] '}>
429
+ <span className={'block h-[1px] w-full bg-[#CECECE] ' +
430
+ 'after:absolute after:right-0 after:top-0 after:block after:h-[10px] after:w-[10px] after:-translate-y-[50%] after:rounded-full after:bg-[#CECECE] after:content-[""] ' +
431
+ 'before:absolute before:left-0 before:top-0 before:block before:h-[10px] before:w-[10px] before:-translate-y-[50%] before:rounded-full before:bg-[#285FA2] before:content-[""]'}></span>
432
+ <span className={'flex h-auto w-full flex-col px-[26px] py-[22px]'}>
433
+ <div className={'relative mb-[10px] h-auto w-[37px]'}>
434
+ <IconMt />
435
+ </div>
436
+ <p className={'mb-[10px] break-keep text-[18px] leading-[1.35] tracking-[-0.72px] text-[#6C6C6C] ' +
437
+ //1500px
438
+ 'max-3xl:text-[16px] ' +
439
+ //1024px
440
+ 'max-lg:text-[18px] max-lg:leading-[1.5] ' +
441
+ //480px
442
+ 'max-xs:text-[16px] ' +
443
+ //325px
444
+ 'max-3xs:text-[14px]'}>
445
+ 퀄리티 높은 상담 제공을 위해 하루 상담 수에 제한을 두고 있어{' '}
446
+ <span className={'font-bold'}>상담 예약이 빠르게 마감되고 있습니다.</span>
447
+ <br />
448
+ <br className={''}/>
449
+ 모든 상담은 전문변호사가 사건 검토를 마친 뒤{' '}
450
+ <span className={'font-bold'}>전문적으로 진행하기에 예약제로 실시됩니다.</span>
451
+ <br />
452
+ <br className={''}/>
453
+ 가급적 빠른 상담 예약을 권유드리며, 예약 시간 준수를 부탁드립니다. 만족스러운 상담을 위해 최선을
454
+ 다하겠습니다.
455
+ <br className={''}/>
456
+ <br className={''}/>※ 단, 상담 예약이 확정된 경우라도 동시간에 긴급한 우선 상담 사안이
457
+ 발생하거나 회사 내부사정에 따라 상담 일정이 조정되거나 취소될 수 있습니다.
458
+ </p>
459
+ </span>
460
+ <span className={'block h-[1px] w-full bg-[#CECECE] ' +
461
+ 'after:absolute after:bottom-0 after:right-0 after:block after:h-[10px] after:w-[10px] after:translate-y-[50%] after:rounded-full after:bg-[#285FA2] after:content-[""] ' +
462
+ 'before:absolute before:bottom-0 before:left-0 before:block before:h-[10px] before:w-[10px] before:translate-y-[50%] before:rounded-full before:bg-[#CECECE] before:content-[""]'}></span>
463
+ </div>
464
464
  </>);
465
465
  };
466
466
  export default Index;
@@ -190,7 +190,7 @@ const Index = (props: { ace_Click?: () => void }) => {
190
190
  //1024px
191
191
  'max-lg:gap-[30px] max-lg:p-[10px] ' +
192
192
  //768px
193
- 'max-md:mb-[20px] max-md:flex-col max-md:items-start max-md:gap-[15px] max-md:p-0 ' +
193
+ 'max-md:mb-[20px] max-md:flex-row-reverse max-md:items-end max-md:justify-between max-md:gap-[15px] max-md:p-0 ' +
194
194
  //480px
195
195
  'max-xs:gap-[10px] max-xs:pt-[5px]'
196
196
  }
@@ -271,60 +271,12 @@ const Index = (props: { ace_Click?: () => void }) => {
271
271
  </p>
272
272
  </div>
273
273
  </div>
274
- <div className={'relative mb-[60px] mt-[40px] h-auto w-[100%] '}>
275
- <span
276
- className={
277
- 'block h-[1px] w-full bg-[#CECECE] ' +
278
- 'after:absolute after:right-0 after:top-0 after:block after:h-[10px] after:w-[10px] after:-translate-y-[50%] after:rounded-full after:bg-[#CECECE] after:content-[""] ' +
279
- 'before:absolute before:left-0 before:top-0 before:block before:h-[10px] before:w-[10px] before:-translate-y-[50%] before:rounded-full before:bg-[#285FA2] before:content-[""]'
280
- }
281
- ></span>
282
- <span className={'flex h-auto w-full flex-col px-[26px] py-[22px]'}>
283
- <div className={'relative mb-[10px] h-auto w-[37px]'}>
284
- <IconMt />
285
- </div>
286
- <p
287
- className={
288
- 'mb-[10px] break-keep text-[18px] leading-[1.35] tracking-[-0.72px] text-[#6C6C6C] ' +
289
- //1500px
290
- 'max-3xl:text-[16px] ' +
291
- //1024px
292
- 'max-lg:text-[18px] max-lg:leading-[1.5] ' +
293
- //480px
294
- 'max-xs:text-[16px] ' +
295
- //325px
296
- 'max-3xs:text-[14px]'
297
- }
298
- >
299
- 퀄리티 높은 상담 제공을 위해 하루 상담 수에 제한을 두고 있어{' '}
300
- <span className={'font-bold'}>상담 예약이 빠르게 마감되고 있습니다.</span>
301
- <br />
302
- <br className={''} />
303
- 모든 상담은 전문변호사가 사건 검토를 마친 뒤{' '}
304
- <span className={'font-bold'}>전문적으로 진행하기에 예약제로 실시됩니다.</span>
305
- <br />
306
- <br className={''} />
307
- 가급적 빠른 상담 예약을 권유드리며, 예약 시간 준수를 부탁드립니다. 만족스러운 상담을 위해 최선을
308
- 다하겠습니다.
309
- <br className={''} />
310
- <br className={''} />※ 단, 상담 예약이 확정된 경우라도 동시간에 긴급한 우선 상담 사안이
311
- 발생하거나 회사 내부사정에 따라 상담 일정이 조정되거나 취소될 수 있습니다.
312
- </p>
313
- </span>
314
- <span
315
- className={
316
- 'block h-[1px] w-full bg-[#CECECE] ' +
317
- 'after:absolute after:bottom-0 after:right-0 after:block after:h-[10px] after:w-[10px] after:translate-y-[50%] after:rounded-full after:bg-[#285FA2] after:content-[""] ' +
318
- 'before:absolute before:bottom-0 before:left-0 before:block before:h-[10px] before:w-[10px] before:translate-y-[50%] before:rounded-full before:bg-[#CECECE] before:content-[""]'
319
- }
320
- ></span>
321
- </div>
322
274
  {/*문의 폼*/}
323
275
  <div
324
276
  className={
325
- 'mx-auto mb-[80px] mt-[30px] ' +
277
+ 'mx-auto mb-[80px] mt-[50px] ' +
326
278
  //1024px
327
- 'max-lg:w-full'
279
+ 'max-lg:w-full max-md:mb-[50px] max-md:mt-[30px]'
328
280
  }
329
281
  >
330
282
  <span
@@ -737,6 +689,54 @@ const Index = (props: { ace_Click?: () => void }) => {
737
689
  </button>
738
690
  </span>
739
691
  </div>
692
+ <div className={'relative mb-[60px] mt-[40px] h-auto w-[100%] '}>
693
+ <span
694
+ className={
695
+ 'block h-[1px] w-full bg-[#CECECE] ' +
696
+ 'after:absolute after:right-0 after:top-0 after:block after:h-[10px] after:w-[10px] after:-translate-y-[50%] after:rounded-full after:bg-[#CECECE] after:content-[""] ' +
697
+ 'before:absolute before:left-0 before:top-0 before:block before:h-[10px] before:w-[10px] before:-translate-y-[50%] before:rounded-full before:bg-[#285FA2] before:content-[""]'
698
+ }
699
+ ></span>
700
+ <span className={'flex h-auto w-full flex-col px-[26px] py-[22px]'}>
701
+ <div className={'relative mb-[10px] h-auto w-[37px]'}>
702
+ <IconMt />
703
+ </div>
704
+ <p
705
+ className={
706
+ 'mb-[10px] break-keep text-[18px] leading-[1.35] tracking-[-0.72px] text-[#6C6C6C] ' +
707
+ //1500px
708
+ 'max-3xl:text-[16px] ' +
709
+ //1024px
710
+ 'max-lg:text-[18px] max-lg:leading-[1.5] ' +
711
+ //480px
712
+ 'max-xs:text-[16px] ' +
713
+ //325px
714
+ 'max-3xs:text-[14px]'
715
+ }
716
+ >
717
+ 퀄리티 높은 상담 제공을 위해 하루 상담 수에 제한을 두고 있어{' '}
718
+ <span className={'font-bold'}>상담 예약이 빠르게 마감되고 있습니다.</span>
719
+ <br />
720
+ <br className={''} />
721
+ 모든 상담은 전문변호사가 사건 검토를 마친 뒤{' '}
722
+ <span className={'font-bold'}>전문적으로 진행하기에 예약제로 실시됩니다.</span>
723
+ <br />
724
+ <br className={''} />
725
+ 가급적 빠른 상담 예약을 권유드리며, 예약 시간 준수를 부탁드립니다. 만족스러운 상담을 위해 최선을
726
+ 다하겠습니다.
727
+ <br className={''} />
728
+ <br className={''} />※ 단, 상담 예약이 확정된 경우라도 동시간에 긴급한 우선 상담 사안이
729
+ 발생하거나 회사 내부사정에 따라 상담 일정이 조정되거나 취소될 수 있습니다.
730
+ </p>
731
+ </span>
732
+ <span
733
+ className={
734
+ 'block h-[1px] w-full bg-[#CECECE] ' +
735
+ 'after:absolute after:bottom-0 after:right-0 after:block after:h-[10px] after:w-[10px] after:translate-y-[50%] after:rounded-full after:bg-[#285FA2] after:content-[""] ' +
736
+ 'before:absolute before:bottom-0 before:left-0 before:block before:h-[10px] before:w-[10px] before:translate-y-[50%] before:rounded-full before:bg-[#CECECE] before:content-[""]'
737
+ }
738
+ ></span>
739
+ </div>
740
740
  </>
741
741
  );
742
742
  };
@@ -18,5 +18,6 @@ declare const Broadcast: (props: {
18
18
  trend: number;
19
19
  };
20
20
  loading: boolean;
21
+ isApp: boolean;
21
22
  }) => React.JSX.Element;
22
23
  export default Broadcast;
@@ -8,7 +8,7 @@ import { ViewMore } from './ViewMore';
8
8
  import { searchColorText } from '../../common/integrate';
9
9
  import { htmlTagRemove } from '../../../lib';
10
10
  const Broadcast = (props) => {
11
- const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading } = props;
11
+ const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading, isApp } = props;
12
12
  const [allTabPage, setAllTabPage] = useState(0);
13
13
  const [allTabList, setAllTabList] = useState([]);
14
14
  const getAllPage = () => {
@@ -45,7 +45,8 @@ const Broadcast = (props) => {
45
45
  return (<div key={'broadcast' + item.id} className={'w-full lg:flex lg:flex-row lg:flex-wrap lg:justify-between'}>
46
46
  {/*mobile*/}
47
47
  <Link href={{
48
- pathname: '/broadcast/' + item.id
48
+ pathname: '/broadcast/' + item.id,
49
+ query: Object.assign({}, (isApp ? { isApp: true } : {}))
49
50
  }} className={'mx-auto flex flex-col items-center justify-center lg:hidden' +
50
51
  (tab === '전체' && index === 3
51
52
  ? ''
@@ -28,8 +28,9 @@ const Broadcast = (props: {
28
28
  trend: number;
29
29
  };
30
30
  loading: boolean;
31
+ isApp: boolean;
31
32
  }) => {
32
- const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading } = props;
33
+ const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading, isApp } = props;
33
34
 
34
35
  const [allTabPage, setAllTabPage] = useState<number>(0);
35
36
  const [allTabList, setAllTabList] = useState<IBroadCastTypes[]>([]);
@@ -95,7 +96,10 @@ const Broadcast = (props: {
95
96
  {/*mobile*/}
96
97
  <Link
97
98
  href={{
98
- pathname: '/broadcast/' + item.id
99
+ pathname: '/broadcast/' + item.id,
100
+ query: {
101
+ ...(isApp ? { isApp: true } : {})
102
+ }
99
103
  }}
100
104
  className={
101
105
  'mx-auto flex flex-col items-center justify-center lg:hidden' +
@@ -19,5 +19,6 @@ declare const Field: (props: {
19
19
  trend: number;
20
20
  };
21
21
  loading: boolean;
22
+ isApp: boolean;
22
23
  }) => React.JSX.Element;
23
24
  export default Field;
@@ -5,7 +5,7 @@ import { ViewMore } from './ViewMore';
5
5
  import { Title } from './Title';
6
6
  import { searchColorText } from '../../common/integrate';
7
7
  const Field = (props) => {
8
- const { tab, onMoreViewText, list, pages, isMobileSize, search, onMoreView, listCount, loading } = props;
8
+ const { tab, onMoreViewText, list, pages, isMobileSize, search, onMoreView, listCount, loading, isApp } = props;
9
9
  const [allTabPage, setAllTabPage] = useState(0);
10
10
  const [allTabList, setAllTabList] = useState([]);
11
11
  const getAllPage = () => {
@@ -34,7 +34,10 @@ const Field = (props) => {
34
34
  <Title title={'업무분야'} tab={tab} type={'field'} onClick={str => onMoreViewText(str)} count={listCount.field}/>
35
35
  <div className={'my-4 grid gap-[16px] sm:m-2 sm:grid-cols-2 lg:grid-cols-3'}>
36
36
  {(tab === '전체' ? allTabList : list.fieldList).map((item, index) => {
37
- return (<Link href={`${item.pathname}field_new/[idx]`} target={item.center_code === props.center_code ? '' : '_blank'} as={`${item.pathname}field_new/${item.idx}`} key={`${item.pathname}field_new/[${item.idx}] `}>
37
+ return (<Link href={{
38
+ pathname: `${item.pathname}field_new/[idx]`,
39
+ query: Object.assign({}, (isApp ? { isApp: true } : {}))
40
+ }} target={item.center_code === props.center_code ? '' : '_blank'} as={`${item.pathname}field_new/${item.idx}`} key={`${item.pathname}field_new/[${item.idx}] `}>
38
41
  <p className={'text-[20px] text-[#555555] max-xl:text-[18px] max-sm:text-[16px] max-xs:text-[15px]'}>
39
42
  <span className={'mr-2 text-[#99999]'}>•</span>
40
43
  &nbsp; 업무분야
@@ -5,6 +5,7 @@ import { IFieldTypes, IListPagesType, IListTypes } from './integrateType';
5
5
  import { ViewMore } from './ViewMore';
6
6
  import { Title } from './Title';
7
7
  import { searchColorText } from '../../common/integrate';
8
+ import useIsApp from '../../hook/useIsApp';
8
9
 
9
10
  const Field = (props: {
10
11
  isMobileSize: boolean | null;
@@ -25,8 +26,9 @@ const Field = (props: {
25
26
  trend: number;
26
27
  };
27
28
  loading: boolean;
29
+ isApp: boolean;
28
30
  }) => {
29
- const { tab, onMoreViewText, list, pages, isMobileSize, search, onMoreView, listCount, loading } = props;
31
+ const { tab, onMoreViewText, list, pages, isMobileSize, search, onMoreView, listCount, loading, isApp } = props;
30
32
 
31
33
  const [allTabPage, setAllTabPage] = useState<number>(0);
32
34
  const [allTabList, setAllTabList] = useState<IFieldTypes[]>([]);
@@ -77,7 +79,12 @@ const Field = (props: {
77
79
  {(tab === '전체' ? allTabList : list.fieldList).map((item, index) => {
78
80
  return (
79
81
  <Link
80
- href={`${item.pathname}field_new/[idx]`}
82
+ href={{
83
+ pathname: `${item.pathname}field_new/[idx]`,
84
+ query: {
85
+ ...(isApp ? { isApp: true } : {})
86
+ }
87
+ }}
81
88
  target={item.center_code === props.center_code ? '' : '_blank'}
82
89
  as={`${item.pathname}field_new/${item.idx}`}
83
90
  key={`${item.pathname}field_new/[${item.idx}] `}
@@ -19,5 +19,6 @@ declare const LawInfo: (props: {
19
19
  };
20
20
  search: string;
21
21
  loading: boolean;
22
+ isApp: boolean;
22
23
  }) => React.JSX.Element;
23
24
  export default LawInfo;
@@ -6,7 +6,7 @@ import { Title } from './Title';
6
6
  import { ViewMore } from './ViewMore';
7
7
  import { searchColorText } from '../../common/integrate';
8
8
  const LawInfo = (props) => {
9
- const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading } = props;
9
+ const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading, isApp } = props;
10
10
  const [allTabPage, setAllTabPage] = useState(0);
11
11
  const [allTabList, setAllTabList] = useState([]);
12
12
  const getAllPage = () => {
@@ -40,7 +40,10 @@ const LawInfo = (props) => {
40
40
  <Title title={'법률정보'} tab={tab} type={'info'} onClick={str => onMoreViewText(str)} count={listCount.info}/>
41
41
  <div className={'grid w-full gap-[40px] sm:grid-cols-2 sm:gap-[30px] lg:grid-cols-4 lg:gap-[16px]'}>
42
42
  {(tab === '전체' ? allTabList : list.infoList).map((item, index) => {
43
- return (<Link key={item.pathname + 'lawinfo_new/' + item.idx} href={item.pathname + 'lawinfo_new/' + item.idx} target={item.center_code === props.center_code ? '' : '_blank'} className={'mb-3 flex flex-col gap-3 overflow-hidden'}>
43
+ return (<Link href={{
44
+ pathname: item.pathname + 'lawinfo_new/' + item.idx,
45
+ query: Object.assign({}, (isApp ? { isApp: true } : {}))
46
+ }} key={item.pathname + 'lawinfo_new/' + item.idx} target={item.center_code === props.center_code ? '' : '_blank'} className={'mb-3 flex flex-col gap-3 overflow-hidden'}>
44
47
  <div className={'relative aspect-[1.47] w-full overflow-hidden max-sm:h-full max-sm:w-full'}>
45
48
  <Image src={'https://d1tgonli21s4df.cloudfront.net' + item.img} alt={item.alt} fill sizes="(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 25vw" className={'h-full w-full object-contain '}/>
46
49
  </div>
@@ -26,8 +26,9 @@ const LawInfo = (props: {
26
26
  };
27
27
  search: string;
28
28
  loading: boolean;
29
+ isApp: boolean;
29
30
  }) => {
30
- const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading } = props;
31
+ const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading, isApp } = props;
31
32
  const [allTabPage, setAllTabPage] = useState<number>(0);
32
33
  const [allTabList, setAllTabList] = useState<IInfoTypes[]>([]);
33
34
 
@@ -86,8 +87,13 @@ const LawInfo = (props: {
86
87
  {(tab === '전체' ? allTabList : list.infoList).map((item, index) => {
87
88
  return (
88
89
  <Link
90
+ href={{
91
+ pathname: item.pathname + 'lawinfo_new/' + item.idx,
92
+ query: {
93
+ ...(isApp ? { isApp: true } : {})
94
+ }
95
+ }}
89
96
  key={item.pathname + 'lawinfo_new/' + item.idx}
90
- href={item.pathname + 'lawinfo_new/' + item.idx}
91
97
  target={item.center_code === props.center_code ? '' : '_blank'}
92
98
  className={'mb-3 flex flex-col gap-3 overflow-hidden'}
93
99
  >
@@ -19,5 +19,6 @@ declare const Reply: (props: {
19
19
  trend: number;
20
20
  };
21
21
  loading: boolean;
22
+ isApp: boolean;
22
23
  }) => React.JSX.Element;
23
24
  export default Reply;
@@ -6,7 +6,7 @@ import { Title } from './Title';
6
6
  import { ViewMore } from './ViewMore';
7
7
  import { searchColorText } from '../../common/integrate';
8
8
  const Reply = (props) => {
9
- const { tab, onMoreViewText, list, pages, isMobileSize, onMoreView, search, listCount, loading } = props;
9
+ const { tab, onMoreViewText, list, pages, isMobileSize, onMoreView, search, listCount, loading, isApp } = props;
10
10
  const [allTabPage, setAllTabPage] = useState(0);
11
11
  const [allTabList, setAllTabList] = useState([]);
12
12
  const getAllPage = () => {
@@ -40,11 +40,13 @@ const Reply = (props) => {
40
40
  <Title title={'고객후기'} tab={tab} type={'reply'} onClick={str => onMoreViewText(str)} count={listCount.reply}/>
41
41
  <div className={'mb-9 mt-8 grid gap-[18px] sm:grid-cols-2'}>
42
42
  {(tab === '전체' ? allTabList : list.replyList).map((item, index) => {
43
- return (<Link href={(item.crime_code != props.crime_code
44
- ? 'https://www.daeryunlaw.com'
45
- : '') +
46
- '/reply/' +
47
- item.id} target={item.crime_code === props.crime_code ? '' : '_blank'} key={'reply' + item.id} className={'flex h-[280px] flex-col border-[5px] border-solid border-[#EAEAEA] p-7 max-xs:h-[190px] max-xs:p-4 sm:p-8 '}>
43
+ return (<Link href={{
44
+ pathname: (item.crime_code != props.crime_code
45
+ ? `https://${isApp ? 'mysjkp' : 'www'}.daeryunlaw.com`
46
+ : '') +
47
+ '/reply/' +
48
+ item.id
49
+ }} target={item.crime_code === props.crime_code ? '' : '_blank'} key={'reply' + item.id} className={'flex h-[280px] flex-col border-[5px] border-solid border-[#EAEAEA] p-7 max-xs:h-[190px] max-xs:p-4 sm:p-8 '}>
48
50
  <p className={'h-[70px] text-[20px] font-[800] max-xs:h-[60px] max-xs:text-[18px] sm:text-[22px]'}>
49
51
  <span className={'text-[#285FA7]'}>{item.etc4} </span>
50
52
  <br className={'block sm:hidden'}/>
@@ -27,8 +27,9 @@ const Reply = (props: {
27
27
  trend: number;
28
28
  };
29
29
  loading: boolean;
30
+ isApp: boolean;
30
31
  }) => {
31
- const { tab, onMoreViewText, list, pages, isMobileSize, onMoreView, search, listCount, loading } = props;
32
+ const { tab, onMoreViewText, list, pages, isMobileSize, onMoreView, search, listCount, loading, isApp } = props;
32
33
 
33
34
  const [allTabPage, setAllTabPage] = useState<number>(0);
34
35
  const [allTabList, setAllTabList] = useState<IReplyTypes[]>([]);
@@ -84,13 +85,14 @@ const Reply = (props: {
84
85
  {(tab === '전체' ? allTabList : list.replyList).map((item, index) => {
85
86
  return (
86
87
  <Link
87
- href={
88
- (item.crime_code != props.crime_code
89
- ? 'https://www.daeryunlaw.com'
90
- : '') +
91
- '/reply/' +
92
- item.id
93
- }
88
+ href={{
89
+ pathname:
90
+ (item.crime_code != props.crime_code
91
+ ? `https://${isApp ? 'mysjkp' : 'www'}.daeryunlaw.com`
92
+ : '') +
93
+ '/reply/' +
94
+ item.id
95
+ }}
94
96
  target={item.crime_code === props.crime_code ? '' : '_blank'}
95
97
  key={'reply' + item.id}
96
98
  className={
@@ -20,9 +20,11 @@ import Reply from './Reply';
20
20
  import Lawyer from './Lawyer';
21
21
  import useBrowser from '../../hook/useBrowser';
22
22
  import Trend from './Trend';
23
+ import useIsApp from '../../hook/useIsApp';
23
24
  const SearchData = ({ list: propsList, totalCount, listCount, center_code, crime_code }) => {
24
25
  const { width } = useBrowser(true);
25
26
  const router = useRouter();
27
+ const isApp = useIsApp();
26
28
  const [tab, setTab] = useState('');
27
29
  const [search, setSearch] = useState('');
28
30
  const [list, setList] = useState(searchInit.list);
@@ -81,14 +83,14 @@ const SearchData = ({ list: propsList, totalCount, listCount, center_code, crime
81
83
  }, [width, isMobileSize]);
82
84
  return (<span id={'integrate-result'}>
83
85
  {tab === '전체' && totalCount < 1 ? (<NoResult />) : (<>
84
- <Field isMobileSize={isMobileSize} listCount={listCount} center_code={center_code} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('fieldList', 'field')} search={search} loading={loading.field}/>
85
- <Success isMobileSize={isMobileSize} center_code={center_code} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('successList', 'success')} search={search} loading={loading.success} listCount={listCount}/>
86
- <LawInfo isMobileSize={isMobileSize} center_code={center_code} tab={tab} list={list} pages={pages} listCount={listCount} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('infoList', 'info')} search={search} loading={loading.info}/>
86
+ <Field isMobileSize={isMobileSize} listCount={listCount} center_code={center_code} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('fieldList', 'field')} search={search} loading={loading.field} isApp={isApp}/>
87
+ <Success isMobileSize={isMobileSize} center_code={center_code} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('successList', 'success')} search={search} loading={loading.success} listCount={listCount} isApp={isApp}/>
88
+ <LawInfo isMobileSize={isMobileSize} center_code={center_code} tab={tab} list={list} pages={pages} listCount={listCount} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('infoList', 'info')} search={search} loading={loading.info} isApp={isApp}/>
87
89
  <Lawyer isMobileSize={isMobileSize} tab={tab} listCount={listCount} list={list} pages={pages} center_code={center_code} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('lawyerList', 'lawyer')} loading={loading.lawyer}/>
88
- <Reply isMobileSize={isMobileSize} crime_code={crime_code} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('replyList', 'reply')} search={search} loading={loading.reply} listCount={listCount}/>
89
- <Broadcast isMobileSize={isMobileSize} listCount={listCount} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('broadcastList', 'broadcast')} search={search} loading={loading.broadcast}/>
90
+ <Reply isMobileSize={isMobileSize} crime_code={crime_code} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('replyList', 'reply')} search={search} loading={loading.reply} listCount={listCount} isApp={isApp}/>
91
+ <Broadcast isMobileSize={isMobileSize} listCount={listCount} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('broadcastList', 'broadcast')} search={search} loading={loading.broadcast} isApp={isApp}/>
90
92
 
91
- <Trend isMobileSize={isMobileSize} listCount={listCount} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('trendList', 'trend')} search={search} loading={loading.trend}/>
93
+ <Trend isMobileSize={isMobileSize} listCount={listCount} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => loadMore('trendList', 'trend')} search={search} loading={loading.trend} isApp={isApp}/>
92
94
 
93
95
  {/*<Map*/}
94
96
  {/* isMobileSize={isMobileSize}*/}
@@ -13,6 +13,7 @@ import Map from './Map';
13
13
  import Lawyer from './Lawyer';
14
14
  import useBrowser from '../../hook/useBrowser';
15
15
  import Trend from './Trend';
16
+ import useIsApp from '../../hook/useIsApp';
16
17
 
17
18
  const SearchData = ({
18
19
  list: propsList,
@@ -37,6 +38,7 @@ const SearchData = ({
37
38
  }) => {
38
39
  const { width } = useBrowser(true);
39
40
  const router = useRouter();
41
+ const isApp = useIsApp();
40
42
  const [tab, setTab] = useState<string>('');
41
43
  const [search, setSearch] = useState<string>('');
42
44
  const [list, setList] = useState<IListTypes>(searchInit.list);
@@ -122,6 +124,7 @@ const SearchData = ({
122
124
  onMoreView={() => loadMore('fieldList', 'field')}
123
125
  search={search}
124
126
  loading={loading.field}
127
+ isApp={isApp}
125
128
  />
126
129
  <Success
127
130
  isMobileSize={isMobileSize}
@@ -134,6 +137,7 @@ const SearchData = ({
134
137
  search={search}
135
138
  loading={loading.success}
136
139
  listCount={listCount}
140
+ isApp={isApp}
137
141
  />
138
142
  <LawInfo
139
143
  isMobileSize={isMobileSize}
@@ -146,6 +150,7 @@ const SearchData = ({
146
150
  onMoreView={() => loadMore('infoList', 'info')}
147
151
  search={search}
148
152
  loading={loading.info}
153
+ isApp={isApp}
149
154
  />
150
155
  <Lawyer
151
156
  isMobileSize={isMobileSize}
@@ -169,6 +174,7 @@ const SearchData = ({
169
174
  search={search}
170
175
  loading={loading.reply}
171
176
  listCount={listCount}
177
+ isApp={isApp}
172
178
  />
173
179
  <Broadcast
174
180
  isMobileSize={isMobileSize}
@@ -180,6 +186,7 @@ const SearchData = ({
180
186
  onMoreView={() => loadMore('broadcastList', 'broadcast')}
181
187
  search={search}
182
188
  loading={loading.broadcast}
189
+ isApp={isApp}
183
190
  />
184
191
 
185
192
  <Trend
@@ -192,6 +199,7 @@ const SearchData = ({
192
199
  onMoreView={() => loadMore('trendList', 'trend')}
193
200
  search={search}
194
201
  loading={loading.trend}
202
+ isApp={isApp}
195
203
  />
196
204
 
197
205
  {/*<Map*/}
@@ -19,5 +19,6 @@ declare const Success: (props: {
19
19
  trend: number;
20
20
  };
21
21
  loading: boolean;
22
+ isApp: boolean;
22
23
  }) => React.JSX.Element;
23
24
  export default Success;
@@ -6,7 +6,7 @@ import { ViewMore } from './ViewMore';
6
6
  import { searchColorText } from '../../common/integrate';
7
7
  const Success = (props) => {
8
8
  var _a;
9
- const { tab, onMoreViewText, list, pages, onMoreView, search, listCount, isMobileSize, loading } = props;
9
+ const { tab, onMoreViewText, list, pages, onMoreView, search, listCount, isMobileSize, loading, isApp } = props;
10
10
  const [allTabPage, setAllTabPage] = useState(0);
11
11
  const [allTabList, setAllTabList] = useState([]);
12
12
  const getAllPage = () => {
@@ -41,9 +41,12 @@ const Success = (props) => {
41
41
  {((_a = list.successList) === null || _a === void 0 ? void 0 : _a.length) !== 0 && (<div className={'mb-9 mt-9 grid gap-[30px] sm:grid-cols-2'}>
42
42
  {(tab === '전체' ? allTabList : list.successList).map((item, index) => {
43
43
  var _a, _b;
44
- return (<Link href={!item.center_code.includes('OF')
45
- ? item.pathname + 'success_new/' + item.id
46
- : `https://${item.office_pathname}/success_new/${item.id}`} target={item.center_code === props.center_code ? '' : '_blank'} className={' overflow-hidden border-[2px] border-solid border-[#ebebebcc]'} key={item.id + item.center_code}>
44
+ return (<Link href={{
45
+ pathname: !item.center_code.includes('OF')
46
+ ? item.pathname + 'success_new/' + item.id
47
+ : `https://${item.office_pathname}/success_new/${item.id}`,
48
+ query: Object.assign({}, (isApp ? { isApp: true } : {}))
49
+ }} target={item.center_code === props.center_code ? '' : '_blank'} className={' overflow-hidden border-[2px] border-solid border-[#ebebebcc]'} key={item.id + item.center_code}>
47
50
  <p className={`ml-8 inline-block w-auto max-w-[70%] bg-[#2960A7] p-2 px-7 text-center text-[18px] font-[800] text-[#fff] max-lg:text-[16px] max-sm:text-[15px] max-2xs:text-[14px]`}>
48
51
  <span className={'line-clamp-1'}>{item.sub}</span>
49
52
  </p>