@daeryun/dr_components 0.8.63 → 0.8.64
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/FieldNew/FieldNew.jsx +14 -10
- package/dist/components/page/FieldNew/FieldNew.tsx +36 -26
- package/dist/components/page/LawInfoNew/LawInfoNew.jsx +14 -7
- package/dist/components/page/LawInfoNew/LawInfoNew.tsx +34 -23
- package/dist/components/page/LawInfoNew/LawInfoNewView.jsx +14 -7
- package/dist/components/page/LawInfoNew/LawInfoNewView.tsx +34 -23
- package/dist/components/page/SuccessNew/SuccessNew.jsx +14 -7
- package/dist/components/page/SuccessNew/SuccessNew.tsx +34 -21
- package/dist/components/page/SuccessNew/SuccessNewView.jsx +18 -1
- package/dist/components/page/SuccessNew/SuccessNewView.tsx +51 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -114,20 +114,24 @@ const FieldNew = ({ data, tel }) => {
|
|
|
114
114
|
{template
|
|
115
115
|
.filter(t => t.parent === h2Template.idx)
|
|
116
116
|
.map((h3Template, h3Index) => {
|
|
117
|
+
const refer_is_use = h3Template.reference_is_use;
|
|
118
|
+
const refer_length = referenceLinkList.length;
|
|
119
|
+
const refer_content_length = referenceLinkList.filter(i => i.tag_idx === h3Template.idx).length;
|
|
120
|
+
const news_is_use = h3Template.news_is_use;
|
|
121
|
+
const news_length = newsLinkList.length;
|
|
122
|
+
const news_content_length = newsLinkList.filter(i => i.tag_idx === h3Template.idx).length;
|
|
117
123
|
return (<>
|
|
118
124
|
<H3Contents h3Template={h3Template} key={'h3영역' + h3Template.idx}/>
|
|
119
|
-
{(
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
125
|
+
{(refer_is_use &&
|
|
126
|
+
refer_length > 0 &&
|
|
127
|
+
refer_content_length > 0) ||
|
|
128
|
+
(news_is_use &&
|
|
129
|
+
news_length > 0 &&
|
|
130
|
+
news_content_length > 0) ? (<span className={'mb-[44px] flex flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
|
|
123
131
|
//520px
|
|
124
132
|
'max-2sm:gap-[16px]'}>
|
|
125
|
-
{h3Template.
|
|
126
|
-
|
|
127
|
-
h3Template.idx)}/>)}
|
|
128
|
-
{h3Template.news_is_use &&
|
|
129
|
-
newsLinkList.length > 0 && (<SeoAdditionalLink type={'관련기사'} linkList={newsLinkList.filter(i => i.tag_idx ===
|
|
130
|
-
h3Template.idx)}/>)}
|
|
133
|
+
{refer_is_use && refer_length > 0 && (<SeoAdditionalLink type={'더보기'} linkList={referenceLinkList.filter(i => i.tag_idx === h3Template.idx)}/>)}
|
|
134
|
+
{news_is_use && news_length > 0 && (<SeoAdditionalLink type={'관련기사'} linkList={newsLinkList.filter(i => i.tag_idx === h3Template.idx)}/>)}
|
|
131
135
|
</span>) : (<></>)}
|
|
132
136
|
</>);
|
|
133
137
|
})}
|
|
@@ -170,16 +170,30 @@ const FieldNew = ({ data, tel }: IFieldNewPageTypes) => {
|
|
|
170
170
|
{template
|
|
171
171
|
.filter(t => t.parent === h2Template.idx)
|
|
172
172
|
.map((h3Template, h3Index) => {
|
|
173
|
+
const refer_is_use = h3Template.reference_is_use;
|
|
174
|
+
const refer_length = referenceLinkList.length;
|
|
175
|
+
const refer_content_length = referenceLinkList.filter(
|
|
176
|
+
i => i.tag_idx === h3Template.idx
|
|
177
|
+
).length;
|
|
178
|
+
|
|
179
|
+
const news_is_use = h3Template.news_is_use;
|
|
180
|
+
const news_length = newsLinkList.length;
|
|
181
|
+
const news_content_length = newsLinkList.filter(
|
|
182
|
+
i => i.tag_idx === h3Template.idx
|
|
183
|
+
).length;
|
|
184
|
+
|
|
173
185
|
return (
|
|
174
186
|
<>
|
|
175
187
|
<H3Contents
|
|
176
188
|
h3Template={h3Template}
|
|
177
189
|
key={'h3영역' + h3Template.idx}
|
|
178
190
|
/>
|
|
179
|
-
{(
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
191
|
+
{(refer_is_use &&
|
|
192
|
+
refer_length > 0 &&
|
|
193
|
+
refer_content_length > 0) ||
|
|
194
|
+
(news_is_use &&
|
|
195
|
+
news_length > 0 &&
|
|
196
|
+
news_content_length > 0) ? (
|
|
183
197
|
<span
|
|
184
198
|
className={
|
|
185
199
|
'mb-[44px] flex flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
|
|
@@ -187,28 +201,24 @@ const FieldNew = ({ data, tel }: IFieldNewPageTypes) => {
|
|
|
187
201
|
'max-2sm:gap-[16px]'
|
|
188
202
|
}
|
|
189
203
|
>
|
|
190
|
-
{
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
i
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
h3Template.idx
|
|
209
|
-
)}
|
|
210
|
-
/>
|
|
211
|
-
)}
|
|
204
|
+
{refer_is_use && refer_length > 0 && (
|
|
205
|
+
<SeoAdditionalLink
|
|
206
|
+
type={'더보기'}
|
|
207
|
+
linkList={referenceLinkList.filter(
|
|
208
|
+
i =>
|
|
209
|
+
i.tag_idx === h3Template.idx
|
|
210
|
+
)}
|
|
211
|
+
/>
|
|
212
|
+
)}
|
|
213
|
+
{news_is_use && news_length > 0 && (
|
|
214
|
+
<SeoAdditionalLink
|
|
215
|
+
type={'관련기사'}
|
|
216
|
+
linkList={newsLinkList.filter(
|
|
217
|
+
i =>
|
|
218
|
+
i.tag_idx === h3Template.idx
|
|
219
|
+
)}
|
|
220
|
+
/>
|
|
221
|
+
)}
|
|
212
222
|
</span>
|
|
213
223
|
) : (
|
|
214
224
|
<></>
|
|
@@ -116,17 +116,24 @@ const LawInfoNew = ({ data, tel }) => {
|
|
|
116
116
|
{template
|
|
117
117
|
.filter(t => t.parent === h2Template.idx)
|
|
118
118
|
.map((h3Template, h3Index) => {
|
|
119
|
+
const refer_is_use = h3Template.reference_is_use;
|
|
120
|
+
const refer_length = referenceLinkList.length;
|
|
121
|
+
const refer_content_length = referenceLinkList.filter(i => i.tag_idx === h3Template.idx).length;
|
|
122
|
+
const news_is_use = h3Template.news_is_use;
|
|
123
|
+
const news_length = newsLinkList.length;
|
|
124
|
+
const news_content_length = newsLinkList.filter(i => i.tag_idx === h3Template.idx).length;
|
|
119
125
|
return (<>
|
|
120
126
|
<H3Contents h3Template={h3Template} key={'h3영역' + h3Template.idx}/>
|
|
121
|
-
{(
|
|
122
|
-
|
|
123
|
-
|
|
127
|
+
{(refer_is_use &&
|
|
128
|
+
refer_length > 0 &&
|
|
129
|
+
refer_content_length > 0) ||
|
|
130
|
+
(news_is_use &&
|
|
131
|
+
news_length > 0 &&
|
|
132
|
+
news_content_length > 0) ? (<span className={'mb-[44px] flex flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
|
|
124
133
|
//520px
|
|
125
134
|
'max-2sm:gap-[16px]'}>
|
|
126
|
-
{h3Template.
|
|
127
|
-
|
|
128
|
-
{h3Template.news_is_use &&
|
|
129
|
-
newsLinkList.length > 0 && (<SeoAdditionalLink type={'관련기사'} linkList={newsLinkList.filter(i => i.tag_idx === h3Template.idx)}/>)}
|
|
135
|
+
{refer_is_use && refer_length > 0 && (<SeoAdditionalLink type={'더보기'} linkList={referenceLinkList.filter(i => i.tag_idx === h3Template.idx)}/>)}
|
|
136
|
+
{news_is_use && news_length > 0 && (<SeoAdditionalLink type={'관련기사'} linkList={newsLinkList.filter(i => i.tag_idx === h3Template.idx)}/>)}
|
|
130
137
|
</span>) : (<></>)}
|
|
131
138
|
</>);
|
|
132
139
|
})}
|
|
@@ -178,15 +178,30 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
|
|
|
178
178
|
{template
|
|
179
179
|
.filter(t => t.parent === h2Template.idx)
|
|
180
180
|
.map((h3Template, h3Index) => {
|
|
181
|
+
const refer_is_use = h3Template.reference_is_use;
|
|
182
|
+
const refer_length = referenceLinkList.length;
|
|
183
|
+
const refer_content_length = referenceLinkList.filter(
|
|
184
|
+
i => i.tag_idx === h3Template.idx
|
|
185
|
+
).length;
|
|
186
|
+
|
|
187
|
+
const news_is_use = h3Template.news_is_use;
|
|
188
|
+
const news_length = newsLinkList.length;
|
|
189
|
+
const news_content_length = newsLinkList.filter(
|
|
190
|
+
i => i.tag_idx === h3Template.idx
|
|
191
|
+
).length;
|
|
192
|
+
|
|
181
193
|
return (
|
|
182
194
|
<>
|
|
183
195
|
<H3Contents
|
|
184
196
|
h3Template={h3Template}
|
|
185
197
|
key={'h3영역' + h3Template.idx}
|
|
186
198
|
/>
|
|
187
|
-
{(
|
|
188
|
-
|
|
189
|
-
|
|
199
|
+
{(refer_is_use &&
|
|
200
|
+
refer_length > 0 &&
|
|
201
|
+
refer_content_length > 0) ||
|
|
202
|
+
(news_is_use &&
|
|
203
|
+
news_length > 0 &&
|
|
204
|
+
news_content_length > 0) ? (
|
|
190
205
|
<span
|
|
191
206
|
className={
|
|
192
207
|
'mb-[44px] flex flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
|
|
@@ -194,26 +209,22 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
|
|
|
194
209
|
'max-2sm:gap-[16px]'
|
|
195
210
|
}
|
|
196
211
|
>
|
|
197
|
-
{
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
i.tag_idx === h3Template.idx
|
|
214
|
-
)}
|
|
215
|
-
/>
|
|
216
|
-
)}
|
|
212
|
+
{refer_is_use && refer_length > 0 && (
|
|
213
|
+
<SeoAdditionalLink
|
|
214
|
+
type={'더보기'}
|
|
215
|
+
linkList={referenceLinkList.filter(
|
|
216
|
+
i => i.tag_idx === h3Template.idx
|
|
217
|
+
)}
|
|
218
|
+
/>
|
|
219
|
+
)}
|
|
220
|
+
{news_is_use && news_length > 0 && (
|
|
221
|
+
<SeoAdditionalLink
|
|
222
|
+
type={'관련기사'}
|
|
223
|
+
linkList={newsLinkList.filter(
|
|
224
|
+
i => i.tag_idx === h3Template.idx
|
|
225
|
+
)}
|
|
226
|
+
/>
|
|
227
|
+
)}
|
|
217
228
|
</span>
|
|
218
229
|
) : (
|
|
219
230
|
<></>
|
|
@@ -101,17 +101,24 @@ const LawInfoNewView = ({ data, tel }) => {
|
|
|
101
101
|
{template
|
|
102
102
|
.filter(t => t.parent === h2Template.idx)
|
|
103
103
|
.map((h3Template, h3Index) => {
|
|
104
|
+
const refer_is_use = h3Template.reference_is_use;
|
|
105
|
+
const refer_length = referenceLinkList.length;
|
|
106
|
+
const refer_content_length = referenceLinkList.filter(i => i.tag_idx === h3Template.idx).length;
|
|
107
|
+
const news_is_use = h3Template.news_is_use;
|
|
108
|
+
const news_length = newsLinkList.length;
|
|
109
|
+
const news_content_length = newsLinkList.filter(i => i.tag_idx === h3Template.idx).length;
|
|
104
110
|
return (<>
|
|
105
111
|
<H3Contents h3Template={h3Template} key={'h3영역' + h3Template.idx}/>
|
|
106
|
-
{(
|
|
107
|
-
|
|
108
|
-
|
|
112
|
+
{(refer_is_use &&
|
|
113
|
+
refer_length > 0 &&
|
|
114
|
+
refer_content_length > 0) ||
|
|
115
|
+
(news_is_use &&
|
|
116
|
+
news_length > 0 &&
|
|
117
|
+
news_content_length > 0) ? (<span className={'mb-[44px] flex flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
|
|
109
118
|
//520px
|
|
110
119
|
'max-2sm:gap-[16px]'}>
|
|
111
|
-
{h3Template.
|
|
112
|
-
|
|
113
|
-
{h3Template.news_is_use &&
|
|
114
|
-
newsLinkList.length > 0 && (<SeoAdditionalLink type={'관련기사'} linkList={newsLinkList.filter(i => i.tag_idx === h3Template.idx)}/>)}
|
|
120
|
+
{refer_is_use && refer_length > 0 && (<SeoAdditionalLink type={'더보기'} linkList={referenceLinkList.filter(i => i.tag_idx === h3Template.idx)}/>)}
|
|
121
|
+
{news_is_use && news_length > 0 && (<SeoAdditionalLink type={'관련기사'} linkList={newsLinkList.filter(i => i.tag_idx === h3Template.idx)}/>)}
|
|
115
122
|
</span>) : (<></>)}
|
|
116
123
|
</>);
|
|
117
124
|
})}
|
|
@@ -157,15 +157,30 @@ const LawInfoNewView = ({ data, tel }: ILawInfoNewPageTypes) => {
|
|
|
157
157
|
{template
|
|
158
158
|
.filter(t => t.parent === h2Template.idx)
|
|
159
159
|
.map((h3Template, h3Index) => {
|
|
160
|
+
const refer_is_use = h3Template.reference_is_use;
|
|
161
|
+
const refer_length = referenceLinkList.length;
|
|
162
|
+
const refer_content_length = referenceLinkList.filter(
|
|
163
|
+
i => i.tag_idx === h3Template.idx
|
|
164
|
+
).length;
|
|
165
|
+
|
|
166
|
+
const news_is_use = h3Template.news_is_use;
|
|
167
|
+
const news_length = newsLinkList.length;
|
|
168
|
+
const news_content_length = newsLinkList.filter(
|
|
169
|
+
i => i.tag_idx === h3Template.idx
|
|
170
|
+
).length;
|
|
171
|
+
|
|
160
172
|
return (
|
|
161
173
|
<>
|
|
162
174
|
<H3Contents
|
|
163
175
|
h3Template={h3Template}
|
|
164
176
|
key={'h3영역' + h3Template.idx}
|
|
165
177
|
/>
|
|
166
|
-
{(
|
|
167
|
-
|
|
168
|
-
|
|
178
|
+
{(refer_is_use &&
|
|
179
|
+
refer_length > 0 &&
|
|
180
|
+
refer_content_length > 0) ||
|
|
181
|
+
(news_is_use &&
|
|
182
|
+
news_length > 0 &&
|
|
183
|
+
news_content_length > 0) ? (
|
|
169
184
|
<span
|
|
170
185
|
className={
|
|
171
186
|
'mb-[44px] flex flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
|
|
@@ -173,26 +188,22 @@ const LawInfoNewView = ({ data, tel }: ILawInfoNewPageTypes) => {
|
|
|
173
188
|
'max-2sm:gap-[16px]'
|
|
174
189
|
}
|
|
175
190
|
>
|
|
176
|
-
{
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
i.tag_idx === h3Template.idx
|
|
193
|
-
)}
|
|
194
|
-
/>
|
|
195
|
-
)}
|
|
191
|
+
{refer_is_use && refer_length > 0 && (
|
|
192
|
+
<SeoAdditionalLink
|
|
193
|
+
type={'더보기'}
|
|
194
|
+
linkList={referenceLinkList.filter(
|
|
195
|
+
i => i.tag_idx === h3Template.idx
|
|
196
|
+
)}
|
|
197
|
+
/>
|
|
198
|
+
)}
|
|
199
|
+
{news_is_use && news_length > 0 && (
|
|
200
|
+
<SeoAdditionalLink
|
|
201
|
+
type={'관련기사'}
|
|
202
|
+
linkList={newsLinkList.filter(
|
|
203
|
+
i => i.tag_idx === h3Template.idx
|
|
204
|
+
)}
|
|
205
|
+
/>
|
|
206
|
+
)}
|
|
196
207
|
</span>
|
|
197
208
|
) : (
|
|
198
209
|
<></>
|
|
@@ -128,17 +128,24 @@ const SuccessNew = ({ data, tel }) => {
|
|
|
128
128
|
{template
|
|
129
129
|
.filter(t => t.parent === h2Template.idx)
|
|
130
130
|
.map((h3Template, h3Index) => {
|
|
131
|
+
const refer_is_use = h3Template.reference_is_use;
|
|
132
|
+
const refer_length = referenceLinkList.length;
|
|
133
|
+
const refer_content_length = referenceLinkList.filter(i => i.tag_idx === h3Template.idx).length;
|
|
134
|
+
const news_is_use = h3Template.news_is_use;
|
|
135
|
+
const news_length = newsLinkList.length;
|
|
136
|
+
const news_content_length = newsLinkList.filter(i => i.tag_idx === h3Template.idx).length;
|
|
131
137
|
return (<>
|
|
132
138
|
<H3Contents h3Template={h3Template} key={'h3영역' + h3Template.idx}/>
|
|
133
|
-
{(
|
|
134
|
-
|
|
135
|
-
|
|
139
|
+
{(refer_is_use &&
|
|
140
|
+
refer_length > 0 &&
|
|
141
|
+
refer_content_length > 0) ||
|
|
142
|
+
(news_is_use &&
|
|
143
|
+
news_length > 0 &&
|
|
144
|
+
news_content_length > 0) ? (<span className={'mb-[44px] flex flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
|
|
136
145
|
//520px
|
|
137
146
|
'max-2sm:gap-[16px]'}>
|
|
138
|
-
{h3Template.
|
|
139
|
-
|
|
140
|
-
{h3Template.news_is_use &&
|
|
141
|
-
newsLinkList.length > 0 && (<SeoAdditionalLink type={'관련기사'} linkList={newsLinkList.filter(i => i.tag_idx === h3Template.idx)}/>)}
|
|
147
|
+
{refer_is_use && refer_length > 0 && (<SeoAdditionalLink type={'더보기'} linkList={referenceLinkList.filter(i => i.tag_idx === h3Template.idx)}/>)}
|
|
148
|
+
{news_is_use && news_length > 0 && (<SeoAdditionalLink type={'관련기사'} linkList={newsLinkList.filter(i => i.tag_idx === h3Template.idx)}/>)}
|
|
142
149
|
</span>) : (<></>)}
|
|
143
150
|
</>);
|
|
144
151
|
})}
|
|
@@ -189,15 +189,30 @@ const SuccessNew = ({ data, tel }: ISuccessNewPageTypes) => {
|
|
|
189
189
|
{template
|
|
190
190
|
.filter(t => t.parent === h2Template.idx)
|
|
191
191
|
.map((h3Template, h3Index) => {
|
|
192
|
+
const refer_is_use = h3Template.reference_is_use;
|
|
193
|
+
const refer_length = referenceLinkList.length;
|
|
194
|
+
const refer_content_length = referenceLinkList.filter(
|
|
195
|
+
i => i.tag_idx === h3Template.idx
|
|
196
|
+
).length;
|
|
197
|
+
|
|
198
|
+
const news_is_use = h3Template.news_is_use;
|
|
199
|
+
const news_length = newsLinkList.length;
|
|
200
|
+
const news_content_length = newsLinkList.filter(
|
|
201
|
+
i => i.tag_idx === h3Template.idx
|
|
202
|
+
).length;
|
|
203
|
+
|
|
192
204
|
return (
|
|
193
205
|
<>
|
|
194
206
|
<H3Contents
|
|
195
207
|
h3Template={h3Template}
|
|
196
208
|
key={'h3영역' + h3Template.idx}
|
|
197
209
|
/>
|
|
198
|
-
{(
|
|
199
|
-
|
|
200
|
-
|
|
210
|
+
{(refer_is_use &&
|
|
211
|
+
refer_length > 0 &&
|
|
212
|
+
refer_content_length > 0) ||
|
|
213
|
+
(news_is_use &&
|
|
214
|
+
news_length > 0 &&
|
|
215
|
+
news_content_length > 0) ? (
|
|
201
216
|
<span
|
|
202
217
|
className={
|
|
203
218
|
'mb-[44px] flex flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
|
|
@@ -205,24 +220,22 @@ const SuccessNew = ({ data, tel }: ISuccessNewPageTypes) => {
|
|
|
205
220
|
'max-2sm:gap-[16px]'
|
|
206
221
|
}
|
|
207
222
|
>
|
|
208
|
-
{
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
/>
|
|
225
|
-
)}
|
|
223
|
+
{refer_is_use && refer_length > 0 && (
|
|
224
|
+
<SeoAdditionalLink
|
|
225
|
+
type={'더보기'}
|
|
226
|
+
linkList={referenceLinkList.filter(
|
|
227
|
+
i => i.tag_idx === h3Template.idx
|
|
228
|
+
)}
|
|
229
|
+
/>
|
|
230
|
+
)}
|
|
231
|
+
{news_is_use && news_length > 0 && (
|
|
232
|
+
<SeoAdditionalLink
|
|
233
|
+
type={'관련기사'}
|
|
234
|
+
linkList={newsLinkList.filter(
|
|
235
|
+
i => i.tag_idx === h3Template.idx
|
|
236
|
+
)}
|
|
237
|
+
/>
|
|
238
|
+
)}
|
|
226
239
|
</span>
|
|
227
240
|
) : (
|
|
228
241
|
<></>
|
|
@@ -111,7 +111,24 @@ const SuccessNewView = ({ data, tel }) => {
|
|
|
111
111
|
<H2Contents h2Template={h2Template} index={index}/>
|
|
112
112
|
{template
|
|
113
113
|
.filter(t => t.parent === h2Template.idx)
|
|
114
|
-
.map((h3Template, h3Index) =>
|
|
114
|
+
.map((h3Template, h3Index) => {
|
|
115
|
+
const refer_is_use = h3Template.reference_is_use;
|
|
116
|
+
const refer_length = referenceLinkList.length;
|
|
117
|
+
const refer_content_length = referenceLinkList.filter(i => i.tag_idx === h3Template.idx).length;
|
|
118
|
+
const news_is_use = h3Template.news_is_use;
|
|
119
|
+
const news_length = newsLinkList.length;
|
|
120
|
+
const news_content_length = newsLinkList.filter(i => i.tag_idx === h3Template.idx).length;
|
|
121
|
+
return (<>
|
|
122
|
+
<H3Contents h3Template={h3Template} key={'h3영역' + h3Template.idx}/>
|
|
123
|
+
{(refer_is_use && refer_length > 0 && refer_content_length > 0) ||
|
|
124
|
+
(news_is_use && news_length > 0 && news_content_length > 0) ? (<span className={'mb-[44px] flex flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
|
|
125
|
+
//520px
|
|
126
|
+
'max-2sm:gap-[16px]'}>
|
|
127
|
+
{refer_is_use && refer_length > 0 && (<SeoAdditionalLink type={'더보기'} linkList={referenceLinkList.filter(i => i.tag_idx === h3Template.idx)}/>)}
|
|
128
|
+
{news_is_use && news_length > 0 && (<SeoAdditionalLink type={'관련기사'} linkList={newsLinkList.filter(i => i.tag_idx === h3Template.idx)}/>)}
|
|
129
|
+
</span>) : (<></>)}
|
|
130
|
+
</>);
|
|
131
|
+
})}
|
|
115
132
|
<span className="flex flex-col gap-[26px] max-2sm:gap-[16px]">
|
|
116
133
|
{h2Template.reference_is_use && referenceLinkList.length > 0 && (<SeoAdditionalLink type="더보기" linkList={referenceLinkList.filter(i => i.tag_idx === h2Template.idx)}/>)}
|
|
117
134
|
{h2Template.news_is_use && newsLinkList.length > 0 && (<SeoAdditionalLink type="관련기사" linkList={newsLinkList.filter(i => i.tag_idx === h2Template.idx)}/>)}
|
|
@@ -162,9 +162,57 @@ const SuccessNewView = ({ data, tel }: ISuccessNewPageTypes) => {
|
|
|
162
162
|
<H2Contents h2Template={h2Template} index={index} />
|
|
163
163
|
{template
|
|
164
164
|
.filter(t => t.parent === h2Template.idx)
|
|
165
|
-
.map((h3Template, h3Index) =>
|
|
166
|
-
|
|
167
|
-
|
|
165
|
+
.map((h3Template, h3Index) => {
|
|
166
|
+
const refer_is_use = h3Template.reference_is_use;
|
|
167
|
+
const refer_length = referenceLinkList.length;
|
|
168
|
+
const refer_content_length = referenceLinkList.filter(
|
|
169
|
+
i => i.tag_idx === h3Template.idx
|
|
170
|
+
).length;
|
|
171
|
+
|
|
172
|
+
const news_is_use = h3Template.news_is_use;
|
|
173
|
+
const news_length = newsLinkList.length;
|
|
174
|
+
const news_content_length = newsLinkList.filter(
|
|
175
|
+
i => i.tag_idx === h3Template.idx
|
|
176
|
+
).length;
|
|
177
|
+
|
|
178
|
+
return (
|
|
179
|
+
<>
|
|
180
|
+
<H3Contents
|
|
181
|
+
h3Template={h3Template}
|
|
182
|
+
key={'h3영역' + h3Template.idx}
|
|
183
|
+
/>
|
|
184
|
+
{(refer_is_use && refer_length > 0 && refer_content_length > 0) ||
|
|
185
|
+
(news_is_use && news_length > 0 && news_content_length > 0) ? (
|
|
186
|
+
<span
|
|
187
|
+
className={
|
|
188
|
+
'mb-[44px] flex flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
|
|
189
|
+
//520px
|
|
190
|
+
'max-2sm:gap-[16px]'
|
|
191
|
+
}
|
|
192
|
+
>
|
|
193
|
+
{refer_is_use && refer_length > 0 && (
|
|
194
|
+
<SeoAdditionalLink
|
|
195
|
+
type={'더보기'}
|
|
196
|
+
linkList={referenceLinkList.filter(
|
|
197
|
+
i => i.tag_idx === h3Template.idx
|
|
198
|
+
)}
|
|
199
|
+
/>
|
|
200
|
+
)}
|
|
201
|
+
{news_is_use && news_length > 0 && (
|
|
202
|
+
<SeoAdditionalLink
|
|
203
|
+
type={'관련기사'}
|
|
204
|
+
linkList={newsLinkList.filter(
|
|
205
|
+
i => i.tag_idx === h3Template.idx
|
|
206
|
+
)}
|
|
207
|
+
/>
|
|
208
|
+
)}
|
|
209
|
+
</span>
|
|
210
|
+
) : (
|
|
211
|
+
<></>
|
|
212
|
+
)}
|
|
213
|
+
</>
|
|
214
|
+
);
|
|
215
|
+
})}
|
|
168
216
|
<span className="flex flex-col gap-[26px] max-2sm:gap-[16px]">
|
|
169
217
|
{h2Template.reference_is_use && referenceLinkList.length > 0 && (
|
|
170
218
|
<SeoAdditionalLink
|