@daeryun/dr_components 0.4.39 → 0.4.41
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/components/page/Integrate/Lawyer.d.ts +36 -0
- package/dist/components/page/Integrate/Lawyer.jsx +175 -0
- package/dist/components/page/Integrate/Lawyer.tsx +394 -0
- package/dist/components/page/Integrate/MenuTab.tsx +0 -1
- package/dist/components/page/Integrate/SearchData.jsx +13 -24
- package/dist/components/page/Integrate/SearchData.tsx +26 -24
- package/dist/components/page/Integrate/index.module.css +915 -0
- package/dist/styles/globals.css +131 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
'use client';
|
|
1
2
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
3
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
4
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -11,13 +12,13 @@ import React, { useState, useEffect } from 'react';
|
|
|
11
12
|
import { NoResult } from './NoResult';
|
|
12
13
|
import { searchInit } from './integrateType';
|
|
13
14
|
import { useRouter } from 'next/router';
|
|
14
|
-
// import Lawyer from './Lawyer';
|
|
15
15
|
import Field from './Field';
|
|
16
16
|
import Success from './Success';
|
|
17
17
|
import LawInfo from './LawInfo';
|
|
18
18
|
import Broadcast from './Broadcast';
|
|
19
19
|
import Reply from './Reply';
|
|
20
20
|
import Map from './Map';
|
|
21
|
+
import Lawyer from './Lawyer';
|
|
21
22
|
const SearchData = ({ list: propsList, totalCount, listCount, center_code, crime_code }) => {
|
|
22
23
|
const router = useRouter();
|
|
23
24
|
const [tab, setTab] = useState('');
|
|
@@ -79,29 +80,17 @@ const SearchData = ({ list: propsList, totalCount, listCount, center_code, crime
|
|
|
79
80
|
});
|
|
80
81
|
}} search={search}/>
|
|
81
82
|
|
|
82
|
-
{
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
{/* page: pages.lawyerList,*/}
|
|
94
|
-
{/* type: 'lawyer',*/}
|
|
95
|
-
{/* search: search,*/}
|
|
96
|
-
{/* center_code: center_code,*/}
|
|
97
|
-
{/* crime_code: crime_code*/}
|
|
98
|
-
{/* },*/}
|
|
99
|
-
{/* (obj: any) => {*/}
|
|
100
|
-
{/* handleMoreView('lawyerList', obj.data.list.lawyerList);*/}
|
|
101
|
-
{/* }*/}
|
|
102
|
-
{/* );*/}
|
|
103
|
-
{/* }}*/}
|
|
104
|
-
{/*/>*/}
|
|
83
|
+
<Lawyer tab={tab} listCount={listCount} list={list} pages={pages} center_code={center_code} onMoreViewText={handleMoreViewText} onMoreView={() => {
|
|
84
|
+
paramFetch(`api/integrate/list`, {
|
|
85
|
+
page: pages.lawyerList,
|
|
86
|
+
type: 'lawyer',
|
|
87
|
+
search: search,
|
|
88
|
+
center_code: center_code,
|
|
89
|
+
crime_code: crime_code
|
|
90
|
+
}, (obj) => {
|
|
91
|
+
handleMoreView('lawyerList', obj.data.list.lawyerList);
|
|
92
|
+
});
|
|
93
|
+
}}/>
|
|
105
94
|
|
|
106
95
|
<Broadcast listCount={listCount} tab={tab} list={list} pages={pages} onMoreViewText={handleMoreViewText} onMoreView={() => {
|
|
107
96
|
paramFetch('/api/integrate/list', {
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
1
3
|
import React, { useState, useEffect } from 'react';
|
|
2
4
|
import { NoResult } from './NoResult';
|
|
3
5
|
import { IListPagesType, IListTypes, searchInit } from './integrateType';
|
|
4
6
|
import { useRouter } from 'next/router';
|
|
5
|
-
// import Lawyer from './Lawyer';
|
|
6
7
|
import Field from './Field';
|
|
7
8
|
import Success from './Success';
|
|
8
9
|
import LawInfo from './LawInfo';
|
|
9
10
|
import Broadcast from './Broadcast';
|
|
10
11
|
import Reply from './Reply';
|
|
11
12
|
import Map from './Map';
|
|
13
|
+
import Lawyer from './Lawyer';
|
|
12
14
|
|
|
13
15
|
const SearchData = ({
|
|
14
16
|
list: propsList,
|
|
@@ -139,29 +141,29 @@ const SearchData = ({
|
|
|
139
141
|
search={search}
|
|
140
142
|
/>
|
|
141
143
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
144
|
+
<Lawyer
|
|
145
|
+
tab={tab}
|
|
146
|
+
listCount={listCount}
|
|
147
|
+
list={list}
|
|
148
|
+
pages={pages}
|
|
149
|
+
center_code={center_code}
|
|
150
|
+
onMoreViewText={handleMoreViewText}
|
|
151
|
+
onMoreView={() => {
|
|
152
|
+
paramFetch(
|
|
153
|
+
`api/integrate/list`,
|
|
154
|
+
{
|
|
155
|
+
page: pages.lawyerList,
|
|
156
|
+
type: 'lawyer',
|
|
157
|
+
search: search,
|
|
158
|
+
center_code: center_code,
|
|
159
|
+
crime_code: crime_code
|
|
160
|
+
},
|
|
161
|
+
(obj: any) => {
|
|
162
|
+
handleMoreView('lawyerList', obj.data.list.lawyerList);
|
|
163
|
+
}
|
|
164
|
+
);
|
|
165
|
+
}}
|
|
166
|
+
/>
|
|
165
167
|
|
|
166
168
|
<Broadcast
|
|
167
169
|
listCount={listCount}
|